六.升级后多出的启动菜单
在官方网站下载 Ubuntu 8.04 桌面版的 Linux 内核是 2.6.24-19,安装好后把系统升级
到最新,内核变成了 2.6.24-20。这是在开机的选择启动项里就多出了两个启动选择,如下
图:
而在通常情况下,我们就没必要再进入旧的内核系统了,我们把不需要的两个启动选择
项删掉。
备份menu.lst,防止出错:
*sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.backup
编辑menu.lst:
*sudo gedit /boot/grub/menu.lst
找到如下文字:
## ## End Default Options ##
title Ubuntu 8.04.1, kernel 2.6.24-20-generic
root (hd0,8)
kernel /boot/vmlinuz-2.6.24-20-generic
root=UUID=d647ec45-7f6d-48b7-87c4-631016eaabf8 ro quiet splash
locale=zh_CN
initrd /boot/initrd.img-2.6.24-20-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-20-generic (recovery mode)
root (hd0,8)
kernel /boot/vmlinuz-2.6.24-20-generic
root=UUID=d647ec45-7f6d-48b7-87c4-631016eaabf8 ro single
initrd /boot/initrd.img-2.6.24-20-generic
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,8)
kernel /boot/vmlinuz-2.6.24-19-generic
root=UUID=d647ec45-7f6d-48b7-87c4-631016eaabf8 ro quiet splash
locale=zh_CN
initrd /boot/initrd.img-2.6.24-19-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,8)
kernel /boot/vmlinuz-2.6.24-19-generic
root=UUID=d647ec45-7f6d-48b7-87c4-631016eaabf8 ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,8)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
把上面画线的文字删除,保存退出后就好了。
PS:推荐一个系统启动管理工具,qgrubeditor,通过这个管理起来就方便多了。
安装:sudo apt-get install qgrubeditor
返回顶部