When we install the dual system of windows and ubuntu, the default startup becomes ubuntu, which is fine for children's shoes that use ubuntu as the system, but for those children's shoes who often need to enter windows, they have to press down several times every time they start up. Arrow, then hit enter, very inconvenient, is there a way to make windows start by default when the computer is turned on? Of course there is, so let's introduce it below.
Baidu experience: jingyan.baidu.com
method/step
-
After opening the ubuntu system, we open the hyper terminal and enter the following command
sudo gedit /etc/default/grub
-
Shows as follows
# 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"GRUB_DEFAULT represents the order of startup items, starting from number 0, and represents the following startup items in order (this is on my computer, different ubuntu versions and windows systems may be slightly different):
GRUB_DEFAULT represents the order of startup items, starting from number 0, and represents the following startup items in order (this is on my computer, different ubuntu versions and windows systems may be slightly different):
Ubuntu
Advanced options for Ubuntu
Memory test (memtest86+)
Memory test (memtest86+, serial console 115200)
Windows 8 (loader) (on /dev/sda1)Windows ranks fourth (note that the order starts from 0), so change the value of GRUB_DEFAULT to 4, and then don't forget to run the command:
sudo update-grub
Well, restart the computer, and the default startup system will be changed to Windows.
END
Baidu experience: jingyan.baidu.com