So I have installed a new motherboard, CPU, memory, ya-de-ya. In my garage, as I was routing around for cables and stuff, I found a fresh looking western digital 2Tb disk from my old NAS, which was previously mounted as part of a RAID stack. When I try to run fsck or anything else it tells me that /dev/sdc is in use, which it isn’t.
The question is: Can I recover the information on this disk? GParted looks like this:
The answer is it depends but likely not. RAID has several different formats, including but not limited to:
mirrored
striped (aka split bandwidth)
parity
and a mix of them. If the drive was RAID 1 (mirrored) then yes, it’ll be quite easy. If it’s parity, then things get a little more complicated as you need to reconstruct the data, and that often includes more than one drive. If it’s striped, you need all of them.
Basically RAID1 is your only hope. Otherwise my answer is that it’s very unlikely you can recover the data.
Yeah, then it should be possible. You’ll need to assemble the raid, hopefully it’s 1 of 2 drives and not one of more. There’s a tool called mdadm that might be useful in order to assemble it.
@NothingConspicous I expect you’re not surprised: I tried assembling a RAID array of one so that I could --fail it or --remove it but kept hitting POSIX compliance errors. Whatever I did with mdadm was unsuccessful. Funny thing was I could only get mdadm to recognise /dev/sdc5 as that was all that was in /proc/mdstat. Even though I changed the partition type from linux-raid to Linux using fdisk, (and pressed w to exit), and fdisk showed the changes, GParted reported the partitions unchanged. The disk had sat in my garage for a while, nothing on it was important, so I gave up and created one big ext4 partition. Thanks for your help anyway.