1

I was making some room n my file server by moving the data to the desktop. The desktop had a catastrophic failure and now i'm trying to recover the files from the fileserver. Trying to undelete close to 4tb of data from ext4 partition.

Here's the setup... 5 disk raid 6 (17TB used out of 22 TB total). This mounts a LUKS partition, with an underlying EXT4 partition.

The EXT4 partition is perfectly readable, and I've set it to readonly. Between the time of deletion and setting it to readonly, nothing has been written or moved around on the file server. it has been rebooted once, and that was to reboot with the ext4 as readonly.

Can't image the disk because its 22TB. The desktop is back up and running and has 8TB free space, so I have mounted part of the file system inside the file-server's file system to have a place to write the large amount of data i need to recover.

I found testdisk and it looks perfect for my use case. I can see the deleted folders, but they all appear empty.

How can I get my deleted files back? and preferably the underlying folder structure they live in?

Please help.

I tried, undelete files on ext4 , but haven't been able to un-delete folders with all original files that were in it. I suspect the mentioned post did not delete the actual /tmp folder.

Also read: Testdisk brings back empty folders that take up space and data recovery with testdisk , but I suspect these have to do with a windows-fs and not linux/ext4-fs.

JDMcMillian
  • 1,482
  • Yes, I came across that post. Its what led me to testdisk. The OP of that post however I suspect never deleted the TMP folder, and all the deleted files were inside it ready to be un-deleted. However, all my files were inside various folders, which was deleted along with the files. And when I look in those deleted folders to un-delete them using testdisk, they all appear empty with nothing inside to recover. I un-deleted one such folder to test, but it did not recover any files. I'm trying to un-delete complete directory sub-trees. – JDMcMillian May 31 '22 at 02:10

0 Answers0