Ubuntu启动项修改

来源:互联网 发布:仓管软件 免费 编辑:程序博客网 时间:2024/05/20 18:53
在终端输入命令:
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=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代表的就是启动项的顺序,从数字0开始,依次代表如下启动项。
如果你的电脑显示器显示的启动列表内容如下时:
Ubuntu
Advanced options for Ubuntu
Memory test (memtest86+)
Memory test (memtest86+, serial console 115200)
Windows 8 (loader) (on /dev/sda1)

说明0是ubuntu,windows是4。修改GRUB_DEFAULT=4即可。
最后执行下面的命令保存,重启电脑。
sudo update-grub
0 0
原创粉丝点击