Requesting undelete for FatDog

versatile 64-bit multi-user Linux distribution

Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

Post Reply
user1111

Requesting undelete for FatDog

Post by user1111 »

Could I put in a request for the next release of Fatdog having a undelete files/folder commands section for when using a ext3 or ext4 filesystem. As simple as the commands are, I forget them due to infrequent use, and the less you use the system before running a extundelete the greater the prospect of a full recovery of the files/folders.

Thanks.

Suggested text ...

You can potentially undelete files/folders on ext3 or ext4 filesystems. If you accidentally rm your folder of pictures/whatever then its best to immediately stop and unmount that partition to prevent inodes/data associated to that data potentially being overwritten that will void being able to restore the files/folder.

Change directory to /root, or mount and change directory to another partition other than the one from which files/folders are to be recovered

Ensure the ext3 or ext4 partition that is to have deleted file/folder recovered from is unmounted

To undelete a specific file, you will need to know the full path and filename of the deleted file.
Execute the command like this:

extundelete /dev/sdaX --restore-file path/to/the/deleted/file

You can also do something similar to recover a deleted folder (directory).
Execute the command like this:

extundelete /dev/sdaX --restore-directory path/to/the/folder

If you don't know or remember the entire path and filename, you can restore all of the deleted files on the drive volume.
Execute the command like this:

extundelete /dev/sdaX --restore-all

All recovered files will be saved to a folder named RECOVERED_FILES/, unless you specify a different folder with the -o option, followed by the path to the folder.
jamesbond
Posts: 717
Joined: Tue Aug 11, 2020 3:02 pm
Location: The Pale Blue Dot
Has thanked: 124 times
Been thanked: 402 times

Re: undelete

Post by jamesbond »

Yes, sure. I added your text to /usr/share/doc/extundelete.txt, so next time you can review it.
Post Reply

Return to “FatDog64”