recover data from formatted NTFS partitions

Hi

on my desktop, i earlier had a dual boot windows7 and ubuntu. the motherboard had to be replaced and subsequently the entire 1 tb hard drive was formatted by mistake while reinstalling windows 7. while there was no data lost in the OS partitions, 2 other partitions had very important data. i thought that i could use a rescue-cd to try to retrieve the lost data. i found that TestDisk is a utility which could be used - can someone guide me on how i could go about it. im using a laptop to access the net right now...

HI. I would probably just

HI.

I would probably just use Photorec to file carve the types of data files you need back.

I don't think you would be able to restore the filesystem enough to be able to use it or even boot from it.

For example, if "sda1" is the partition that was formatted, mount another filesystem where you will save the files to, cd into that directory and do

sudo photorec /dev/sda1

Then follow the prompts from photorec...

HI Andrew i would like to

HI Andrew

i would like to clarify further that earlier the hd had 5 partitions 2 of which were ntfs data and 3 win OS, swap and ext4 ubuntu. now however the partitions are differently sized, in other words all the earlier partitions were deleted and the hd reallocated into 4 partitions of different sizes from those earlier. only one of which has windows 7 now installed on it, the others being empty. how do i scan for and find the earlier partition structure, whense forth to recover data from the 2 ntfs partitions. i dont want to boot from the recovery.

HI Andrew i would like to

HI Andrew

i would like to clarify further that earlier the hd had 5 partitions 2 of which were ntfs data and 3 win OS, swap and ext4 ubuntu. now however the partitions are differently sized, in other words all the earlier partitions were deleted and the hd reallocated into 4 partitions of different sizes from those earlier. only one of which has windows 7 now installed on it, the others being empty. how do i scan for and find the earlier partition structure, whense forth to recover data from the 2 ntfs partitions. i dont want to boot from the recovery.