Be aware:
This will only be save if you did not write anything on that disk after you deleted the desired file!
Se o arquivo excluído for
/media/linuxbak/var/backup/db.tgz
desmonte a unidade com
umount /media/linuxbak
mude para o diretório, você quer o arquivo recuperado, por exemplo, home:
cd ~
e restaure-o (como root) com extundelete
:
apt-get install extundelete
extundelete /dev/sdb2 --restore-file '/var/backup/db.tgz'
WARNING: Extended attributes are not restored. Loading filesystem
metadata ... 508 groups loaded. Loading journal descriptors ... 30424
descriptors loaded. Restored inode 3591903 to file
RECOVERED_FILES/var/backup/db.tgz
(Isso funcionou no Ubuntu 13.04)