Ubuntu 17.04 配置grub 默认启动windows
安装Ubuntu 之后,默认启动是 Ubuntu。这给家里的老人带来了困扰,需要配置grub,默认启动Windows.
Steps:
以下步骤需要sudo权限。 1. vim /etc/default/grub 并修改 GRUB_DEFAULT参数。 2. 一般(双系统)windows会被放在第三行,所以改成2.如下 3. 保存后,使用 update-grub 更新 4. 然后重启。 5. 参数都很简单,所以不做详细介绍。
# 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_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=
""
Reference:
https://help.ubuntu.com/community/Grub2