[问题]修改启动项

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
xjjy
帖子: 8
注册时间: 2008-04-07 13:22

[问题]修改启动项

#1

帖子 xjjy » 2008-04-13 15:25

我在ubuntu8.04下修改启动顺序,但没有效果,我一共装了3个系统,分别是 :“Windows Xp Windows Vista Ubuntu 8.04” 启动后出现5个启动项,分别是:

1。Ubuntu hardy (development branch), kernel 2.6.24-15-generic

2。Ubuntu hardy (development branch), kernel 2.6.24-15-generic (recovery mode)

3。Ubuntu hardy (development branch), memtest86+

4。Other operating systems

5。Windows Vista/Longhorn (loader)

然后我找到了 default 0,将0改成你其他系统的位置,位于第X项,就是修改成 X-1(从0开始数)。

我将其修改成


# 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 5

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

## 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=eb4fdc35-7510-4851-bc00-3eebca84446d ro

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

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

## 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

## 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 hardy (development branch), kernel 2.6.24-15-generic
root (hd0,9)
kernel /boot/vmlinuz-2.6.24-15-generic root=UUID=eb4fdc35-7510-4851-bc00-3eebca84446d ro quiet splash
initrd /boot/initrd.img-2.6.24-15-generic
quiet

title Ubuntu hardy (development branch), kernel 2.6.24-15-generic (recovery mode)
root (hd0,9)
kernel /boot/vmlinuz-2.6.24-15-generic root=UUID=eb4fdc35-7510-4851-bc00-3eebca84446d ro single
initrd /boot/initrd.img-2.6.24-15-generic

title Ubuntu hardy (development branch), memtest86+
root (hd0,9)
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/sda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1


但是启动的时候默认的还是第一项。

不知道那里出了问题。

还有一个问题就是:
我选择:“Other operating systems”后会出错,出错的内容为:
“Error 11 Unrecognized device string”
"Press any key to continue"

以上的问题对其他系统没有产生什么副作用,其他的系统都能正常使用。

希望高手做解。在线等待。。。 。。。
上次由 xjjy 在 2008-04-13 16:17,总共编辑 1 次。
xjjy
帖子: 8
注册时间: 2008-04-07 13:22

#2

帖子 xjjy » 2008-04-13 15:26

顺便在问下,能不能删除启动时候的这项:“Other operating systems”
xjjy
帖子: 8
注册时间: 2008-04-07 13:22

#3

帖子 xjjy » 2008-04-13 16:20

第一个问题已经解决,我没有从0开始算,呵呵。

高手解决回答下第2个问题。

能不能删除启动时候的这项:“Other operating systems”
dbzhang800
帖子: 3182
注册时间: 2006-03-10 15:10
来自: xi'an China
联系:

#4

帖子 dbzhang800 » 2008-04-13 17:25

头像
xiooli
帖子: 6956
注册时间: 2007-11-19 21:51
来自: 成都
联系:

#5

帖子 xiooli » 2008-04-13 17:29

只有ubuntu的飘过~~~~~~~~~~~~~~
1234qw
帖子: 389
注册时间: 2007-12-31 11:40

#6

帖子 1234qw » 2008-04-13 17:36

1。Ubuntu hardy (development branch), kernel 2.6.24-15-generic 0

2。Ubuntu hardy (development branch), kernel 2.6.24-15-generic (recovery mode) 1

3。Ubuntu hardy (development branch), memtest86+ 2


5。Windows Vista/Longhorn (loader) 3
头像
ebok
帖子: 852
注册时间: 2008-02-15 0:09

#7

帖子 ebok » 2008-04-13 18:17

一看就是没好好看WIKI,然后default也改错了
不想要other system的话那两行前加注释或直接删掉
Somebody think they are full of niubility, so they play a zhuangbility, but only reflect their shability.
头像
carbont
帖子: 3406
注册时间: 2007-11-22 10:20
来自: 北京

#8

帖子 carbont » 2008-04-13 18:23

xiooli 写了:只有ubuntu的飘过~~~~~~~~~~~~~~
lenovo Thinkpad R60i 0657 LHC
windowsXP……准备换回ubuntu了。

Twitter: @carbont
回复