Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Has anyone had success recovering deleted files from an ext4 partition? I've tried various utilities, but none have worked yet. I'd be grateful if someone can share a success story!

share|improve this question
up vote 10 down vote accepted

You may have luck with:

However, I've never used it.

Warning: typically these days, filesystems don't support undelete. Trying to recover deleted files is an exercise in computer forensics and you're going to be very lucky to get them back. In particular, if you have written any more files to the disk, chances are your deleted files will be gone forever.

share|improve this answer
Thanks! extundelete actually recovered a lot of files. The tool could be improved, though. – Peltier Aug 4 '10 at 12:09

First thing is:

  • Do not turn on your computer
  • Start it with a LiveCD or LiveUSB
  • Make a raw clone of the partition, using dd
  • Never mount the partition, but if you need to, mount as read-only

If your data is not encrypted, or is encrypted by blocks, there are tools that look for data in the disk independently of the filesystem. (e.g., photorec)

Extundelete may also do a good job, if your data has been written to the disk or accessed recently, and neither their inodes nor the corresponding data sectors have been overwritten by other files after you deleted.

If the files were inside a stack-encrypted home directory, you can check this.

share|improve this answer
+1 for being thorough. Might be a bit much for this situation, but definitely not bad first steps. – Aeo Aug 17 '10 at 16:47

It depends on how you deleted the files. If you used a graphical file manager you may have "Trash". If you used mc you may have "lost&found". If you used "rm" you have very little to zero chances to recover the file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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