用live cd恢复 GRUB后无法引导windows xp(已解决,在二楼)

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

用live cd恢复 GRUB后无法引导windows xp(已解决,在二楼)

#1

帖子 wjs272 » 2007-10-22 14:51

我是用电脑公司的快装版装的xp(也就是ghost20分钟之后,qq、office、迅雷什么全有了),重装xp之后用live cd恢复GRUB的,现在能够引导进ubuntu,但是xp却进不去了
sudo grub
grub>find /boot/grub/stage1
(hd0,2)
grub> root (hd0,2)
grub> setup (hd0)

Checking if "/boot/grub/stage1" exists... yes

Checking if "/boot/grub/stage2" exists... yes

Checking if "/boot/grub/e2fs_stage1_5" exists... yes

Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.

succeeded

Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,7)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded

Done.

grub>quit
进xp之后,报错:Error 12: Invalid Device Requested
补充:手动启动xp也失败,主要是长久滞留再starting up这里然后不动了
grub> rootnoverify (hd0,0)
grub> chainloader +1
grub> boot
请高手给个关键字提示就行,我再gooogle搜索寻找答案 :)
头像
wjs272
帖子: 775
注册时间: 2007-04-17 13:32
来自: 上海理工大学
联系:

#2

帖子 wjs272 » 2007-10-22 16:11

sudo gedit /boot/grub/menu.lst
在menu.lst的xp启动项改为
title Windows xp
rootnoverify (hd0,1)
chainloader +1
这个问题出现的原因是:
grub无法准确侦测到xp到底安装在了哪个分区[我的xp本来是在(hd0,1),而grub误以为是(hd0,0)]
导致grub无法正确引导进xp,所以需要自己手动设置


同理,如果恢复了grub却无法引导进ubuntu,也是同样的原因造成的
附件
Screenshot-Screen Resolution Preferences.png
回复