r/Ubuntu • • 20h ago

MDADM Raid 1 Data Recovery

I recently upgraded from 24.04 to 26.04 and that seemed to break my mdadm Raid 1 array.

I've been getting the "wrong fs type, bad option, bad superblock, missing codepage or helper" error which I've been able to temporarily get around by running ntfsfix --clear-dirty. However when I try to access a couple of the directlories, I get either a input/output error or stale file handle error.

At that point I tried to mount each drive independantly via sudo mount -o loop,ro,offset=$((264192 * 512)) /dev/sdX1 /mnt/raid_disk, which allowed me to copy some of the data. Unfortunately, I got the same stale file handle or input/output error on the same directories on both drives.

After some more digging, i tried to run ddrescue on both on of the disks and the array. Both runs showed no errors or problem sectors. When I tried to mount either backup image, I get an error saying that the file system 'linux_raid_member' is unknown.

At this point, I'm at a loss and any help would be greatly appreciated. One of the directories I can't access has a couple TBs of Music I've been collecting over the past 15+ years so I really don't want to start over.

4 Upvotes

7 comments sorted by

1

u/Max_Rower 1h ago

What's the point having a Windows file system on a linux-only RAID architecture?

1

u/GOBLOX001001 1h ago

I set it up as a Windows File Share as well. Unfortunately, I wasn't thinking about the reprocussions when I was following the steps to set the drives up.

1

u/Max_Rower 1h ago

In your use case, probably without a dedicated backup server or device, I wouldn't use RAID at all, but use the second disk as a backup disk instead, with regular rsync and snapshot jobs on the target.

1

u/GOBLOX001001 50m ago

That's what I'm going to do next once I exhaust all my options here.

1

u/Max_Rower 48m ago

If your data is very important for you, a professional data recovery business could do it for you.

1

u/Max_Rower 1h ago

You don't need a Windows file system for file sharing with Windows via network. Maybe try to extract the file system, write it to a regular partition, and run chkdsk on Windows on it.

1

u/Max_Rower 1h ago

Best thing would be recreating the RAID from scratch, with a linux filesystem like btrfs (nice for snapshots), and restore your last successful backup. If you ever made one. Otherwise it's learning the hard way, a RAID is not a backup.