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

Well, I have accidentally deleted my Ubuntu drive. I just want to recover all the contents of /home.

Is there a way to do it? I referred to foremost, where I need to specify the extensions of files. And in my case, I don't know actual extensions. So, is there any utility which can let me recover my /home folder alone?

I have not even formatted that drive or touched it at all. So no write has been done on that drive.

If you have suggestions on how to recover, please tell me.

share|improve this question
up vote 8 down vote accepted

Take a look at this:

Best tool to recover removed files

Formatted and lost 6 years worth of photo memories.. any way to get this back?

How to recover Ubuntu partition after computer failure?

Where the answers of some other people under those questions may also be helpful for you.

Additionally, take a look at this (quite long but it saved my life).

Recovering deleted data from deleted partition- solved from within the Israel Linux Remix Team System.

Good luck!

share|improve this answer
Thanks @Geppettvs D'Constanzo, I used testdisk to detect and correct my partition table. This helped me to see all the date that got lost. – Amey Jah May 13 '11 at 17:21

The first thing to do, is to STOP USING THE DISK! Everything that gets written to it runs the risk of overwriting your data. Mount it read only and copy the things you find to a different device.

After that, the tools mentioned by the other contributors are good places to start. Add Magic Rescue, and any raw sector editor to the mix. Magic Rescue is good at finding pictures, videos, zip archives and MS Office files. And the sector editor can be used to find most documents provided you remember some words out of them to use for searching.

share|improve this answer
+1 for emphasizing that further disk writes can ruin potentially recoverable data! – Byte Commander Sep 18 '15 at 12:02

Try TestDisk/PhotoRec:

  1. CTRL ALT t to open a terminal

  2. sudo apt-get install testdisk and type your normal user password

  3. sudo photorec

Good luck!

EDIT: take a look at too.

share|improve this answer

I'd suggest computer forensics tools, like The Sleuth Kit and its Autopsy browser.

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.