I got a new Windows 7 laptop, tried to install Ubuntu 12.04 for dual boot and messed up my hard drive partitions. So opted for a clean install of Ubuntu by formatting the entire disk. (Which makes my question different from this one, How to recover data from formatted swap?)
I need to use Windows every now and then so I was looking for a way to restore everything back to the factory setting. I didn't make the recovery disks, silly me right. I was wondering if I could reset everything back to the original setting, i.e., Windows 7 with the orignal 750GB HDD and the recovery partition which is still there. I can see the recovery partition as /dev/sdb in Ubuntu.
Is it possible to do this with testdisk, http://www.cgsecurity.org/wiki/TestDisk ? If so how can I do it?