How to recover files saved on windows drives after installing ubuntu 11.10 many times?

Asked by Denni Agung Pambudi on 2011-11-21

A month ago, my desktop PC was installed Windows 7. A few weeks later, i installed ubuntu 11.10 twice and before i installed, i choose replace windows 7 with ubuntu 11.10. And it happened twice. But, my brother ask me to recover his data seved in Windows 7. How can I recover all those data? Please, explain in detail. Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu testdisk Edit question
Assignee:
No assignee Edit question
Last query:
2011-11-21
Last reply:
2011-11-22
enubuntu (mr.tennents) said : #1

I think that this files is no longer available, because you have installed two times Ubuntu and you have used it for a while, so the erased data was probably rewritten by your current data.

So, what is the solution? Please, anybody helps me!!!!!!!!!!!

enubuntu (mr.tennents) said : #3

Yu can try to use a tool for recovery the data, but I don't think that it works. Maybe you have lost the file.

so, can you show me the way?

DarkJavi (darkjavi) said : #5

Ok, so after rewriting 4 times the hard drive don't expect to recover much, but there's stilll some chance you can recover some files.

testdisk package is used in those situations.(terminal tool)
you can install it with:
sudo apt-get install testdisk

Keep in mind that you would need a second drive/external drive for saving the recovered files!(SEVERAL GBs free)

Now, there are two approches:

#1 Try to recover "media" files like pictures/video/documents
This is done with photorec command, you just open a terminal and type:
sudo photorec
The program will guide you trough the process:
First you select the disk you want to recover, when prompted about partition type answer intel/pc.
Next step is about partitons, you don't want it to look only into the linux's partition so you should select no partition/whole disk.
Then you will be prompted about fylesystem type, say other/fat/ntfs as you are looking for traces of the old fat/ntfs partition.
Then you will be prompted where to store the recovered files, and you shoud choose a directory contained in another drive.

Get yourself a coffe and get confortable, is taking a while.

When it finishes you will see a bunch of files on the specified directory,they all have lost their original name and now are named in numerical order with his proper extension, now its your job to sort and filter the things(about 40-70% is junk).

#2 using testdisk command to restore the windows partiton.
Well, I've never tried this path, and since your drive carries several reinstalls I don't think it will succed

Hope it helps

Can you help with this problem?

Provide an answer of your own, or ask Denni Agung Pambudi for more information if necessary.

To post a message you must log in.