Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

I've accidentally removed all my home directory (don't judge!). My early search results led me to applications like extundelete and photorec. But the results were not acceptable. extundelete exits unexpectedly (without doing anything) and photorec recovers files in a flat structure. I wonder if there's an application which recovers files and folders together. My lost archive is consisted of thousands of files which are worthless if they are not structured in the original folders!

share|improve this question

Did you try testdisk. I have used Testdisk beofore to recover folder structures.

share|improve this answer
According to this and this wiki pages, it works only with FAT, exFAT, NTFS and ext2 filesystems. – Giorgi Gzirishvili Mar 5 '15 at 15:29

As you accidentally deleted the contents of home directory, you should be using extundelete from another OS or a live-CD/live-USB. Using extundelete from within the same OS where the partition is mounted, can make it behave wierdly.

I am posting this as an answer only because the question says that the extundelete exists unexpectedly without saying anything.

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.