改grub文件,改變引導順序

修改grub文件,改變引導順序

 裝上fedora近兩週了,說心裏話,個人感覺在易用性上和Windows相差很大。 我分配10G的空間用於Linux,主要用於學習,一時脫離XP辦不到。 在裝好fedora後,便由grub來引導,不作選擇則默認進入fedora。然而我用fedora時間還不多,僅學習時使用,每次都在開機時選擇一次,顯然正常人都會不爽。 以下是一點小心得,僅獻給和我一樣的Linux新手。 用KEdit打開/boot/grub/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,8)
#                 kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#                 initrd /initrd-version.img
#boot=/dev/hdc
default=0 (這個便是設置默認引導的,從0開始。改爲1,就可直接從XP引導。)
timeout=5 (在出現grub界面後默認等待時間,單位爲秒,我將其改爲3。) splashimage=(hd0,8)/grub/splash.xpm.gz (據說是grub界面的圖片,我沒修改。)
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6) (首個引導選項名稱。)
       root (hd0,8) kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
       initrd /initrd-2.6.18-1.2798.fc6.img
title Other (這個原來便是Win的引導選項,把Other改爲Microsoft Windows XP SP2,下次引導時便顯示Windows了。)
       rootnoverify (hd0,0)
       chainloader +1

修改完保存一下,重啓就OK可見到效果啦。
PS:此文在Linux下完成。
文章來源:[url]http://hi.baidu.com/pxxaish/blog/item/ecce2c38e786a9f3b311c73d.html[/url]
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章