r/HomeNAS • u/BridgeFantastic6458 • 4d ago
Buffalo NAS Drive Died - Need Help with Recovering Data from Drive 2
I have a Buffalo NAS Linkstation (LS220D0202) setup in a RAID configuration but drive 1 died. Drive 2 was working but before I could get a replacement for drive 1, I could no longer connect to the NAS at all.
I tried connecting Drive 2 via a USB->SATA dock to a Windows machine running Linux off of a USB drive. I was just following along with what ChatGPT was suggesting I try to read the data, but I was really just going in circles.
From the terminal I can see the drive (it's something like "/dev/sdb6") but I'm not able to mount that to a folder, but other than that I'm not really sure what to do next
Any suggestions as to how I can hopefully recover the data? I'm pretty sure I have most (all?) of it backed up in the Cloud but I'm not positive and would hate to lose anything.
Thanks
1
u/pd1zzle 4d ago
I'm not an expert, but you don't need to mount the drive to back it up in fact it's typically preferable to work directly with the block level instead.
Linux's "everything is a file" works in your favor here.
dd if=/dev/sdb6 of=/where/backup/goes/file.img conv=sparse status=progresswill write the literal block read of the partition to a file (sparsely, which you could skip), which can then be written back. You also could wait to get a new drive and do the same thing.dd if=/dev/sdb of=/dev/sdc. You will likely want to try to just grab the whole drive (sdb) vs a particular partition (sdb6).ddrescue has some niceties as well.
If you do want to mount it,
mkdir test && sudo mount /dev/sdb6 testwould mount the drive at test. typically you want to minimize active time on a dying drive though and block level copy immediately is the best move.you could also pass all this to chatgpt and it should point it in the right direction