打开ubuntu系统之后,咱们打开超级终端,输入如下命令html
sudo gedit /etc/default/grub
ubuntu
显示以下windows
# 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="locale=zh_CN"ui
GRUB_DEFAULT表明的就是启动项的顺序,从数字0开始,依次表明以下启动项(这是在个人电脑上,不一样的ubuntu版本和windows系统可能会有一些不一样):this
GRUB_DEFAULT表明的就是启动项的顺序,从数字0开始,依次表明以下启动项(这是在个人电脑上,不一样的ubuntu版本和windows系统可能会有一些不一样):spa
Ubuntu
Advanced options for Ubuntu
Memory test (memtest86+)
Memory test (memtest86+, serial console 115200)
Windows 8 (loader) (on /dev/sda1)orm
windows排第四位(注意,顺序是从0开始计的),因此,把GRUB_DEFAULT的值修改成4,而后别忘了运行命令:htm
sudo update-grubblog
好了,重启电脑,默认启动的系统就换到windows了。ci