Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grub won't boot WinXP drive 1

Status
Not open for further replies.

Dryvlyne

IS-IT--Management
Oct 15, 2004
25
US
OK, I just finished putting Fedora Core 4 on a separate internal IDE HDD while keeping WInXP on my SATA HDD. Upon installing Fedora I chose to install the Grub bootloader so that I could dual boot from either OS and told it by default to boot to WIndows (which is on my SATA HDD) and otherwise I would choose to boot into Fedora. Well I can boot into Fedora just fine, but I am unable to boot into Windows.

Here is what my grub.conf file looks like -

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda1
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu

title Fedora Core (2.6.11-1.1369_FC4)
 root (hd0,0)
 kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ rhgb quiet
 initrd /initrd-2.6.11-1.1369_FC4.img

title Windows XP
 rootnoverify (hd1,0)
 chainloader +1

Again, my goal here is to have Grub boot the WinXP SATA drive by default. I should also not that my motherboard always looks at ATA drives first, before it looks to any SATA drive.

Thanks in advance!
 
Ah, nevermind. I've found the answer to my problem.

I simply needed to change the Windows portion of the grub.conf file to the following -

title Windows at sda1
rootnoverify (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
makeactive
chainloader +1

Thanks
 
Thanks for following that up with the solution :)

----
JBR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top