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