► Install Tomcat 6.x + JDK/JRE + Eclipse 3.5.x(Galileo) under Ubuntu 9.10

► Ubuntu 8.04 修改启动目录/boot/grub/menu.lst

will posted @ 2010年10月19日 11:23 in Ubuntu with tags 8.04 Ubunntu menu.lst 修改 , 4369 阅读
未经允许,请勿转载。 文章来源:http://willvking.is-programmer.com

2009年01月30日 15:19

当我更新了当前版本(Ubuntu 8.04)的Ubuntu的内核后,启动目录列表中会出现新的选项,而旧的选项不会自己去掉。于是我的启动目录便有了3个Ubuntu 8.04的不同内核版本的启动选项。

Ubuntu 8.04.3 LTS, kernel 2.6.24-26-generic
Ubuntu 8.04.3 LTS, kernel 2.6.24-26-generic (recovery mode)

Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic
Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic (recovery mode)
Ubuntu 8.04.3 LTS, kernel 2.6.24-19-generic
Ubuntu 8.04.3 LTS, kernel 2.6.24-19-generic (recovery mode)
Ubuntu 8.04.3 LTS, memtest86+
Other operating systems:
Microsoft Windows XP Professional


 

于是我在应用程序中 附件中 打开终端程序(Applications-> Accessories -> Terminal)

输入sudo gedit /boot/grub/menu.lst

 



得到menu.lst文件内容,部分如下(## ## BEGIN No Necessary Menu Items 的注释是我后来加上去的):

……

default 6

……

title  Ubuntu 8.04.3 LTS, kernel 2.6.24-26-generic
root  (hd0,9)
kernel  /vmlinuz-2.6.24-26-generic root=UUID=dce5febf-2a0d-48f1-abc5-684690cbda83 ro quiet splash locale=zh_CN
initrd  /initrd.img-2.6.24-26-generic
quiet

title  Ubuntu 8.04.3 LTS, kernel 2.6.24-26-generic (recovery mode)
root  (hd0,9)
kernel  /vmlinuz-2.6.24-26-generic root=UUID=dce5febf-2a0d-48f1-abc5-684690cbda83 ro single
initrd  /initrd.img-2.6.24-26-generic


 

## ## BEGIN No Necessary Menu Items
## title  Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic
## root  (hd0,9)
## kernel  /vmlinuz-2.6.24-24-generic root=UUID=dce5febf-2a0d-48f1-abc5-684690cbda83 ro quiet splash locale=zh_CN
## initrd  /initrd.img-2.6.24-24-generic
## quiet

## title  Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic (recovery mode)
## root  (hd0,9)
## kernel  /vmlinuz-2.6.24-24-generic root=UUID=dce5febf-2a0d-48f1-abc5-684690cbda83 ro single
## initrd  /initrd.img-2.6.24-24-generic

## ## End No Necessary Menu Items ##


 

title  Ubuntu 8.04.3 LTS, kernel 2.6.24-19-generic
root  (hd0,9)
kernel  /vmlinuz-2.6.24-19-generic root=UUID=dce5febf-2a0d-48f1-abc5-684690cbda83 ro quiet splash locale=zh_CN
initrd  /initrd.img-2.6.24-19-generic
quiet

title  Ubuntu 8.04.3 LTS, kernel 2.6.24-19-generic (recovery mode)
root  (hd0,9)
kernel  /vmlinuz-2.6.24-19-generic root=UUID=dce5febf-2a0d-48f1-abc5-684690cbda83 ro single
initrd  /initrd.img-2.6.24-19-generic

title  Ubuntu 8.04.3 LTS, memtest86+
root  (hd0,9)
kernel  /memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

 

# This is a divider, added to separate the menu items below from the Debian
# ones.
title  Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title  Microsoft Windows XP Professional
root  (hd0,0)
savedefault
makeactive
chainloader +1


 

 当我给准备隐去的24的内核版本的列表加上

## ## BEGIN No Necessary Menu Items

## ……

## ……

## ……

## ## End No Nessary Menu Items ##


后,Ctrl + s保存,再重启 列表便少了

Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic
Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic (recovery mode)

两项,于是清爽许多。

Default 6 是指列表中操作系统目录从0开始第7项作为默认启动项,此处仍然是 以前设定的

Microsoft Windows XP Professional

为默认启动项。

  • 无匹配

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter