Originally Posted by charrah
My question was how I would edit the partition table by hand to get the kind of setup I described; however since I had already broken so many things in Linux and didn't care for Windows 7 particularly I cut my losses, backed up, and reinstalled.
For the next time your partition table will messed up
Using fdisk is quite simple:
Run it, and then you provided with menu.
You should delete all existing partitions, and then create new ones
(using start and end cylinder information you have) and set appropriative
type and boot flag.
Nothing you do in fdisk written back to disk unless you give 'w' command,
so there is always way back.
Another possibility before doing something dangerous ( == installing Windows) backup your partition table (or whole MBR) with dd command.
Then you'll be able tp restore it using same dd