Wesley (Buck) Lemke wrote:
I had linux installed. I installed XP. Then I re-installed Grub to the MBR ->
grub> root (hd0,0) grub> setup (hd0)
I now have XP installed on the master drive of the first ide controller, and FC2 on the slave. How should my grub.conf look? This is what I have now:
default=0
timeout=10
#splashimage=(hd1,0)/boot/grub/splash.xpm.gz <---------- (this doesn't seem to work, so it's commented out).
title Fedora Core (2.6.6-1.435.2.3)
# root (hd0,0) <------------- Is this needed?
kernel /boot/vmlinuz-2.6.6-1.435.2.3 ro root=/dev/hdb1 rhgb quiet acpi=off
initrd /boot/initrd-2.6.6-1.435.2.3.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
makeactive
FC2 boots fine, but XP gives me:
Error 13:
Invalid or Unsupported executable format.
Is my setup for FC2 correct (it works, but is it ideal), and how do I boot XP?
First , you have to check your /boot/grub/device.map , and ensure that it has two definitions for HDs... hd0 for /dev/hda and hd1 for /dev/hdb.
Then , you need to put this on your grub.conf:
default=0
timeout=10
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
title Fedora Core (2.6.6-1.435.2.3)
root (hd1,0) #this is needed.. Otherwise grub doesnt know the relative paths..
kernel /boot/vmlinuz-2.6.6-1.435.2.3 ro root=/dev/hdb1 rhgb quiet acpi=off
initrd /boot/initrd-2.6.6-1.435.2.3.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
makeactive
This should do the trick..
-- Pedro Macedo