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've just removed most of the files in my home directory accidentally, using rm -f command. Anyway, I searched and found some of the tools for recovering deleted files, like extundelete, foremost and photorec. The problem is that I don't have an extra partition to specify as the output-dir to save the recovered files to. All of my hard disk is in one partition and it's the one I'm trying to recover. And on the other hand, the files to recover are pretty huge.

So my question is, how can I recover deleted files into the same partition as the original files? Does any of the tools available recover files in place? I mean hypothetically speaking it must be doable to restore a file pointer into the filesystem without actually copying the file body!? Actually it must be much faster and much easier for an application to do that! (if you ask me)

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.