Ubuntu8.04和XP双系统,Windows不能进入?????

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
3959512
帖子: 64
注册时间: 2008-08-21 12:25
来自: 上海
联系:

Ubuntu8.04和XP双系统,Windows不能进入?????

#1

帖子 3959512 » 2008-12-10 18:09

这是我的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=48a1d072-55ea-45da-9012-75ea011f1a59 ro

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

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

## 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-22-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=48a1d072-55ea-45da-9012-75ea011f1a59 ro quiet splash locale=zh_CN
initrd /boot/initrd.img-2.6.24-22-generic
quiet

title Ubuntu 8.04.1, kernel 2.6.24-22-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=48a1d072-55ea-45da-9012-75ea011f1a59 ro single
initrd /boot/initrd.img-2.6.24-22-generic

title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=48a1d072-55ea-45da-9012-75ea011f1a59 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,1)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=48a1d072-55ea-45da-9012-75ea011f1a59 ro single
initrd /boot/initrd.img-2.6.24-19-generic

title Ubuntu 8.04.1, memtest86+
root (hd0,1)
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 Microsoft Windows XP Professional
root (hd0,3)
savedefault
makeactive
chainloader +1
find --set-root /ntldr
makeactive


问题:
我先安装了windows系统,再安装了ubuntu8.04系统,后来不知道是不是因为我在进入Ubuntu系统后删除了什么文件。导致现在,启动引导选项中有windows系统引导选项,但是选择按Enter后,变成电脑重启了,又回到引导界面,反正是进入不了Windows系统。

有些教学软件只能在Windows系统中才能用阿!现在很急!又真的不想再重装重整,太费时。

恳请哪位高人指点!万分感谢了!
附件
同时也不能加载安装Windows系统的盘,出现的提示
同时也不能加载安装Windows系统的盘,出现的提示
上次由 3959512 在 2008-12-11 22:09,总共编辑 1 次。
yyy30876
帖子: 4
注册时间: 2008-09-26 23:35

Re: Ubuntu8.04和XP双系统,Windows不能进入?????

#2

帖子 yyy30876 » 2008-12-10 18:14

把我的这句话放进
c:\boot.ini (系统文件默认是只读和隐藏的请先取消隐藏和只读来修改)

[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect /usepmtimer
c:\Arldr="DOS工具箱
头像
drc1234
帖子: 632
注册时间: 2008-08-31 10:09

Re: Ubuntu8.04和XP双系统,Windows不能进入?????

#3

帖子 drc1234 » 2008-12-10 19:33

Windows XP Professional你装在哪个盘上?下面显示XP在第4个主分区上
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda4
title Microsoft Windows XP Professional
root (hd0,3)

如果不是,就查一下XP在哪个盘上,用显UUID的那个命令
如果在第一个主分区,就改SDA4为sda1 root (hd0,0)
3959512
帖子: 64
注册时间: 2008-08-21 12:25
来自: 上海
联系:

Re: Ubuntu8.04和XP双系统,Windows不能进入?????

#4

帖子 3959512 » 2008-12-11 22:10

2楼和3楼的朋友 首先谢谢你们能关心留言

2楼 yyy30876 :抱歉,我不是很明白,太菜了,咱,对这些系统命令不是很了解,Ubuntu系统中找不到c:\boot.ini 文件,windows系统进不了

3楼 drc1234 :我的Windows系统的确是装在第4个主分区上的,同时还有一个情况,就是我在Ubuntu系统中也不能打开安装Windows的盘出现如上图(原文)示的提示(后来加上的)


怎么办???
aoskas
帖子: 249
注册时间: 2007-11-06 13:56

Re: Ubuntu8.04和XP双系统,Windows不能进入?????

#5

帖子 aoskas » 2008-12-13 1:38

试试这个。把你的XP哪几句改成这个。

title Microsoft Windows xp (h0,3)

root(hd0,3)
chainloader /ntldr
aoskas
帖子: 249
注册时间: 2007-11-06 13:56

Re: Ubuntu8.04和XP双系统,Windows不能进入?????

#6

帖子 aoskas » 2008-12-13 1:41

你图上的问题。不能挂载。是因为你的XP的盘。NTFS的。没有正常退出XP产生的。进一下XP。正常退出就能挂载了!
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: Ubuntu8.04和XP双系统,Windows不能进入?????

#7

帖子 billbear » 2008-12-13 15:50

请给出 sudo fdisk -l
的信息
3959512
帖子: 64
注册时间: 2008-08-21 12:25
来自: 上海
联系:

Re: Ubuntu8.04和XP双系统,Windows不能进入?????

#8

帖子 3959512 » 2008-12-13 21:01

6 楼 aoskas 就是XP系统进入不了

7楼 billbear 谢谢,麻烦你,以下就是你说的:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x624aa2e0

Device Boot Start End Blocks Id System
/dev/sda1 1 109 875511 82 Linux swap / Solaris
/dev/sda2 * 110 3270 25390732+ 83 Linux
/dev/sda3 3271 11799 68509192+ f W95 Ext'd (LBA)
/dev/sda4 11800 19457 61512853+ b W95 FAT32
/dev/sda5 3271 8617 42949714+ 83 Linux
/dev/sda6 8618 11799 25559383+ 7 HPFS/NTFS

Disk /dev/sdb: 1998 MB, 1998519808 bytes
243 heads, 32 sectors/track, 501 cylinders
Units = cylinders of 7776 * 512 = 3981312 bytes
Disk identifier: 0x00542ba8

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 502 1951663+ b W95 FAT32
Partition 1 has different physical/logical endings:
phys=(502, 242, 32) logical=(501, 236, 31)
3959512
帖子: 64
注册时间: 2008-08-21 12:25
来自: 上海
联系:

Re: Ubuntu8.04和XP双系统,Windows不能进入?????

#9

帖子 3959512 » 2008-12-13 21:07

等待各位朋友高手的指点。这个问题好想能够解决
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: Ubuntu8.04和XP双系统,Windows不能进入?????

#10

帖子 billbear » 2008-12-13 23:54

改成这样试试

title Microsoft Windows XP Professional
root (hd0,3)
chainloader +1
aoskas
帖子: 249
注册时间: 2007-11-06 13:56

Re: Ubuntu8.04和XP双系统,Windows不能进入?????

#11

帖子 aoskas » 2008-12-14 0:06

看了一下你的分区结构。

改你的MENT。LST
注掉你的。为下边。
#title Microsoft Windows XP Professional
#root (hd0,3)
#savedefault
#makeactive
#chainloader +1
#find --set-root /ntldr
#makeactive
加下边进去。但是。你的XP不是装在主分区的。能否启动就是一个问题了。试一下加入下边的。

title Microsoft Windows xp (h0,4)
root(hd0,4)
chainloader /ntldr

grub对分区是从0算起的第一个主分区为0。第二个为1。。扩展分区是从3算起的。不论前边你分了几个主分区。扩展分区下的第一个盘。为。4。第二个为5。以下类推!
aoskas
帖子: 249
注册时间: 2007-11-06 13:56

Re: Ubuntu8.04和XP双系统,Windows不能进入?????

#12

帖子 aoskas » 2008-12-14 0:14

10楼。
root (hd0,3)
chainloader +1

这两句的本质就是。用的你第四分区。并且是活动分区的自身引导来启动系统!
但是。你的第四分区是扩展分区。。。
这个法是一定不可行的。第一。你装的不是主分区。第二。你不可能把扩展分区中的盘设为活动吧!
用我上边的法也只能试一下。主要是WINDOWS是不是一定在装在主分区。我没有试过把WINDOWS装在扩展分区。装在主分区中我的这几条都是试过好用的。不论这个分区是不是设为活动。我们直接启动ntldr 实质上。XP。2003启动都是引导的这个文件!
3959512
帖子: 64
注册时间: 2008-08-21 12:25
来自: 上海
联系:

Re: Ubuntu8.04和XP双系统,Windows不能进入?????

#13

帖子 3959512 » 2008-12-14 17:07

谢谢以上的朋友的关注,指点

可,以上方法还是不行,不过通过以上的尝试倒是知道了一些其他的小知识。

现在没办法拉,需要在XP系统下使用一些教学软件,不得不再装一个Xp系统,但是我以前也弄过,在Ubuntu系统中装XP,最后又是Ubuntu系统进入不来,连引导都没有直接进入XP。

现在用的是Ubuntu系统,要再装个XP,双系统,还请各位帮忙该怎么操作,才能组成完美的双系统组合?

谢谢了,我用的XP盘是番茄06SP2,完全安装盘,不是Ghost的。
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: Ubuntu8.04和XP双系统,Windows不能进入?????

#14

帖子 billbear » 2008-12-14 20:27

11 楼的朋友,
title Microsoft Windows xp (h0,4)
root(hd0,4)
chainloader /ntldr
首先,只有 grub4dos 才能使用 chainloader /ntldr。 楼主应该是使用 ubuntu 自己安装的 grub 的。第二, (hd0,4) 是 sda5, linux 分区。

12 楼,
你的第四分区是扩展分区。。。
?!
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: Ubuntu8.04和XP双系统,Windows不能进入?????

#15

帖子 billbear » 2008-12-14 20:49

你能不能尽量详细回忆一下整个过程。
但是选择按Enter后,变成电脑重启了
是立刻重启,还是开始引导 windows 时重启,屏幕有其它信息吗

你挂载一下你的 sda6 到 /mnt
sudo mount /dev/sda6 /mnt -o force
然后
ls /mnt
看一下,如果 ntldr, boot.ini 等等是在 sda6,基本就完蛋了。
再看一下你的 fat 分区, sda4,它应该是你的 c 盘才对。 ntldr,boot.ini 这些启动文件应该是在 sda4 的。
回复