300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > linux 开机默认启动windows系统时间 Windows和Linux双系统批改默认启动项 超时时间...

linux 开机默认启动windows系统时间 Windows和Linux双系统批改默认启动项 超时时间...

时间:2022-07-01 14:32:07

相关推荐

linux 开机默认启动windows系统时间 Windows和Linux双系统批改默认启动项 超时时间...

Windows和Linux双系统修改默认启动项、超时时间

修改/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来引导系统,请看我的另一篇文章:

/jackeriss/article/details/47264245

版权声明:本文为博主原创文章,未经博主允许。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。