Is there a partition table editor for Linux? I have had a look at 'parted' but I don't think it has the capabilities I need.
Cut a long story short - I have a RedHat 9.0 / WinXP dual boot and GRUB won't boot into WinXP. I suspect this is because WinXP is installed on an extended partition. This excellent site - ("Understanding Multibooting" + I'm Feeling Lucky) - suggests that modfying the "Hidden Sectors" value in the partition table can allow booting from an extended partition. Many disk partitioners apparently inccorectly set this value, which prevents GRUB's chainloading technique from locating the WinXP boot sector.
I think I have read just about every support article and forum post on the web relating to GRUB dual booting issues

but in case some genius can solve my problem some other way, here are the details (I would be *very* grateful):
Code:
[root@localhost root]# fdisk -l
Disk /dev/hda: 41.1 GB, 41174138880 bytes
255 heads, 63 sectors/track, 5005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux // Linux /boot
/dev/hda2 1148 5004 30981352+ f Win95 Ext'd (LBA) // Extended Partition
/dev/hda3 14 1082 8586742+ 83 Linux
/dev/hda4 1083 1147 522112+ 82 Linux swap
/dev/hda5 1148 1274 1020096 e Win95 FAT16 (LBA) // For Linux/XP sharing
/dev/hda6 1275 5004 29961193+ 7 HPFS/NTFS // WinXP partition
Partition table entries are not in disk order
Here is the relevant part of my current grub.conf, which doesn't work ("Error 12: Invalid Device" or something similar if I recall)
title Windows XP
map (hd0, 0) (hd0, 5)
map (hd0, 5) (hd0, 0)
rootnoverify (hd0,5)
chainloader +1
Thanks for reading all of this, (those that made it this far).