XP在ubuntu安装后无法进入,怎么解决?
-
- 帖子: 6
- 注册时间: 2008-12-06 16:34
XP在ubuntu安装后无法进入,怎么解决?
我的电脑共4个区,之前是双系统,分别安装在C,D盘,在装unbuntu时,从C盘分出一1G空间作为swap,剩下的安装unbuntu。安装完后,ubuntu正常启动。但不知为什么进入不了XP系统呢?希望高人指点!
我的menu.lst文件如下:我改过的,不行!
title Ubuntu 8.04.1, kernel 2.6.24-22-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro quiet splash
initrd /boot/initrd.img-2.6.24-22-generic
quiet
title microsoft windows xp professional
rootnoverify (hd0,7)
makeactive
chainloader +1
title Ubuntu 8.04.1, kernel 2.6.24-22-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro single
initrd /boot/initrd.img-2.6.24-22-generic
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro quiet splash
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,7)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,7)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
我的menu.lst文件如下:我改过的,不行!
title Ubuntu 8.04.1, kernel 2.6.24-22-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro quiet splash
initrd /boot/initrd.img-2.6.24-22-generic
quiet
title microsoft windows xp professional
rootnoverify (hd0,7)
makeactive
chainloader +1
title Ubuntu 8.04.1, kernel 2.6.24-22-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro single
initrd /boot/initrd.img-2.6.24-22-generic
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro quiet splash
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,7)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,7)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
-
- 帖子: 6
- 注册时间: 2008-12-06 16:34
Re: XP在ubuntu安装后无法进入,怎么解决?
PLUS:不管怎么的,给个解决方案,原则是尽量不要重装xp。
-
- 帖子: 86
- 注册时间: 2008-06-09 17:19
Re: XP在ubuntu安装后无法进入,怎么解决?
root (hd0,7)
说明你不只4个区
你可以在ubuntu下面找一下你xp所在的分区,然后更改rootnoverify (hd0,X)为匹配的区。
如果你是正常安装的ubuntu,不会和你xp同在(hd0,7)这个地方。
说明你不只4个区
你可以在ubuntu下面找一下你xp所在的分区,然后更改rootnoverify (hd0,X)为匹配的区。
如果你是正常安装的ubuntu,不会和你xp同在(hd0,7)这个地方。
-
- 帖子: 6
- 注册时间: 2008-12-06 16:34
Re: XP在ubuntu安装后无法进入,怎么解决?
我尽量详细描述一下:
我的电脑之前共4个区(C,D,E.F),是双系统,分别安装在C(fat32),D(ntfs)盘,在装unbuntu时,从C盘分出一1G空间作为swap,剩下的安装unbuntu。安装完后,ubuntu正常启动。但不知为什么进入不了XP系统呢?希望高人指点!
这是我的磁盘分区情况
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/sda2 * 1 19457 156288321 f W95 Ext'd (LBA)
/dev/sda5 2551 6630 32772568+ 7 HPFS/NTFS
/dev/sda6 6631 13005 51207156 b W95 FAT32
/dev/sda7 13006 19457 51825658+ b W95 FAT32
/dev/sda8 1 2432 19534945+ 83 Linux
/dev/sda9 2433 2550 947803+ 82 Linux swap / Solaris
这个是我现在改过的boot.ini,由partition(2)改为partition(1),保存在xp系统的文件windows下(不知地方保存对不
[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
这是我的menu.lst [root (hd0,x)都试过,不中.]
title Ubuntu 8.04.1, kernel 2.6.24-22-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro quiet splash
initrd /boot/initrd.img-2.6.24-22-generic
quiet
title microsoft windows xp professional
root (hd0,4)
makeactive
chainloader +1
title Ubuntu 8.04.1, kernel 2.6.24-22-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro single
initrd /boot/initrd.img-2.6.24-22-generic
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro quiet splash
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,7)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,7)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
我的电脑之前共4个区(C,D,E.F),是双系统,分别安装在C(fat32),D(ntfs)盘,在装unbuntu时,从C盘分出一1G空间作为swap,剩下的安装unbuntu。安装完后,ubuntu正常启动。但不知为什么进入不了XP系统呢?希望高人指点!
这是我的磁盘分区情况
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/sda2 * 1 19457 156288321 f W95 Ext'd (LBA)
/dev/sda5 2551 6630 32772568+ 7 HPFS/NTFS
/dev/sda6 6631 13005 51207156 b W95 FAT32
/dev/sda7 13006 19457 51825658+ b W95 FAT32
/dev/sda8 1 2432 19534945+ 83 Linux
/dev/sda9 2433 2550 947803+ 82 Linux swap / Solaris
这个是我现在改过的boot.ini,由partition(2)改为partition(1),保存在xp系统的文件windows下(不知地方保存对不
[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
这是我的menu.lst [root (hd0,x)都试过,不中.]
title Ubuntu 8.04.1, kernel 2.6.24-22-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro quiet splash
initrd /boot/initrd.img-2.6.24-22-generic
quiet
title microsoft windows xp professional
root (hd0,4)
makeactive
chainloader +1
title Ubuntu 8.04.1, kernel 2.6.24-22-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro single
initrd /boot/initrd.img-2.6.24-22-generic
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro quiet splash
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,7)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=bb1391a3-6e6b-4420-876f-0427ec039424 ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,7)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
- ptptptptptpt
- 帖子: 3711
- 注册时间: 2006-09-19 18:16
Re: XP在ubuntu安装后无法进入,怎么解决?
乱了,sda2 和 sda8 交叉
而且你把c盘干掉了,这个有点难办,因为,尽管xp装在d盘,但它的引导文件是在c盘的
你得重新建一个c盘(必须是第一个主分区,即sda1),拷回引导文件,设好boot.ini,才行
参考这里 viewtopic.php?f=139&t=155696
而且你把c盘干掉了,这个有点难办,因为,尽管xp装在d盘,但它的引导文件是在c盘的
你得重新建一个c盘(必须是第一个主分区,即sda1),拷回引导文件,设好boot.ini,才行
参考这里 viewtopic.php?f=139&t=155696
-
- 帖子: 49
- 注册时间: 2008-12-03 10:05
Re: XP在ubuntu安装后无法进入,怎么解决?
把XP的启动项目改为以下语句即可
title Windows XP Menu : Find and load NTLDR of Windows NT/2K/XP
find --set-root /ntldr
makeactive
chainloader /ntldr
title Windows XP Menu : Find and load NTLDR of Windows NT/2K/XP
find --set-root /ntldr
makeactive
chainloader /ntldr
-
- 帖子: 3681
- 注册时间: 2008-05-03 23:42
Re: XP在ubuntu安装后无法进入,怎么解决?
楼上同学,他的硬盘里已经没有 ntldr 了。而且你的写法只能用 grub4dos。
又一个把 c 盘干掉还想启动 windows 的朋友 ...
基本上,如果你安装完 ubuntu 发现 grub 启动菜单里没有 windows 的启动项,就说明 windows 已然完蛋了,不要幻想通过修改 menu.lst 把 windows 启动起来。
现在你要么把分区恢复到原来的状态,要么备份重要的文件,全部重装。
装 ubuntu 注意:不要打第一主分区的主意,除非你不想要 windows 了。
又一个把 c 盘干掉还想启动 windows 的朋友 ...
基本上,如果你安装完 ubuntu 发现 grub 启动菜单里没有 windows 的启动项,就说明 windows 已然完蛋了,不要幻想通过修改 menu.lst 把 windows 启动起来。
现在你要么把分区恢复到原来的状态,要么备份重要的文件,全部重装。
装 ubuntu 注意:不要打第一主分区的主意,除非你不想要 windows 了。
-
- 帖子: 6
- 注册时间: 2008-12-06 16:34
Re: XP在ubuntu安装后无法进入,怎么解决?
5楼的操作性挺难。
6楼的方案是不行,照搬到menu.lst,结果提示file not found。
看来只能按billbear的做了 要么把分区恢复到原来的状态,要么备份重要的文件,全部重装。
但我不明白 要么把分区恢复到原来的状态 的意思,恢复了,xp能进入吗?
6楼的方案是不行,照搬到menu.lst,结果提示file not found。
看来只能按billbear的做了 要么把分区恢复到原来的状态,要么备份重要的文件,全部重装。
但我不明白 要么把分区恢复到原来的状态 的意思,恢复了,xp能进入吗?
-
- 帖子: 49
- 注册时间: 2008-12-03 10:05
Re: XP在ubuntu安装后无法进入,怎么解决?
楼主的windows只是没有启动扇区,也没有引导文件而已,不是整个windows安装分区被格掉
拿个U盘启动,U盘根目录和D:盘根目录有ntldr, ntdect.com,就可以通过grub for dos进去windows了
现在最简单的解决方法其实是把Ubuntu干掉, C:盘格式化为FAT32,windows安装光盘恢复
然后在D:盘划分一个E:盘,再把Ubuntu装到E:
Ubuntu的安装实在是太霸道,连提示都没有带给用户很多麻烦。
拿个U盘启动,U盘根目录和D:盘根目录有ntldr, ntdect.com,就可以通过grub for dos进去windows了
现在最简单的解决方法其实是把Ubuntu干掉, C:盘格式化为FAT32,windows安装光盘恢复
然后在D:盘划分一个E:盘,再把Ubuntu装到E:
Ubuntu的安装实在是太霸道,连提示都没有带给用户很多麻烦。
- ptptptptptpt
- 帖子: 3711
- 注册时间: 2006-09-19 18:16
Re: XP在ubuntu安装后无法进入,怎么解决?
D盘怎么会有 ntldr 呢??你再仔细看看一楼。不是C盘变成了D盘,而是 C盘被完全干掉了。ntldr 原本都在C盘的。
试问,Ubuntu 应该怎么提示呢??
windows 覆盖掉 grub 的 mbr 时提示了??ubuntu 至少还会有个 高级 选项来调整 grub 的安装位置。
试问,Ubuntu 应该怎么提示呢??
windows 覆盖掉 grub 的 mbr 时提示了??ubuntu 至少还会有个 高级 选项来调整 grub 的安装位置。
-
- 帖子: 6
- 注册时间: 2008-12-06 16:34
Re: XP在ubuntu安装后无法进入,怎么解决?
实时关注,期待各位的消息!
重恩不言谢!
重恩不言谢!
-
- 帖子: 3681
- 注册时间: 2008-05-03 23:42
Re: XP在ubuntu安装后无法进入,怎么解决?
细说起来基本上包含这样几个步骤jorly 写了:
但我不明白 要么把分区恢复到原来的状态 的意思,恢复了,xp能进入吗?
用 winPE 光盘启动;
删除 sda8,sda9(位于磁盘开头,原 c 盘位置);
将扩展分区 sda2 进行调整,使他起始于 sda5 (2551 处);
在磁盘前端空出来的位置重建第一主分区(c盘);
到别人那里拷贝 ntldr NTDETECT.COM bootfont.bin 到 c 盘根目录,并重建 boot.ini 在 c 盘根目录,大致如下:
将第一主分区(c 盘)激活;[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
修复 mbr: xp 安装盘进入恢复控制台,运行 fixmbr,或者在 pe 里用磁盘工具;
修复 c 盘引导扇区:xp 安装盘进入恢复控制台,运行 fixboot,或者在 pe 里用磁盘工具。
做完以后 c 盘基本是空的,除了几个致命的启动文件,以后你可以把 c 盘作为你的存储空间,比如让它扮演你现在的 f 盘的角色。安装 ubuntu 可以打 f 盘的主意,但是不要再打 c 盘的主意了。