This is very risky, but it might work:
Code:
# partition table of /dev/sda
unit: sectors
/dev/sda1 : start= 2048, size= 64262144, Id= 7, bootable
/dev/sda2 : start= 64264192, size=411625472, Id= 7
/dev/sda4 : start=475893556, size=500874509, Id= f
/dev/sda5 : start=475893558, size= 6136767, Id=82
/dev/sda6 : start=482030388, size= 55295667, Id=83
/dev/sda7 : start=537326118, size=439441947, Id= 7
I've combined your two working configurations to create the above. Save it in a file (say, parts.txt) and pass it to sfdisk:
Code:
sudo sfdisk /dev/sda < parts.txt
You may need to add a "-f" parameter between "sfdisk" and "/dev/sda" if sfdisk sees something it doesn't like about the partition definitions. I strongly recommend that you back up your working Windows installation before you try this, with or without the "-f" parameter. (You can use ntfsclone or a Windows native tool for the job.)
If it's successful, both systems will become accessible, and you can then use fdisk, GParted, or some other tool to make additional changes. If it's not successful, there's a chance that it'll do further (even irreparable) damage, since each logical partition (those numbered 5 and above) requires a 1-sector data structure immediately before its start. If the logical partition definitions are incorrect, these data structures could damage parts of the preceding partitions in ways that would be hard to predict.
Good luck!
Bookmarks