I have an Acer laptop with a 500 GB drive. It came with Windows 7 installed, and I installed Ubuntu 12.04 in a dual boot configuration. As far as I remember I installed everything accepting defaults all the way, but it was done over a year ago.
When copying a file from the Linux partition to the Windows partition it crashed. Of course this happened just after a lot of important work was done and before one of my (far to infrequent) backups was done. I do not have a "rescue disk" or backup of the partition table.
I Booted a 12.04.4 live CD, the disk utility shows that the Linux partition has disappeared. Everything else is there including the Linux swap partition, but the Linux partition is not listed, and its spot in the extended partition is shown as free space.
I am assuming only the partition table was damaged and the Linux partition is still there. The problem is determining exactly where the Linux partition starts, to recreate the partition table entry. My understanding is that it must be at least 63 blocks after the start of the extended partition, but can be more.
1) What's the best way to determine where the Linux partition starts?
2) Can I just copy the partition table with sfdisk, edit it and rewrite it, reboot, then mount the volume, or is there more that needs to be done?