On 17/03/17 23:17, Peter Sangas wrote: > > >> From: Peter Sangas [mailto:pete@xxxxxxxxxx] >> I have only one disk from a RAID1 array and I would like to read data from > one of the >> 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 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html