打開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