PDA

View Full Version : Small default GRUB.conf problem



Th3 M3xican
21st January 2005, 08:54 PM
I ran up2date and it installed kernel 2.6.10. Now when I boot GRUB loads kernel 2.6.10 by default instead of XP. What changes do I need to make the the GRUB.conf to make it boot XP by defualt. Here is my GRUB.conf file.
# 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,4)
# kernel /vmlinuz-version ro root=/dev/hda6
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.10-1.741_FC3)
root (hd0,4)
kernel /vmlinuz-2.6.10-1.741_FC3 ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.10-1.741_FC3.img
title Fedora Core (2.6.9-1.667)
root (hd0,4)
kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.9-1.667.img
title Windows XP
rootnoverify (hd0,1)
chainloader +1

Tashiro
21st January 2005, 09:05 PM
Hi,

Change default=0 to default=1

Tashiro

Th3 M3xican
21st January 2005, 09:25 PM
Thanks for the reply, but I found that the default number was acutally 2

pparks1
21st January 2005, 11:08 PM
The numbering starts with 0.

Search for the lines that start with title (some version of Fedora or Windows).

The first instance is 0, the second is instance 1 and the third is instance 2.

In your case, Windows XP is third Title line in your grub.conf, so it should be number 2 (0, 1, 2)

Tashiro
21st January 2005, 11:58 PM
I stand corrected, indeed the 2 is the right one. Somehow missed the second kernel.

Tashiro