文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Ubuntu GRUB開機選項修改

Ubuntu GRUB開機選項修改

时间:2010-10-03  来源:mydear

特别值得一提的是Ubuntu GRUB有很多值得学习的地方,这里我们主要介绍Ubuntu GRUB,包括介绍Ubuntu GRUB等方面。Ubuntu GRUB負責管理啟動Linux還是Windows,該如何修改Ubuntu GRUB開機選項呢?

Introduction為什麼需要更改Ubuntu GRUB呢?
1.當Ubuntu更新新的kernel後,Ubuntu GRUB會自動加上新的kernel開機選項,導致開機選項越來越多,想將不必要的開機選項刪除.
2.Ubuntu GRUB預設開機為Ubuntu,你可以想將預設開機改成Windows.
3.修改預設Ubuntu GRUB等待時間.
4.預設不顯示GRUB menu,直接進入Windows.

假如你有以上需求,就得手動修改Ubuntu GRUB開機選項.Solution開啟Ubuntu GRUB開機選項檔sudo gedit /boot/grub/menu.lstQ1.當Ubuntu更新新的kernel後,Ubuntu GRUB會自動加上新的kernel開機選項,導致開機選項越來越多,想將不必要的開機選項刪除.

A1.以下為我所要的開機選項,不需要者可自行刪除之End Default Options

  1. title Ubuntu, kernel 2.6.20-16-generic
  2. root (hd0,6)
  3. kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=b923ef76-3246-411c-8095-7bca666b13a5 ro quiet splash
  4. initrd /boot/initrd.img-2.6.20-16-generic
  5. quiet
  6. savedefault
  7. title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
  8. root (hd0,6)
  9. kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=b923ef76-3246-411c-8095-7bca666b13a5 ro single
  10. initrd /boot/initrd.img-2.6.20-16-generic
  11. # This entry automatically added by the Debian installer for a non-linux OS
  12. # on /dev/sda1
  13. title Microsoft Windows XP Professional
  14. root (hd0,0)
  15. savedefault
  16. makeactive
  17. chainloader +1

Q2.Ubuntu GRUB預設開機為Ubuntu,你可以想將預設開機改成Windows.A2.修改

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

default 2預設default為 0,表示開機用Ubuntu開機,因為在我的電腦Windows為第三個選項,故default為2Q3.修改預設Ubuntu GRUB等待時間.A3.修改

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

timeout 3預設為10秒鐘,我改成等待3秒鐘Q4.預設不顯示Ubuntu GRUB menu,直接進入Windows.

  1. ## hiddenmenu
  2. # Hides the menu by default (press ESC to see the menu)
  3. hiddenmenu
預設會顯示Ubuntu GRUB menu,若你不想顯示menu,要當按下ESC才顯示,請將hiddenmenu前的#拿掉
排行榜 更多 +
梦幻甜心蛋糕店手游 v1.0 安卓版

梦幻甜心蛋糕店手游 v1.0 安卓版

休闲益智 下载
狙击手血战鬼子 v8081.23.10.7 安卓版

狙击手血战鬼子 v8081.23.10.7 安卓版

休闲益智 下载
狙击手血战鬼子 v8081.23.10.7 安卓版

狙击手血战鬼子 v8081.23.10.7 安卓版

休闲益智 下载