Jump to content

[SOLVED] Deleted Partitions and Testdisk - Need someone knowledgeable with Unraid partition structure


Go to solution Solved by JorgeB,

Recommended Posts

Hello Unraiders, 

 

This forum has been very helpful to me in the the past, as I've always resolved my issues by reading through other users' posts. This time however I can't seem to find any answers. I have limited understanding of filesystems and partitions, so please bear with me. 

 

Long story short, while installing windows on an unassigned device, I accidentally deleted my cache, parity and data disks partitions all at once (I know, this is bad). I realized my mistake right after deleting the partitions, so nothing has since been written on the Unraid disks. When booting Unraid and accessing the GUI, the main tab shows the following: 

837020112_MainTab.thumb.png.48181c2bd8cf98ec325ee8be57742389.png

 

My understanding is that since no data has been overwritten after the partitions were deleted, it is possible with the Testdisk software to reconstruct the partition tables of the disks. If I remember correctly, the Windows installer listed 1 partition per disk. 

 

I started the recovery on the 960 EVO cache disk, its smaller and faster to work with. I analyzed the disk with the partition recovery utility of Testdisk. I chose Intel for the partition type and performed a deep search. Testdisk lists the following deleted partitions: 

1141922219_960EVOtestdisk.JPG.0c3f63d4dd1ce591e891b17afeb7fe57.JPG

 

As you can see, the notes under the highlighted first partition state: 'btrfs blocksize=4096 Backup superblock, 500 GB / 465 GiB'

The notes under the following partitions sized at 61861888 sectors state: 'ext4 blocksize=4096 Large_file Sparse_SB Recover, 31 GB / 29 GiB'

The notes under the last partition sized at 61861888 sectors state: 'ext4 blocksize=4096 Large_file Sparse_SB Backup_SB, 31 GB / 29 GiB'

The notes under the last two partitions sized at 41943040 sectors state: 'btrfs blocksize=4096 Backup superblock, 21 GB / 20 GiB'

 

At this point, I am not sure which partition characteristics should be used to reconstruct the partition table. Should the partitions be Primary, Logical or Extended? Also, are all these partitions required to mount back the SSD drive in Unraid? Does Unraid create multiple BTRFS partitions when formatting the cache drive (I only saw one per drive when installing Windows)?

 

Thanks A LOT for your patience and your help guys,

 

Edited by LP_LP_LP
Link to comment

With Testdisk, I have rewritten the primary partition of each cache disk. The Unraid GUI now mounts the two disks. I can see and compute the shares. However the pool does not seem to be correctly set up, since its size should be 500Gb and it currently lists 1Tb of available storage. Libvirt has failed to initialize has well. Complete logs and diagnostics are attached. The logs show multiple errors: 

 

Oct  7 10:20:24 nostromo kernel: BTRFS info (device nvme0n1p1): turning on async discard
Oct  7 10:20:24 nostromo kernel: BTRFS info (device nvme0n1p1): using free space tree
Oct  7 10:20:24 nostromo kernel: BTRFS info (device nvme0n1p1): has skinny extents
Oct  7 10:20:24 nostromo kernel: BTRFS error (device nvme0n1p1): parent transid verify failed on 731340898304 wanted 3342300 found 3342051
Oct  7 10:20:24 nostromo kernel: BTRFS info (device nvme0n1p1): read error corrected: ino 0 off 731340898304 (dev /dev/nvme2n1p1 sector 35653696)
Oct  7 10:20:24 nostromo kernel: BTRFS info (device nvme0n1p1): read error corrected: ino 0 off 731340902400 (dev /dev/nvme2n1p1 sector 35653704)
Oct  7 10:20:24 nostromo kernel: BTRFS info (device nvme0n1p1): read error corrected: ino 0 off 731340906496 (dev /dev/nvme2n1p1 sector 35653712)
Oct  7 10:20:24 nostromo kernel: BTRFS info (device nvme0n1p1): read error corrected: ino 0 off 731340910592 (dev /dev/nvme2n1p1 sector 35653720)
Oct  7 10:20:24 nostromo kernel: BTRFS error (device nvme0n1p1): parent transid verify failed on 731405582336 wanted 3342305 found 3342294
Oct  7 10:20:24 nostromo kernel: BTRFS info (device nvme0n1p1): read error corrected: ino 0 off 731405582336 (dev /dev/nvme2n1p1 sector 33617344)
Oct  7 10:20:24 nostromo kernel: BTRFS info (device nvme0n1p1): read error corrected: ino 0 off 731405586432 (dev /dev/nvme2n1p1 sector 33617352)
Oct  7 10:20:24 nostromo kernel: BTRFS info (device nvme0n1p1): read error corrected: ino 0 off 731405590528 (dev /dev/nvme2n1p1 sector 33617360)
Oct  7 10:20:24 nostromo kernel: BTRFS info (device nvme0n1p1): read error corrected: ino 0 off 731405594624 (dev /dev/nvme2n1p1 sector 33617368)
Oct  7 10:20:24 nostromo kernel: BTRFS error (device nvme0n1p1): parent transid verify failed on 731405500416 wanted 3342304 found 3342294
Oct  7 10:20:24 nostromo kernel: BTRFS info (device nvme0n1p1): read error corrected: ino 0 off 731405500416 (dev /dev/nvme2n1p1 sector 33617184)
Oct  7 10:20:24 nostromo kernel: BTRFS info (device nvme0n1p1): read error corrected: ino 0 off 731405504512 (dev /dev/nvme2n1p1 sector 33617192)
Oct  7 10:20:24 nostromo kernel: BTRFS error (device nvme0n1p1): parent transid verify failed on 731405680640 wanted 3342305 found 3342294
Oct  7 10:20:24 nostromo kernel: BTRFS error (device nvme0n1p1): parent transid verify failed on 731405598720 wanted 3342305 found 3342294
Oct  7 10:20:24 nostromo kernel: BTRFS error (device nvme0n1p1): parent transid verify failed on 731374616576 wanted 3342300 found 3342294
Oct  7 10:20:24 nostromo kernel: BTRFS error (device nvme0n1p1): parent transid verify failed on 731404664832 wanted 3342304 found 3342294
Oct  7 10:20:24 nostromo kernel: BTRFS error (device nvme0n1p1): parent transid verify failed on 731375321088 wanted 3342300 found 3342292
Oct  7 10:20:24 nostromo kernel: BTRFS error (device nvme0n1p1): parent transid verify failed on 731405647872 wanted 3342305 found 3342294
Oct  7 10:20:24 nostromo kernel: BTRFS error (device nvme0n1p1): parent transid verify failed on 731374632960 wanted 3342300 found 3342294
Oct  7 10:20:24 nostromo kernel: BTRFS info (device nvme0n1p1): enabling ssd optimizations

 

Any idea?

 

nostromo-diagnostics-20211007-1030.zip nostromo-syslog-20211007-1425.zip

Link to comment

@JorgeB thanks for the help. I’ve been able to recreate the cache pool. Some libvert settings seem to have been wiped but no big deal.
 

However, before moving to the actual array disks (which contain more important and permanent data), I’d like to make sure that I’m using the correct procedure to restore the XFS partition.

 

Currently the array disks are unmountable. Is it preferable to try to check and repair the disks in the GUI maintenance mode first? 

Link to comment

XFS partition *should* be easier to restore with testdisk, another option if parity is still valid, would be to rebuild each disk one at a time, Unraid would recreate the partitions, you can test by unassigning one of the data disks, start the array, the emulated disk should mount correctly and all data be there, if yes you can rebuild on top, then repeat for the other one.

Link to comment
  • LP_LP_LP changed the title to [SOLVED] Deleted Partitions and Testdisk - Need someone knowledgeable with Unraid partition structure

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...