[SOLVED] Problems mounting partition from a Linux-Raid array (RAID 1) using mdadm
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Problems mounting partition from a Linux-Raid array (RAID 1) using mdadm
I have a four year old Seagate BlackArmor NAS 220 with two 2TB drives in is configured in RAID 1. Last week, the hardware (chassis) failed and the device will not boot. I have removed one of the drives and attached it to an Ubuntu image via USB.
Device Start End Sectors Size Type
/dev/sdb1 195312 2283203 2087892 1019.5M Linux RAID
/dev/sdb2 2283204 4373046 2089843 1020.4M Linux RAID
/dev/sdb3 4373047 5416015 1042969 509.3M Linux RAID
/dev/sdb4 5416016 3906832031 3901416016 1.8T Linux RAID
All of my data is on /dev/sdb4.
$ sudo mdadm --examine /dev/sdb4
/dev/sdb4:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : b4e94ab2:ab9780a8:248eedb9:5188f365
Name : 3
Creation Time : Sun Dec 21 14:44:37 2014
Raid Level : raid1
Raid Devices : 2
Avail Dev Size : 3901415744 (1860.34 GiB 1997.52 GB)
Array Size : 1950707840 (1860.34 GiB 1997.52 GB)
Used Dev Size : 3901415680 (1860.34 GiB 1997.52 GB)
Data Offset : 272 sectors
Super Offset : 8 sectors
Unused Space : before=192 sectors, after=64 sectors
State : active
Device UUID : 407169a3:a8cb27ed:7c8e9e1d:aa715c3e
Update Time : Sun Apr 8 20:01:25 2018
Checksum : 90dd0e2b - correct
Events : 93
Device Role : Active device 0
Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
I can start the RAID Array:
$ sudo mdadm -A -R /dev/md9 /dev/sdb4
mdadm: /dev/md9 has been started with 1 drive (out of 2).
But when I try to mount it, I get an error:
$ sudo mount /dev/md9 /mnt/old_hdd/
mount: unknown filesystem type 'LVM2_member'
I have no idea where to go from here. If I can get it mounted, I have another drive to export everything to, and then I can wipe and dispose of the NAS.
I have tried to mount with a forced file system two different ways; ext4 and xfs (recommendations from extensive Googling)
$ sudo mount -t ext4 /dev/md9 /mnt/old_hdd
mount: wrong fs type, bad option, bad superblock on /dev/md9,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
$ sudo mount -t xfs /dev/md9 /mnt/old_hdd
mount: wrong fs type, bad option, bad superblock on /dev/md9,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
So I typed ext3, but the dmesg log says "Can't find ext4 filesystem"
Code:
~$ sudo mount -t ext3 /dev/md9 /mnt/old_hdd/
mount: wrong fs type, bad option, bad superblock on /dev/md9,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
$ dmesg | tail
[ 8751.392090] EXT4-fs (md9): VFS: Can't find ext4 filesystem
Successfully stopped and re-assembled, but it still wouldn't mount as ext3, ext4, or xfs. I will go through and try all the other filesystem types now.
Code:
$ sudo umount /dev/md9
umount: /dev/md9: not mounted
$ sudo mdadm --stop /dev/md9
mdadm: stopped /dev/md9
$ sudo mdadm --assemble --run /dev/md9 /dev/sdb4
mdadm: /dev/md9 has been started with 1 drive (out of 2).
$ sudo mount -t ext3 /dev/md9 /mnt/old_hdd/
mount: wrong fs type, bad option, bad superblock on /dev/md9,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
$ sudo mount -t ext4 /dev/md9 /mnt/old_hdd/
mount: wrong fs type, bad option, bad superblock on /dev/md9,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
$ sudo mount -t xfs /dev/md9 /mnt/old_hdd/
mount: wrong fs type, bad option, bad superblock on /dev/md9,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
$ sudo dmesg | tail
[ 8751.392090] EXT4-fs (md9): VFS: Can't find ext4 filesystem
[ 9906.052220] md9: detected capacity change from 1997524828160 to 0
[ 9906.052228] md: md9 stopped.
[ 9912.710325] md: md9 stopped.
[ 9912.816448] md/raid1:md9: active with 1 out of 2 mirrors
[ 9912.816476] md9: detected capacity change from 0 to 1997524828160
[ 9940.310512] EXT4-fs (md9): VFS: Can't find ext4 filesystem
[ 9944.723269] EXT4-fs (md9): VFS: Can't find ext4 filesystem
[ 9950.432693] XFS (md9): Invalid superblock magic number
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.