don't know how to proceed with testdisk

Asked by Andrew Tuccillo


I accidentally wiped out My Windows XP installation and files when I unintentionally installed Ubuntu 10.10 onto the entire 160 gb hard drive. Right now I am running a live USB of Ubuntu and am using testdisk to try to recover my files. After doing a "deeper search," it seems to have found all or most of files. However, I'm not sure what to do now:
-I am not sure if the partition it found was what I used to boot from or not, so I don't know if I should label it P or *.
 (I don't even know if I care about restoring my OS or boot partition; I just want my files back, and I can re-install windows if I want)
-Here is the output from testdisk at this point:

TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <email address hidden>

Disk /dev/sda - 160 GB / 149 GiB - CHS 19458 255 63
     Partition Start End Size in sectors
D FAT16 >32M 0 1 1 22 254 63 369432 [DellUtility]
D Linux 0 32 33 18692 81 13 300290048
P HPFS - NTFS 23 0 1 19455 254 63 312191145
D HPFS - NTFS 23 0 1 19456 254 63 312207210
D Linux Swap 18692 113 46 19457 53 36 12285936

Structure: Ok. Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable P=Primary L=Logical E=Extended D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
     Enter: to continue
NTFS found using backup sector!, 159 GB / 148 GiB

-After I hit "enter," the desired NTFS partition is the only one displayed, but the guide I am using ( says "If all partitions are listed and only in this case, confirm at Write with Enter, y and OK." So should I proceed? Not all partitions are listed, but the one I want to recover is. I don't really know what I am doing and I don't want to screw anything up. Can anyone suggest a next step for me? Below is that next screen:

Disk /dev/sda - 160 GB / 149 GiB - CHS 19458 255 63

     Partition Start End Size in sectors

 1 P HPFS - NTFS 23 0 1 19455 254 63 3121911

[ Quit ] [ Write ]
                              Return to main menu

Thanks much for any help,


Question information

English Edit question
Ubuntu testdisk Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
David Jones (dj) said :

  It appears that P is your windows partition? But your guess is as good as mine sorry not windoze guy.:(

Revision history for this message
Todor Velichkov (tosho) said :

Just installed the 11.04 few hours ago and after that realized that I made the Install on the whole drive instead of the previous ubuntu partition!

Ubuntu Installation process sucks!

please write back down your solution for recovering ....if there is any.

Can you help with this problem?

Provide an answer of your own, or ask Andrew Tuccillo for more information if necessary.

To post a message you must log in.