Ubuntu Linux: востановление удалённых файлов

By vedavrat

Если Вы, работая в Ubuntu, случайно удалили файлы, то Вам поможет Photorec или Ntfsprogs…
Мне помог Photorec

Photorec
Photorec is file data recovery software designed to recover lost pictures from digital camera memory or even Hard Disks. It has been extended to search also for non audio/video headers. It searches for 80 different types of files. Photorec is part of the Testdisk package. Use any method to install the following package: testdisk
To recover files directly from a device, run photorec without any arguments and you will be given a menu of available devices. sudo photorec

recoverjpeg
This program is dedicated to identifying and recovering JPEG pictures. You can install the package recoverjpeg using any method, and then run (assuming /dev/sda1 is the partition you want to recover from)
sudo recoverjpeg /dev/sda1
Recovered files will be saved in your home directory, with names following the pattern image*.jpg.

Ntfsprogs
NtfsUndelete can recover deleted files from an NTFS file-system. The Windows and LiveCd versions have a very nice intuitive gui but the linux one is probably stronger and does not have a front-end gui at the moment.
To search: ntfsundelete /dev/sda2
To undelete: ntfsundelete /dev/sda2 -u -i 3689 -o work.doc -d ~/output