求助!硬盘安装Ubuntu9.04后开机没有windows启动项

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

求助!硬盘安装Ubuntu9.04后开机没有windows启动项

#1

帖子 fojo » 2009-07-29 10:13

小弟按照网上的方法硬盘安装了Ubuntu9.04,在livecd安装的第七步里高级选项选择引导的时候,我也不懂,就适用了默认的hd0,结果Ubuntu是安装好了,但是启动时windows不见了,选择项里3个都是Ubuntu,请问各位大大,该怎么修复
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 求助!硬盘安装Ubuntu9.04后开机没有windows启动项

#2

帖子 smallapple » 2009-07-29 10:19

代码: 全选

sudo gedit /boot/grub/menu.lst

在最后加上

代码: 全选

title Windows XP
root (hd0,0)
makeactive
chainloader +1
fojo
帖子: 17
注册时间: 2009-04-05 20:16

Re: 求助!硬盘安装Ubuntu9.04后开机没有windows启动项

#3

帖子 fojo » 2009-07-29 10:29

网上找了下类似的帖子,发现大多数都是有windows而没有Ubuntu,怎么修复Ubuntu的,就我独一份 :em06
谢谢二楼的大大,我等下开机修复看看
delectate
帖子: 18311
注册时间: 2008-01-09 22:41

Re: 求助!硬盘安装Ubuntu9.04后开机没有windows启动项

#4

帖子 delectate » 2009-07-29 10:32

fojo 写了:网上找了下类似的帖子,发现大多数都是有windows而没有Ubuntu,怎么修复Ubuntu的,就我独一份 :em06
谢谢二楼的大大,我等下开机修复看看

代码: 全选

root (hd0,0)
要视情况而定

有的时候是其他分区,不一定是第一个

可以先查看分区,然后再选择
fojo
帖子: 17
注册时间: 2009-04-05 20:16

Re: 求助!硬盘安装Ubuntu9.04后开机没有windows启动项

#5

帖子 fojo » 2009-07-29 15:48

delectate 写了:
fojo 写了:网上找了下类似的帖子,发现大多数都是有windows而没有Ubuntu,怎么修复Ubuntu的,就我独一份 :em06
谢谢二楼的大大,我等下开机修复看看

代码: 全选

root (hd0,0)
要视情况而定

有的时候是其他分区,不一定是第一个

可以先查看分区,然后再选择
我按2楼的做了,没用啊。如何查看分区,再选择?我是菜鸟,才刚接触Ubuntu。
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 求助!硬盘安装Ubuntu9.04后开机没有windows启动项

#6

帖子 smallapple » 2009-07-29 16:03

终端

代码: 全选

sudo fdisk -l
fojo
帖子: 17
注册时间: 2009-04-05 20:16

Re: 求助!硬盘安装Ubuntu9.04后开机没有windows启动项

#7

帖子 fojo » 2009-07-29 17:05

代码: 全选

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        4864    39070048+   c  W95 FAT32 (LBA)
/dev/sda2            4865       19457   117218272+   f  W95 Ext'd (LBA)
/dev/sda5            4865        9728    39070048+   7  HPFS/NTFS
/dev/sda6            9729       14592    39070048+   7  HPFS/NTFS
/dev/sda7           14593       16837    18032931   83  Linux
/dev/sda8           16838       16899      497983+  82  Linux swap / Solaris
/dev/sda9           16900       19457    20547103+  83  Linux
这是我输入

代码: 全选

sudo fdisk -l
后的信息,但是我看不懂,请问怎么做才能显示windows启动项
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 求助!硬盘安装Ubuntu9.04后开机没有windows启动项

#8

帖子 wangdu2002 » 2009-07-29 17:08

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Deepin62xp3
rootnoverify (hd0,0)
savedefault
chainloader +1
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 求助!硬盘安装Ubuntu9.04后开机没有windows启动项

#9

帖子 smallapple » 2009-07-29 17:09

root (hd0,0)没错啊
修改了menu.lst了吗?
menu.lst贴上来看看
fojo
帖子: 17
注册时间: 2009-04-05 20:16

Re: 求助!硬盘安装Ubuntu9.04后开机没有windows启动项

#10

帖子 fojo » 2009-07-29 17:26

代码: 全选

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

## 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=e7bf12bb-f85c-4a60-915b-f024435e6347 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=e7bf12bb-f85c-4a60-915b-f024435e6347

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

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## 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 9.04, kernel 2.6.28-14-generic
uuid		e7bf12bb-f85c-4a60-915b-f024435e6347
kernel		/boot/vmlinuz-2.6.28-14-generic root=UUID=e7bf12bb-f85c-4a60-915b-f024435e6347 ro quiet splash 
initrd		/boot/initrd.img-2.6.28-14-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-14-generic (recovery mode)
uuid		e7bf12bb-f85c-4a60-915b-f024435e6347
kernel		/boot/vmlinuz-2.6.28-14-generic root=UUID=e7bf12bb-f85c-4a60-915b-f024435e6347 ro  single
initrd		/boot/initrd.img-2.6.28-14-generic

title		Ubuntu 9.04, kernel 2.6.28-11-generic
uuid		e7bf12bb-f85c-4a60-915b-f024435e6347
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=e7bf12bb-f85c-4a60-915b-f024435e6347 ro quiet splash 
initrd		/boot/initrd.img-2.6.28-11-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid		e7bf12bb-f85c-4a60-915b-f024435e6347
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=e7bf12bb-f85c-4a60-915b-f024435e6347 ro  single
initrd		/boot/initrd.img-2.6.28-11-generic

title		Ubuntu 9.04, memtest86+
uuid		e7bf12bb-f85c-4a60-915b-f024435e6347
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST
title windows xp
root (hd0,0)
makeactive
chainloader +1
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 求助!硬盘安装Ubuntu9.04后开机没有windows启动项

#11

帖子 smallapple » 2009-07-29 17:33

现在是什么状况?
是选择Windows XP不能启动?
还是看不到菜单?
看不到菜单的话把第四段落的hiddenmenu前面加#注释掉。
不能启动的话提供报错信息。
fojo
帖子: 17
注册时间: 2009-04-05 20:16

Re: 求助!硬盘安装Ubuntu9.04后开机没有windows启动项

#12

帖子 fojo » 2009-07-29 17:34

看不到启动菜单,开机直接奔ubuntu去了
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 求助!硬盘安装Ubuntu9.04后开机没有windows启动项

#13

帖子 wangdu2002 » 2009-07-29 17:37

timeout 3
把3改成8,这样等待时间长了,就可以看到菜单了。 :em04
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 求助!硬盘安装Ubuntu9.04后开机没有windows启动项

#14

帖子 smallapple » 2009-07-29 17:37

前面没dd 的hiddenmenu在其前面加个#
fojo
帖子: 17
注册时间: 2009-04-05 20:16

Re: 求助!硬盘安装Ubuntu9.04后开机没有windows启动项

#15

帖子 fojo » 2009-07-29 17:55

多谢14楼的大大,已经可以了, :em11 能看到windows xp了。嘿嘿,我其实下决心不想太用windows了,但朋友要玩QQ游戏。我现在就是在windows下发的贴
还有,Ubuntu开关机老是会瞬见花屏是怎么回事,而且关机最后会白屏,上面有些红色的渲染出来的边,不知道怎么回事。我的是N卡9600m gs,驱动是根据系统自动下载的
回复