Tag: raid

Mounting a Linux Software RAID 1 partition

Server died, have to recover data from a Linux Software RAID 1 drive.
Take the drive and connect it to another linux computer.  You won’t be able to mount it out of the box; if you try you’ll get an error that states mount: unknown filesystem type ‘linux_raid_member’.
install mdadm:
apt-get install mdadm

mdadm –examine /dev/sdd1

fdisk -l /dev/sdd
create a virtual md device with mdadm
sudo mdadm -A -R /dev/md9 /dev/sdd1
now you can mount the RAID 1 device
sudo mount /dev/md9 /mnt/old_hdd/
If you run into a device is busy error, stop mdadm
mdadm –stop /dev/md126
mdadm –stop /dev/md127
then try again