Windows和Linux双系统批改默认启动项、超时时间
Windows和Linux双系统修改默认启动项、超时时间
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"
修改/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.****.net/jackeriss/article/details/47264245
版权声明:本文为博主原创文章,未经博主允许不得转载。