Frylock350
2nd August 2004, 04:33 AM
I originally had problems dual booting my box with xp pro and fc2. The box had a pre-existing installation of XP on one hard disk and a second unpartitioned disk for fc2. The install of fc2 went smoothly but upon reboot GRUB hung. To fix this i used xp's cd to restore the xp bootloader to the MBR. I tried installing fc2 again but this time I installed GRUB to the boot partition of my linux hd instead of the MBR. Upon reboot XP loaded. The trick is to get XP's bootloader to launch grub. To do this boot the machine with the fc2 cd1 and type 'linux rescue' at the prompt. Then type 'su' to gain root access. Mount and format your floppy drive using the instructions posted here, but make the filesystem type vfat (fat32) instead of ext3.
http://www.alwanza.com/howto/linux/floppy.html
For XP to boot GRUB it needs a copy of the bood sector of the linux /boot partition. To obtain this copy the boot sector to the floppy you just formatted. Type this command
dd if=/dev/fd0 of=/mnt/floppy/linuxboot.bin bs=512 count=1
Reboot into XP and copy the linuxboot.bin from the floppy to C:\
Open the boot.ini file (hidden file located in C:\) and add the line
c:\linuxboot.bin="Fedora Core 2"
Reboot and you should be able to select which os you want. Selecting Fedora Core should load GRUB.
I learned most of this from.
http://www.geocities.com/epark/linux/grub-w2k-HOWTO.html
http://www.alwanza.com/howto/linux/floppy.html
For XP to boot GRUB it needs a copy of the bood sector of the linux /boot partition. To obtain this copy the boot sector to the floppy you just formatted. Type this command
dd if=/dev/fd0 of=/mnt/floppy/linuxboot.bin bs=512 count=1
Reboot into XP and copy the linuxboot.bin from the floppy to C:\
Open the boot.ini file (hidden file located in C:\) and add the line
c:\linuxboot.bin="Fedora Core 2"
Reboot and you should be able to select which os you want. Selecting Fedora Core should load GRUB.
I learned most of this from.
http://www.geocities.com/epark/linux/grub-w2k-HOWTO.html