ubuntu 多系统修改启动项顺序

作者:admin发表时间:2011-11-11 评论:0 点击 3,002+

当你安装了ubuntu 还有其他多个系统时,当你每次开机都要去选择windows 项,默认时ubuntu ,但常常我们喜欢把windows 弄为第一项。

现在我们就来修改ubuntu 开机启动菜单。

在 终端中 输入 gedit /boot/grub/grub.cfg,我们会看见如下的注释;

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

叫你不要编辑这个文件,但常常 我们都是在这点修改,这样时不好的,不然你更新grub时又会变成默认的状态了。

from /etc/grub.d and settings from /etc/default/grub 叫我们去编辑这两个文件,我们只需打开/etc/default/grub 这个就可以了。

在终端中输入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=””

GRUB_DEFAULT=0 这个就是我们需要修改的,从0开始计算,GRUB_DEFAULT=0 就表示你ubuntu 在第一项开机时光标指到的位置,你开机时可以开,你开机时向下数看你windows 在第几项,假如你windows 7 在6项,那你就把GRUB_DEFAULT=5 ,设为5。那开机时光标默认就移动到第6项了,不用自己去选择了。

最后更新一下grub吧。

sudo update-grub

Found linux image: /boot/vmlinuz-3.0.0-13-generic
Found initrd image: /boot/initrd.img-3.0.0-13-generic
Found linux image: /boot/vmlinuz-3.0.0-12-generic
Found initrd image: /boot/initrd.img-3.0.0-12-generic
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found MS-DOS 5.x/6.x/Win3.1 on /dev/sda5
看我的就是在第6项。

现在重启电脑 自己就可以看见效果了。

顶一下 2 踩一下 0

你可能对以下内容感兴趣!

  1. ubuntu 系统如何升级
  2. ubuntu 14.04 wubi无法安装
  3. ubuntu13.10+nginx+mysql+p...
  4. 华硕电脑无法安装ubuntu10.10以后版本
  5. 制作u盘启动ubuntu10.10和11.04的方...
  6. ubuntu window 多系统启动顺序修改
  7. 好看的ubuntu壁纸
  8. 重装Win7修复Ubuntu10.04引导

发表回复

*

w_0002.gif w_0009.gif w_0007.gif w_0011.gif w_0005.gif w_0008.gif w_0010.gif w_0003.gif w_0012.gif w_0001.gif w_0006.gif