ubuntu的14.04版本,安装后,系统启动时直接进入系统,没有选择Advance Option的选项,进而无法选择内核版本。
这里,我设置了一下/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=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
... .... ...
原本的配置文件如上,...后面还有内容,但是未加以修改,所以就未显示。
其实只改动了一项:将GRUB_HIDDEN_TIMEOUT=0 这行注释掉。 然后sudo update-grub2 更新一下/boot中grub.cfg文件,然后重启动,就有选择内核版本的配置了(注:进入到Advance Option中选择内核版本)。
可以参考
http://www.2cto.com/os/201306/217198.html 这篇文章,启动还有更为详细的其他配置说明