我想调整一下GRUB启动菜单的启动顺序[半解决]

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
jackisback2008
帖子: 11
注册时间: 2008-10-14 13:43

我想调整一下GRUB启动菜单的启动顺序[半解决]

#1

帖子 jackisback2008 » 2008-10-16 13:26

如题: :em06

我是vista和ubuntu双系统~

下面是我的menu.lst内容

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=566071eb-fd13-42cc-b3e7-2f6363253814 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash locale=zh_CN

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 8.04.1, kernel 2.6.24-21-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=566071eb-fd13-42cc-b3e7-2f6363253814 ro quiet splash locale=zh_CN
initrd /boot/initrd.img-2.6.24-21-generic
quiet

title Ubuntu 8.04.1, kernel 2.6.24-21-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=566071eb-fd13-42cc-b3e7-2f6363253814 ro single
initrd /boot/initrd.img-2.6.24-21-generic

title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=566071eb-fd13-42cc-b3e7-2f6363253814 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,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=566071eb-fd13-42cc-b3e7-2f6363253814 ro single
initrd /boot/initrd.img-2.6.24-19-generic

title Ubuntu 8.04.1, memtest86+
root (hd0,0)
kernel /boot/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/sda4
title Windows Vista/Longhorn (loader)
root (hd0,3)
savedefault
makeactive
chainloader +1

我可以直接把
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda4
title Windows Vista/Longhorn (loader)
root (hd0,3)
这一段提到 Ubuntu系统的启动项目之前么?

还有升级后,多出了2个启动项目,怎么才能去掉?
要在kernel里删除 16、19、20 么?
可是我的kernel里面显示上面 三项就不是已安装状态阿?!

望达人指点阿!!!

新手小弟不胜感激!!! :em06 :em06 :em06
上次由 jackisback2008 在 2008-10-17 13:12,总共编辑 2 次。
jackisback2008
帖子: 11
注册时间: 2008-10-14 13:43

Re: 我想调整一下GRUB启动菜单的启动顺序

#2

帖子 jackisback2008 » 2008-10-16 14:20

没人坐沙发讲解么?

那么我自己坐了!!!

顶上去!!!

速求达人答疑解惑阿~~~~
jackisback2008
帖子: 11
注册时间: 2008-10-14 13:43

Re: 我想调整一下GRUB启动菜单的启动顺序

#3

帖子 jackisback2008 » 2008-10-16 14:27

再没人给俺讲解,俺就黑整了阿!!!

我可怜的机子阿,我祈祷一下,开弄吧~~~
jackisback2008
帖子: 11
注册时间: 2008-10-14 13:43

Re: 我想调整一下GRUB启动菜单的启动顺序

#4

帖子 jackisback2008 » 2008-10-16 15:02

黑整无效哦!!!没有root权限~~~
jackisback2008
帖子: 11
注册时间: 2008-10-14 13:43

Re: 我想调整一下GRUB启动菜单的启动顺序

#5

帖子 jackisback2008 » 2008-10-17 8:40

看来这里也没有什么我所期待的高手么!!!

都是看帖的,没人敢回帖?!

连个水贴都没有~~
jackisback2008
帖子: 11
注册时间: 2008-10-14 13:43

Re: 我想调整一下GRUB启动菜单的启动顺序

#6

帖子 jackisback2008 » 2008-10-17 8:40

要么就是我问的问题过于弱智?!

高手懒得搭理俺?! :em03
aoskas
帖子: 249
注册时间: 2007-11-06 13:56

Re: 我想调整一下GRUB启动菜单的启动顺序

#7

帖子 aoskas » 2008-10-17 10:01

default 0 #这句说..第一项为自动启动.你可以改这个数..改到你的VISTA上.

title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=566071eb-fd13-42cc-b3e7-2f6363253814 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,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=566071eb-fd13-42cc-b3e7-2f6363253814 ro single
initrd /boot/initrd.img-2.6.24-19-generic

title Ubuntu 8.04.1, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet

上边的三个启动项可以删出.

余下的问题不懂.本人UBUNTU小白.这个GRUB 是在学习WINPE时.看GRUB4DOS会的一点点.
头像
daf3707
论坛版主
帖子: 12731
注册时间: 2007-06-13 15:57
来自: 在他乡

Re: 我想调整一下GRUB启动菜单的启动顺序

#8

帖子 daf3707 » 2008-10-17 10:29

aoskas 写了:default 0 #这句说..第一项为自动启动.你可以改这个数..改到你的VISTA上.

title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=566071eb-fd13-42cc-b3e7-2f6363253814 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,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=566071eb-fd13-42cc-b3e7-2f6363253814 ro single
initrd /boot/initrd.img-2.6.24-19-generic

title Ubuntu 8.04.1, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet

上边的三个启动项可以删出.
出现grub菜单的时候,就数一下,从零开始数,想让哪个启动就改成那个数字 。如第3行的系统就是default 2。
LS说的删除三个启动项,只治表,旧的内核还在你的系统里占着究竟。可以用新立得搜“2.6.24-19-generic”,然后删除,这menu.lst里的二项自然就没了。最后一项可以手动屏蔽,就是在每行前加“#”号。
太麻烦是吧,最简单的方法是安装startupmanager

代码: 全选

sudo apt-get install startupmanager
:em05 :em11
jackisback2008
帖子: 11
注册时间: 2008-10-14 13:43

Re: 我想调整一下GRUB启动菜单的启动顺序

#9

帖子 jackisback2008 » 2008-10-17 12:36

哦,呵呵!!!

不错不错,还有朋友来帮我了!!!

我先去试试去!!!

谢谢各位朋友拉!!!
jackisback2008
帖子: 11
注册时间: 2008-10-14 13:43

Re: 我想调整一下GRUB启动菜单的启动顺序

#10

帖子 jackisback2008 » 2008-10-17 12:50

startupmanager

安装好以后在哪能调出程序应用呢??? :em06
头像
daf3707
论坛版主
帖子: 12731
注册时间: 2007-06-13 15:57
来自: 在他乡

Re: 我想调整一下GRUB启动菜单的启动顺序

#11

帖子 daf3707 » 2008-10-17 12:52

jackisback2008 写了:startupmanager

安装好以后在哪能调出程序应用呢??? :em06
系统-系统管理-启动管理器
或者打开终端运行
jackisback2008
帖子: 11
注册时间: 2008-10-14 13:43

Re: 我想调整一下GRUB启动菜单的启动顺序

#12

帖子 jackisback2008 » 2008-10-17 12:54

问题已经解决拉!!!

谢谢楼上各位哦!!!

问题:怎样才能删除掉旧的不用的内核?!

按照上面朋友的说法,我搜出来的内核都处于未安装状态阿?!

看附件!!
附件
Screenshot.png
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 我想调整一下GRUB启动菜单的启动顺序[半解决]

#13

帖子 adagio » 2008-10-17 17:36

照7楼说的做,不过记得

代码: 全选

title Ubuntu 8.04.1, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
这个留下(其实删掉也没啥)
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
daf3707
论坛版主
帖子: 12731
注册时间: 2007-06-13 15:57
来自: 在他乡

Re: 我想调整一下GRUB启动菜单的启动顺序[半解决]

#14

帖子 daf3707 » 2008-10-17 18:12

adagio 写了:照7楼说的做,不过记得

代码: 全选

title Ubuntu 8.04.1, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
quiet
这个留下(其实删掉也没啥)
我没留过,这有嘛用啊,兄弟,讲讲,也长点知识 :em03 ,反正我没用过,觉得留着碍眼。

还有楼上的楼上,你要往下继续拖动啊,下面还有很多内容呢
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 我想调整一下GRUB启动菜单的启动顺序[半解决]

#15

帖子 adagio » 2008-10-18 16:49

内存测试啊!
不过测试时间太长,我也一次没用过,而且不明白测试内存干啥?
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
回复