[问题] 急 ,ubuntu升级更新后,无法进入xp

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

[问题] 急 ,ubuntu升级更新后,无法进入xp

#1

帖子 nzliqi07 » 2007-06-02 18:44

今天ubuntu提示有更新,从2.6.20-15-generic升级2.6.20-16-generic,更新完系统重启后,发现启动菜单里的xp没了 ,取而代之的是多了一个 ubuntu 2.6.20-16-generic的启动选项,原来的2.6.20-15-generide的也还在,唯独xp不见了,请问怎么办 ,ubuntu怎么那么恶心的,2.6.20-16-generic怎么不覆盖原来的2.6.20-15,反而多出一项。

下面是我的menu.lst,请问要如何改才能进xp,谢谢了。

# 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 change this entry to 'saved' 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=05c7c7b0-ba25-4270-8d36-d5d9ad744115 ro

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

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

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

## ## End Default Options ##

# 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

title Ubuntu, kernel 2.6.20-16-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=05c7c7b0-ba25-4270-8d36-d5d9ad744115 ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=05c7c7b0-ba25-4270-8d36-d5d9ad744115 ro single
initrd /boot/initrd.img-2.6.20-16-generic

title Ubuntu, kernel 2.6.20-15-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=05c7c7b0-ba25-4270-8d36-d5d9ad744115 ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=05c7c7b0-ba25-4270-8d36-d5d9ad744115 ro single
initrd /boot/initrd.img-2.6.20-15-generic

title Ubuntu, memtest86+
root (hd0,6)
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


头像
zmcbb30
帖子: 2717
注册时间: 2006-09-30 0:32
来自: 巴拉特星系第四行星──海尼森

#2

帖子 zmcbb30 » 2007-06-02 19:18

加上这个

title Microsoft Windows Operating System
root (hd0,0)
savedefault
makeactive
chainloader +1
头可断,血可流,靓女不可不追求
相艾唔好口,够姜就只抽

BARTON 2500+/1536MDDR400
EP8RDA3G/MX4000 128M64bit 8X
DiamondPlus9-6Y080L0-ATA133
Samsung743DF
HiweedDesktop-1.0
nzliqi07
帖子: 68
注册时间: 2007-03-06 16:30

#3

帖子 nzliqi07 » 2007-06-02 19:23

zmcbb30 写了:加上这个

title Microsoft Windows Operating System
root (hd0,0)
savedefault
makeactive
chainloader +1

能告诉加在上面的哪里,谢谢
头像
tommy007
帖子: 1352
注册时间: 2007-02-18 0:42

#4

帖子 tommy007 » 2007-06-02 19:25

最后跟一下就好了
头像
zmcbb30
帖子: 2717
注册时间: 2006-09-30 0:32
来自: 巴拉特星系第四行星──海尼森

#5

帖子 zmcbb30 » 2007-06-02 19:26

随便

去掉原来的最后两行
头可断,血可流,靓女不可不追求
相艾唔好口,够姜就只抽

BARTON 2500+/1536MDDR400
EP8RDA3G/MX4000 128M64bit 8X
DiamondPlus9-6Y080L0-ATA133
Samsung743DF
HiweedDesktop-1.0
nzliqi07
帖子: 68
注册时间: 2007-03-06 16:30

#6

帖子 nzliqi07 » 2007-06-02 20:52

zmcbb30 写了:随便

去掉原来的最后两行

谢谢,如何把xp放到第一个默认启动。

还有就是如果下次升级到2.6.20-17-generic,是不是还会出现类似情况,以后启动选项不是一大堆了。搞的我现在不敢更新了。
viquu
帖子: 90
注册时间: 2007-04-14 12:11

#7

帖子 viquu » 2007-06-02 22:18

你把你不要的那几行删掉不就看不到了
头像
goldfox_79
帖子: 2004
注册时间: 2005-10-16 8:26
来自: 地球

#8

帖子 goldfox_79 » 2007-06-02 23:14

系统升级内核后不会把旧的内核删掉以免意外发生,你可以手动删除旧的内核或者修改grub的menu文件把旧内核的选项删除。
MSheep
帖子: 5
注册时间: 2006-10-29 22:14

#9

帖子 MSheep » 2007-06-03 0:27

我的都是递增的
LZ是不是有RPWT吖呵呵

至于把XP设为默认项改一下/boot/grub/menu.lst里面的default项就可以了
从0开始数,不是从1哦!

另:重装WindowsWin会直接把mbr写了让Ubuntu进不去,为何不说他恶心? 最起码人Ubuntu还给你选择的余地,下次说话麻烦您老人家过脑子一点!
nzliqi07
帖子: 68
注册时间: 2007-03-06 16:30

#10

帖子 nzliqi07 » 2007-06-03 6:06

MSheep 写了:我的都是递增的
LZ是不是有RPWT吖呵呵

至于把XP设为默认项改一下/boot/grub/menu.lst里面的default项就可以了
从0开始数,不是从1哦!

另:重装WindowsWin会直接把mbr写了让Ubuntu进不去,为何不说他恶心? 最起码人Ubuntu还给你选择的余地,下次说话麻烦您老人家过脑子一点!

呵呵,不会了,不会了。
回复