標籤:linux ubuntu 啟動順序 等待 預設
修改/etc/default/grub, 然後update-grub。
執行命令
sudo gedit /etc/default/grub
主要內容為
# If you change this file, run ‘update-grub‘ afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n ‘Simple configuration‘
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DEFAULT代表的就是啟動項的順序,從數字0開始,依次代表如下啟動項(這是在我的電腦上,不同的Linux版本和windows系統可能會有一些不同)
Ubuntu
Advanced options for Ubuntu
Memory test (memtest86+)
Memory test (memtest86+, serial console 115200)
Windows 8 (loader) (on /dev/sda1)
Windows排第四位(注意,順序是從0開始計的),所以,把GRUB_DEFAULT的值修改為4
GRUB_TIMEOUT=10代表逾時時間,預設為10秒,設定為-1取消倒計時
最後別忘了執行
sudo update-grub
好了,重啟電腦,預設啟動的系統就換到Windows了。
如果不想用Linux的grub而是想換回Windows的BCD或Metro來引導系統,請看我的另一篇文章:
http://blog.csdn.net/jackeriss/article/details/47264245
著作權聲明:本文為博主原創文章,未經博主允許不得轉載。
Windows和Linux雙系統修改預設啟動項、逾時時間