James Cassell's Blog

Monday, September 08, 2008

Never Let Windows XP Touch Your Partition Table

The other day, I decided to re-install XP. I have a triple-boot system; on my ThinkPad, I have Vista, XP, and Fedora. I told the XP installer to delete the partition that had my old install of XP, and when I told it to put a new one in its place, it told me that I already had four primary partitions.

My partition table was a follows: first primary partition: Vista; second primary partition: XP; third primary partition: boot partition for Fedora; fourth primary partition: extended partition which holds: 2 encrypted partitions for Fedora.

After the XP installer touched my partition table, the I could only boot into Vista. GParted saw my entire disk as "uninitialized," or basically, empty. At this point, I was in a slight panic; I had a lot of important stuff in my Fedora partitions.

My eventual solution was both tedious and dangerous. I basically edited the partition table by hand, using the command line tool sfdisk. I did this using the Fedora 9 Live CD. This time, I had gparted create an empty NTFS partition, and I told XP to just use that, and I let it format it when it asked, which turned out to be a mistake. This caused it to mess up my partitions again, and I had to use sfdisk to set them straight. I now have a working setup, as I had before re-installing XP.

The moral of this story happens to be the title of this post: Never let Windows XP touch your partition table.

Labels: , , , ,


Post a Comment

<< Home