How to recover deleted files in Ubuntu

Hello there Ubuntu users once more.

How you deleted a file by mistake that you must desperately recover ?

I had and I searched around a way to recover that file, and many more, through terminal, because let's face it. When you are in black screen your options and knowledge is limited.

My suggestion in scalpel.

sudo apt-get install scalpel

to install the package.

The configuration file is the

/etc/scalpel/scalpel.conf file

where youmust uncomment the type of files that you wish to recover. Once you have them uncommented,
run:

sudo scalpel <partition>  -o <destination dir>
eg

sudo scalpel /dev/sda1 -o /home/user/recovered.

I recommend creating a directory, since is must be empty.

The whole process will take a while, since it goes through each block of the partition in the HDD, but it worths the time.

Good luck.

PS
Advanced readers are encouraged to look up more here.

Comments

Popular posts from this blog

Ubuntu 11.04 - Process management (2/6)

Ubuntu 11.04 - Memory management (3/6)

Ubuntu 11.04 - General Overview (1/6)