Subscribemkdir /mnt/floppy (this is just in case)mount -t vfat /dev/fd0 /mnt/floppydd if=/dev/hdb of=/mnt/floppy/bootsect.lnx bs=512 count=1 (substitute your Linux drive for /dev/hdb... possibilities discussed above.)umount /mnt/floppyC:\bootsect.lnx="Ubuntu"/boot/grub/menu.lst (on the Linux partition) to look like this:
title Microsoft Windows XP Home Edition
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
root and map lines are key here; root tells GRUB which partition to boot, map pulls a switcheroo in the BIOS so WIndows sees the second drive as C:, and chainloader tells GRUB to pass control to WIndows' bootloader rather than try to boot a Linux kernel. I have no idea what, if anything, savedefault and makeactive actually do.You are not logged in, either login or create an account to post comments
There might be your problem. XP has to be installed to your primary drive for this to work AFAIK. Which means you'll have to make your XP drive the primary, then install Ubuntu to the second drive.
Also, older BIOSes can't read beyond the 1024th cylinder of the primary HD, so boot managers can't read other partitions beyond that cylinder or on separate drives. You might check with your PC manufacturer and see if this is the case, and if so, if you can upgrade to a BIOS that will read both your HDs at boot time.
posted by middleclasstool at 7:15 AM on September 30, 2006