Q:

Raid 5 Recovery

Update 12-27-2025: All data recovered and on another server. Thanks for all the help !

Update 12-26-2025: I was able to copy the partiton table from sda to the rest of the drives and import the array. Checking a few files across the array and there seems to be no issues yet. Started a full copy.

First please don’t say restore from backup as there is no backup. This was there backup target, that then they just started writing files to and not saving them to there computer then letting the computer backup to the nas.

This nas is a family nas that was not setup by me. But as the tec guy in the family it has turned into my proublem. They were running 4 drives in a raid 5. The nas failed and would not boot. I labled the drives and pulled them out and put them into my testing server to see what was going on. I found all 4 drives showed up but 3 out of the 4 appeared to me missing the sda3 partition that I beleave to have all the data. Is there any way I can recover that sda3 partition?

 

root@tempnas:~# lsblk

 

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS

sda 8:0 0 5.5T 1 disk

├─sda1 8:1 0 517.7M 1 part

│ └─md127 9:127 0 517.7M 0 raid1

├─sda2 8:2 0 517.7M 1 part

│ └─md123 9:123 0 517.7M 0 raid1

├─sda3 8:3 0 5.4T 1 part

│ └─md124 9:124 0 0B 0 md

├─sda4 8:4 0 517.7M 1 part

│ └─md126 9:126 0 448.1M 0 raid1

└─sda5 8:5 0 8G 1 part

└─md125 9:125 0 0B 0 md

sdb 8:16 0 5.5T 0 disk

└─sdb1 8:17 0 517.7M 0 part

└─md127 9:127 0 517.7M 0 raid1

sdc 8:32 0 5.5T 0 disk

└─sdc1 8:33 0 517.7M 0 part

└─md127 9:127 0 517.7M 0 raid1

 

sdd 8:48 0 5.5T 0 disk

 

└─sdd1 8:49 0 517.7M 0 part

 

└─md127 9:127 0 517.7M 0 raid1

  • This topic was modified 4 days, 19 hours ago by rolivef.
Raid data recovery

All Replies

Viewing 1 replies (of 1 total)

The problem turned out to be a damaged partition table, not a failed RAID or lost data. Three of the four drives still contained the data, but the main data partition was no longer defined in the partition table, so the array could not be assembled. One drive still had the correct layout, and copying that partition table to the other drives restored the missing partitions with the correct size and alignment. Once this was done, mdadm was able to import the RAID-5 array normally, without a rebuild. Spot-checking files showed no issues, and completing a full copy confirmed the data was intact and successfully recovered.

Viewing 1 replies (of 1 total)

  • You must be logged in to reply to this topic.
New to Communities?

New to Communities?

Ask a Question