Re: Grub and XP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Pedro Fernandes Macedo wrote:

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


My device.map file looks good:

# this device map was generated by anaconda
(fd0)     /dev/fd0
(hd0)     /dev/hda
(hd1)     /dev/hdb


And the way you told me to set up grub.conf is the way I thought it would work, but it doesn't. I changed it to the way you have it and I couldn't boot into linux:


Error 17:  Can not mount selected partition.

So I rebooted, and changed the root line to (hd0, 0), and then I was able to get back into linux (btw, I couldn't see anything with the splashimage line uncommented, so I commented that back out).

To me it seems like hd0 is hdb, and hd1 is hda....but according ty my device.map that is impossible.

In case it matters this comment is at the top of grub.conf:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/hdb1
#          initrd /boot/initrd-version.img
#boot=/dev/hdb


What am I missing?



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux