進入fedora8,先備份/etc/grub.conf文件,在命令行下輸入:
#gedit /etc/grub.conf
文件內容如下,中文部分為我所添加的注釋。
# 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,7)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda ——這是GRUB安裝的位置
default=2 ——啟動時GRUB將默認啟動序號為2的操作系統,即Windows_XP
timeout=5 ——啟動時菜單等待時間,可以自行修改
splashimage=(hd0,7)/grub/splash.xpm.gz ——啟動序號依次從0遞增,Fedora (2.6.24.5-85.fc8)序號為0, Fedora (2.6.23.1-42.fc8)為1,Windows_XP為2.如果把Windows_XP排在最前面,則其啟動序號為0.為了默認啟動Windows_XP,則前面的default=2應改為default=0.
hiddenmenu
title Fedora (2.6.24.5-85.fc8) ——啟動時Fedora (2.6.24.5-85.fc8) 菜單的標題,啟動序號為0
root (hd0,7)
kernel /vmlinuz-2.6.24.5-85.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quIEt
initrd /initrd-2.6.24.5-85.fc8.img
title Fedora (2.6.23.1-42.fc8) ——Fedora (2.6.23.1-42.fc8) 菜單的標題,啟動序號為1
root (hd0,7)
kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quIEt
initrd /initrd-2.6.23.1-42.fc8.img
title Windows_XP ——Windows_XP 系統的菜單標題,啟動序號為2
rootnoverify (hd0,0)
chainloader +1
所以,要更改啟動順序,只需要更改default=2這一行中的值。