Re: Read data from disk that was part of RAID1 array

From
Wols Lists <hidden>
Date
2017-03-19 10:18:32
Reply to
Peter Sangas, 2017-03-17
On 17/03/17 23:17, Peter Sangas wrote:
quoted
From: Peter Sangas [mailto:<redacted>]
I have only one disk from a RAID1 array and I would like to read data from
one of the
quoted
partitions.  This there a way to mount this and read the data?
This worked for me:

mdadm --create /dev/md10 -l 1 -n 2 /dev/sda missing     md10 is chosen to
avoid conflicts with existing RAID1

mount /dev/md10 /mnt 
NEVER NEVER NEVER use --create !!!

YOU WERE LUCKY !!!

Use something like --assemble --force, which will set up a working array
if it can. If that had been an old array, with a different offset or
superblock or the like, you would have trashed the superblock and
created a new array, which thought that the data in the array was
somewhere other than where it really was.

At which point, it would have been "go to your backups" or a major
forensic recovery.

Cheers,
Wol
Thread (6 messages) 6 messages, 4 authors, last reply 2017-03-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help