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:

[[email protected] ~]# 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

[[email protected] ~]# 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:

[[email protected] ~]# mount -o ro /dev/md126 /olddrive/

[[email protected] ~]# 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
[[email protected] ~]# mount
/dev/mapper/VolGroup-lv_root on / type ext4 (rw)
....
...
/dev/md126 on /olddrive type ext3 (ro)
  • 1 Uživatelům pomohlo
Byla tato odpověď nápomocná?

Related Articles

Adding Secondary IP Addresses (CentOS/RHEL)

There are plenty of reasons you would need to add secondary IP addresss (and everyone agrees...

Adding Additional Disk Drives to CentOS 5/6

Adding a new drive to CentOS or RedHat systems. Making use of a second drive for extra space?...

See what modules are installed and enabled for Apache

For CentOS / RedHat -- if you want to see which modules are installed and/or enabled for...

Use rest of free space on LVM partition with new Logical Volume

I recently had to fix a few servers using 2TB hard drives. The client wanted 100GB used for the...

Powered by WHMCompleteSolution