Wednesday, July 26, 2006

Change your Grub boot order

Change the boot order in Grub

- Open a terminal and login as root
- Edit this file: /boot/grub/grub.conf

Here is a sample:
__________________________________________________
# 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,5)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=15
splashimage=(hd0,5)/grub/splash.xpm.gz
hiddenmenu
title Windows XP Pro
rootnoverify (hd0,0)
chainloader +1
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,5)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5.img
__________________________________________________

One way to do it:
Notice where it says "title". Each of those entries is a different OS. So in this case I am multibooting to Windows XP Pro and Fedora Core 5. The order they boot in depends on the order they appear in this file. So for instance, right now, Windows boots first. But if I cut the Windows XP Pro entry and paste it below the Fedora entry, then Fedora would boot first.

Another way to do it:
Or take a look at the line "default=0". The boot order goes as 0,1,2,.. etc. So 0 = the first title. 1 = the second title. So in this case 0 is saying that Windows XP Pro will boot first. So if I change the default from 0 to 1, then Fedora would boot first.

Get it? Got it? Good!!

No comments: