2010/08/09

GRUB 2 的開機選單修改及預設開機啟動

GRUB2 改進了 GRUB 的優點,讓他變功能更強大???

* command mode 修改法:
原本的 menu.lst 變成 /etc/grub.d/ 和 /etc/default/grub 兩個地方來修改
通常是修改 /etc/default/grub.cfg 的設定檔
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=8
* 再透過 update-grub 程式產生更新 boot/grub/grub.cfg 檔案才可以修改成功(變得真是麻煩)
# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-24-generic
Found initrd image: /boot/initrd.img-2.6.32-24-generic
Found linux image: /boot/vmlinuz-2.6.32-23-generic
Found initrd image: /boot/initrd.img-2.6.32-23-generic
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done

but..對於使用者而言並不如以前的 GRUB 設定來的簡單,
所以其實他是告訴我們...請用圖形介面設定....

* 用圖形介面程式 StartUp-Manager 設定 Grub2
* 安裝
sudo apt-get install startupmanager
* 安裝完成後可在 "系統" -> "管理" -> "StartUP-Manager" 開啟本程式
* 然後圖例如下:


* 接下來不用我說你應該會做了

* 參考:
* https://help.ubuntu.com/community/Grub2 GRUB2 說明(英文)
* http://wiki.ubuntu-tw.org/index.php?title=GRUB_2_%E4%B8%AD%E6%96%87%E6%8C%87%E5%8D%97 Grub2 說明(中文)

沒有留言: