I had a RAID1 setup (md0), mirroring two 2TB drives (sdb, sdc). When trying to remove the RAID to use the disks individually with the data on them, I ran
mdadm --stop /dev/md0
mdadm --zero-superblock /dev/sdb1
mdadm --zero-superblock /dev/sdc1
mdadm --remove /dev/md0
However, afterwards, if I want to mount /dev/sdb1
, I get the following: "wrong fs type, bad option, bad superblock on /dev/sdb, missing codepage or helper program, or other error".
On my attempts to recreate the ext4 file system, I think I already nuked sdc beyond recovery (I ran mkfs.ext4 /dev/sdc1
).
Is there still hope for me to recover my data from sdb and if so how?
dd if=/dev/sdb of=/dev/blankdrive
Then you can play around with trying to recover the journal structure, partition tables, etc. – jmunsch Nov 03 '18 at 16:16mdadm --examine /dev/sdb1
? also see: https://unix.stackexchange.com/a/72285/61110 – jmunsch Nov 03 '18 at 17:29mdadm: No md superblock detected on /dev/sdb1.
EDIT: And guessing the offset didn't work :p – gro Nov 03 '18 at 17:33mdadm --examine /dev/sdb
(the whole disk instead of the partition) and this gave me/dev/sdb: MBR Magic : aa55 Partition[0] : 3907026944 sectors at 2048 (type 83)
– gro Nov 04 '18 at 13:04Device: /dev/sdb1; Start: 2048; End: 3907028991; Sectors: 3907026944; Size: 1,8T; Id 83; Type: Linux
– gro Nov 04 '18 at 13:13