I'm using ubuntu 9.10 and accidently deleted a specific file within a directory on my system. I checked in the Trash bin and could not locate the file. I deleted it 10mins ago, are there any tools available that I can recovery this file? It's a really important file.

Any help would be highly appreciated

My partition is ext4

link|improve this question

feedback

3 Answers

There's nothing reliable. extundelete runs through the raw filesystem, and restores things that look like files to a recovered file directory. It's for ext3, but its creators claim some success with ext4.

The risk is that your file gets overwritten by later writes, so that there is nothing to recover. Or that the program is defated by some quirk of ext4fs.

link|improve this answer
Another risk is that the file was highly fragmented and then it is extremely hard if not impossible to recover as well. – Shaihi Jan 20 '10 at 11:45
@Shaihi: right. You've still got a chance of recovering the file if the number of pieces are not too large: file may help identify the first piece, and hopefully the number of combinations of the remaining pieces is not too large. The more you know about the file format, the more workable this is. – Charles Stewart Jan 20 '10 at 11:57
feedback

Also, testdisk might work.

link|improve this answer
feedback

Install scalpel in ubuntu in terminal

$sudo apt-get install scalpel

Then run below step to recover your files

Create a folder name lostdata

Sudo scalpel and drive path which you want to recover -o is used to genarate recovered files to folder lostdata

$sudo scalpel /dev/sda1 -o lostdata

Note: there’s no guarantee that Scalpel will succeed in recovering your files, but at least there’s a chance. Perhaps this post will help you.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.