Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

4 Answers

up vote 7 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
add comment

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 https://help.ubuntu.com/community/DataRecovery too.

share|improve this answer
add comment

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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.