Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 accidentally deleted my documents folder in my home directory last sunday. I am desperately trying to recorver it with it content files.

After digging around, I came across a suggestion to use scalpel to help the recorvery, I have tried it, but because I dont have enough space on my hard disk, it fails carving.

I have decided today to use `debugfs`, and again have managed to screw up even more. What happened is - I executed; " 1. lsdel to view all deleted files inodes," " 2. help to see all possible commands."

I saw `undel` which I immediately assumed meant undelete the inode to restore the files so I performed undel on all without jotting them down.


  • Does this means I now can't recorver my files? If that is not the case;
  • Is there a way to recorver the files without using the inodes, or perhaps restore debufs inode history back to where it was previously?!
share|improve this question includes Scalpel and two additional applications to recover (undelete) files. Apps are Foremost and Photorec. Photorec has a ncurses-ish UI, so it may be easier to use it (I have not used it before).

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.