Hi
I had an 70GB ubuntu partition and I installed windows 7 on the rest odf the disk.
After the installation the ubuntu partition seemed deleted, I used a live cd and gparted showed that parttion as unallocated space.
I found here an old thread saying about TestDisk and how I could copy my lost data.
I followed the instruction, installed TestDisk and found my lost ubuntu partition.
The problem is my files where very large and could not be copeid.
I tried to fix the partition table with that tool, although the instruction where not very clear.
After analyzing with TestData the partition table was like this:

TestDisk 6.14-WIP, Data Recovery Utility, March 2012
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sda - 500 GB / 465 GiB - CHS 60801 255 63
Partition Start End Size in sectors
>* HPFS - NTFS 0 1 1 51559 254 63 828311337
P Linux 51559 192 26 58713 7 46 114917376
P Linux Swap 58713 40 16 59234 240 14 8382464
P Linux Swap 59235 50 16 59756 250 14 8382464
P Linux Swap 59757 60 16 60279 5 14 8382464
L Linux Swap 60279 70 16 60801 47 46 8384512
I thought tha the correct structure would be like that, so I changed it that way:


Disk /dev/sda - 500 GB / 465 GiB - CHS 60801 255 63
Partition Start End Size in sectors
>P HPFS - NTFS 0 1 1 51559 254 63 828311337
* Linux 51559 192 26 58713 7 46 114917376
P Linux Swap 58713 40 16 59234 240 14 8382464
P Linux Swap 59235 50 16 59756 250 14 8382464
P Linux Swap 59757 60 16 60279 5 14 8382464
L Linux Swap 60279 70 16 60801 47 46 8384512
I then removed the live cd and rebooted, the system found no OS, so I logged in again with live cd
I ran TestDisk again and unforunately my partition table looks like this now

Disk /dev/sda - 500 GB / 465 GiB - CHS 60801 255 63
Partition Start End Size in sectors
>D HPFS - NTFS 0 1 1 51559 254 63 828311337
D Linux 51559 192 26 58713 7 46 114917376
* Linux Swap 58713 40 16 59234 240 14 8382464
P Linux Swap 59235 50 16 59756 250 14 8382464
P Linux Swap 59757 60 16 60279 5 14 8382464
L Linux Swap 60279 70 16 60801 47 46 8384512
I tried to change it like it was before , but testdisk wont let me, it says it has a bad structure.

Please help!!