ubuntu和Windows双系统修改grub默认启动顺序


 

一般grub引导界面的默认的顺序是

Ubuntu
Advanced options for Ubuntu
Windows 10

那么对应的 GRUB_DEFAULT 顺序是0、1、2

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=2
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX="text"

修改 GRUB_DEFAULT=0 即可 默认启动顺序为Ubuntu

最后更新生效一下

sudo update-grub

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM