Recover deleted files

This is a wiki page. Be bold and improve it!

If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.

Accidents happen and files get lost that shouldn't be. Fortunately, you have a good backup policy... don't you?

Recovering deleted files from ext filesystem

Use extundelete.

Here is a sample use of extundelete:
Assuming that the device with files to recover is /dev/sde1 which is an external storing device. Make sure there is enough space on another device (here /home/) to copy all the recovered files.

sudo mount -o remount,ro /dev/sde1 # Remount the device readonly.
mkdir ~/undelete
cd ~/undelete/
sudo extundelete /dev/sde1 --restore-all