技巧:多系統下更改引導裝載程式的方法

來源:互聯網
上載者:User

 

本機已有系統fedora8+Windows_XP,更改啟動時的引導順序,方法如下:

進入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這一行中的值。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.