PDA

View Full Version : Boot Windows as default in Grub Bootloader



tokegee
2nd July 2007, 03:46 PM
Hi
My PC has Dual boot .. Fedora 7 and Windows XP MCE. Currently booting into Fedora 7 is default. I would like Booting into Windows XP to be default. What I have to do? Please guide me step by step like your small brother. :)
Thank you!

daverj
2nd July 2007, 04:01 PM
show your grub.conf file

tokegee
2nd July 2007, 04:13 PM
# 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,1)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.21-1.3228.fc7)
root (hd0,1)
kernel /vmlinuz-2.6.21-1.3228.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-1.3228.fc7.img
title Fedora (2.6.21-1.3194.fc7)
root (hd0,1)
kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-1.3194.fc7.img
title Other
rootnoverify (hd0,0)
chainloader +1

bob
2nd July 2007, 04:23 PM
The key phrase is "default=0". Since the computer counts up from zero, you need to count up from your first Fedora title to your Windows title. In this case, it's "0,1,2". So, change "default=0" to "default=2" and you'll boot Windows first. Since Fedora only keeps two kernels; the newest and second-newest, in the grub.conf, your Windows will always boot at "2" despite new kernels being added and old ones removed.

Other tweaks, while you're in there. If you want to see the menu each time you boot, simply put a comment (#) before "hiddenmenu" and if you want more or less time to make the selection, then change "timeout=5" (seconds) to something you'd prefer. And, of course, you can change "Other" to "Windows" or whatever you choose.

tokegee
2nd July 2007, 04:32 PM
Hi bob
Thank you so much indeed. That's very kind of you! :)