Recover data from old RAID-1 Drive “linux_raid_member” File System

Recently had to migrate data from an old drive in an old server that was connected to the new server. Trying to mount the partitions gave me an unknown file system type:

[root@newServer ~]# fdisk -l /dev/sdb

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00082e92

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          16      128488+  fd  Linux raid autodetect
/dev/sdb2              17         277     2096482+  fd  Linux raid autodetect
/dev/sdb3             278       30401   241971030   fd  Linux raid autodetect

[root@newServer ~]# mount /dev/sdb3 /olddrive/
mount: unknown filesystem type 'linux_raid_member'

I managed to find a bunch of other "file systems" prefixed with "mdNNN" (N = Number):

Disk /dev/md125: 131 MB, 131465216 bytes
2 heads, 4 sectors/track, 32096 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

      Device Boot      Start         End      Blocks   Id  System

Disk /dev/md126: 247.8 GB, 247778246656 bytes
2 heads, 4 sectors/track, 60492736 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/md127: 2146 MB, 2146697216 bytes
2 heads, 4 sectors/track, 524096 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Obviously, the largest one was root (/), smallest was the boot partition, and the medium was swap. I was able to mount it into read only to the /olddrive folder:

[root@newServer ~]# mount -o ro /dev/md126 /olddrive/

[root@newServer ~]# ls /olddrive/
bin  boot  command  dev  downloads  etc  home  initrd  lib  lost+found  media  misc  mnt  opt  package  proc  root  sbin  selinux  service  srv  sys  tmp  usr  var
[root@newServer ~]# mount
/dev/mapper/VolGroup-lv_root on / type ext4 (rw)
....
...
/dev/md126 on /olddrive type ext3 (ro)

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *