<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    狼愛上貍

    我胡漢三又回來了

    修改Ubuntu啟動(dòng)菜單-使XP變?yōu)槟J(rèn)操作系統(tǒng)

    自從裝了Ubuntu和XP雙系統(tǒng)后,變得很麻煩,每次都得在啟動(dòng)菜單上選來選去,浪費(fèi)了不少時(shí)間。


    現(xiàn)在想修改使XP成為默認(rèn)的操作系統(tǒng),怎么辦呢?

    其實(shí)很簡單,修改 /boot/grub/menu.lst 文件,使其中default值變動(dòng)一下即可。
    過程如下:

    1、打開命令行終端;
    2、輸入:
    sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.bak
    sudo gedit /boot/grub/menu.lst
    注: 第一句做備份用。
    3、假設(shè)文件內(nèi)容如下:
    -------------------------------------------------------------
    # menu.lst - See: grub(8), info grub, update-grub(8)
    # grub-install(8), grub-floppy(8),
    # grub-md5-crypt, /usr/share/doc/grub
    # and /usr/share/doc/grub-doc/.

    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not change this entry to 'saved' or your
    # array will desync and will not let you boot your system.
    default 0

    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout 10

    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    #hiddenmenu


    ## ## End Default Options ##

    title Ubuntu, kernel 2.6.15-23-386
    root (hd0,2)
    kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda3 ro quiet splash
    initrd /boot/initrd.img-2.6.15-23-386
    savedefault
    boot

    title Ubuntu, kernel 2.6.15-23-386 (recovery mode)
    root (hd0,2)
    kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda3 ro single
    initrd /boot/initrd.img-2.6.15-23-386
    boot

    title Ubuntu, memtest86+
    root (hd0,2)
    kernel /boot/memtest86+.bin
    boot

    ### END DEBIAN AUTOMAGIC KERNELS LIST

    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title Other operating systems:
    root
    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/hda1
    title Microsoft Windows XP Professional
    root (hd0,0)
    savedefault
    makeactive
    chainloader +1
    -------------------------------------------------------------
    現(xiàn)在default值為0,意即啟動(dòng)排行第一的操作系統(tǒng),這里代表的就是Ubuntu, kernel 2.6.15-23-386。
    現(xiàn)在把它修改成“default 4”,那么XP就成為默認(rèn)的操作系統(tǒng)了。
    因?yàn)閺牧銛?shù)起,以title打頭的Microsoft Windows XP Professional這一行排序?yàn)?。
    另外我們還可以通過修改timeout的值來變更默認(rèn)等待時(shí)間。

    來自:http://blog.sina.com.cn/u/4c480f17010009z1

    posted on 2007-07-21 07:59 狼愛上貍 閱讀(14840) 評論(2)  編輯  收藏 所屬分類: LINUX

    評論

    # re: 修改Ubuntu啟動(dòng)菜單-使XP變?yōu)槟J(rèn)操作系統(tǒng) 2008-04-20 23:13 StovintPan

    頂一下,我正要解決這個(gè)問題呢!Thank u!  回復(fù)  更多評論   

    # re: 修改Ubuntu啟動(dòng)菜單-使XP變?yōu)槟J(rèn)操作系統(tǒng) 2009-08-19 04:10 ETCOW

    THANK YOU SO MUCH! 學(xué)到東西了  回復(fù)  更多評論   

    主站蜘蛛池模板: 亚洲国产精品成人久久久 | 国产成人亚洲精品青草天美| 亚洲AV无码专区在线观看成人| 91福利免费体验区观看区| 亚洲av无码不卡一区二区三区| av成人免费电影| 中文字幕亚洲日韩无线码| 国产精品高清免费网站| 亚洲色欲久久久综合网| 永久免费AV无码网站国产| 亚洲成AV人片在线观看ww| 99久久久国产精品免费牛牛| 亚洲一区综合在线播放| 波多野结衣免费在线| 久久夜色精品国产噜噜亚洲a| 中文字幕乱码免费视频| 亚洲精品免费网站| 免费观看国产精品| 久99久无码精品视频免费播放| 成人午夜亚洲精品无码网站| 久久久精品免费国产四虎| 亚洲成人福利在线观看| 成人毛片手机版免费看| 四虎国产精品成人免费久久| 中文亚洲AV片在线观看不卡| 99久久99久久精品免费观看 | 亚洲毛片基地日韩毛片基地| 免费人成视频在线| 二级毛片免费观看全程| 亚洲av综合avav中文| 永久免费av无码不卡在线观看| 亚洲一级毛片免费在线观看| 国产麻豆免费观看91| a级日本高清免费看| 亚洲中字慕日产2021| 亚洲国产精品人人做人人爽| 少妇太爽了在线观看免费视频| 亚洲视频一区二区三区四区| va亚洲va日韩不卡在线观看| 精品无码无人网站免费视频 | 日本特黄特黄刺激大片免费|