After having an accident installing ubuntu dapper with the buggy livecd installer, I lost both my linux and windows partitions. Knowing that it is easier to install XP before linux I installed XP first. I then installed Dapper.
My partition setup is as follows:
hda1 /boot
hda2 swap
hda3 /
hda4 extended
hda5 /home
hda6 /Multimedia
hda7 where XP is installed
Previously, I had /boot as FAT16 so that both XP and Windows could share it and used grub as bootloader. When I installed XP i put it on hda7, and though it didn't ask me to specify, i presume it put its mbr stuff on hda1. This was all ok. The problem came when I then tried to install Dapper. For some reason it wouldn't let me keep hda1 as FAT16 and insisted I change it to ext2 so that I could put /boot on there. (ubuntu Breezy didn't mind me having /boot on hda1 as FAT16)
Dapper boots fine but I am unable to get into XP. I have tried to edit /boot/grub/menu.lst by adding the following at the end
Code:
title Windows XP
root (hd0,6)
makeactive
chainloader +1
as is suggested in the comments in the menu.lst file and various sites I have googled. When I try to boot into windows I now get an grub error (15 iirc) and windows does not boot. I presume this is because the XP mbr was on hda1 which got formatted to be converted into ext2.
I have considered putting grub onto a floppy disk, with intention of using the floppy to boot linux and reinstalling windows onto hda7 and putting hda1 back to FAT16. However, I notice that menu.lst refers to /boot and the various kernels stored in it. Does this means that I can't use a boot floppy and delete the stuff on hda1?
Would the solution be to unmount /boot and delete it's entry in /etc/fstab and create a new directory called /boot on hda3 in the root directory and copy the kernels etc to it and then edit menu.lst on the floppy to point to that partition instead? and then reinstall windows onto hda7 and format hda1 to fat?
Alternatively, is there a way to put /boot on hda1 back to FAT16 and still get dapper to work with it? that way I can share the partition between linux and XP again.
Please can some one help me, i'm confused and don't really understand how the booting process works and also really don't want to have to reinstall linux again if it can be avoided. TIA
p.s. Here's the part of menu.lst that does the booting stuff
Code:
title Ubuntu, kernel 2.6.15-23-386
root (hd0,0)
kernel /vmlinuz-2.6.15-23-386 root=/dev/hda3 ro quiet splash
initrd /initrd.img-2.6.15-23-386
savedefault
boot
title Ubuntu, kernel 2.6.15-23-386 (recovery mode)
root (hd0,0)
kernel /vmlinuz-2.6.15-23-386 root=/dev/hda3 ro single
initrd /initrd.img-2.6.15-23-386
boot
title Ubuntu, memtest86+
root (hd0,0)
kernel /memtest86+.bin
boot
title Windows XP
root (hd0,6)
makeactive
chainloader +1