装多系统出了问题!寻求帮助!

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

装多系统出了问题!寻求帮助!

#1

帖子 zhutoufly » 2010-10-28 18:46

我先是win7,又装了ubuntu10.04,一切很好.
现在又在F盘装了xp,重装了grub2,在引导界面有ubuntu和win7,但是选择win7选项,进入的是xp.(疑惑).
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set d2b645beb645a437
chainloader +1
}
我有增加了一条:
menuentry "Windows xp (loader) (on /dev/sda1)" {
insmod ntfs
set root='(hd0,7)'
search --no-floppy --fs-uuid --set d2b645beb645a437
chainloader +1
}

不管选win7还是xp的选项,进的都是xp
zhutoufly
帖子: 120
注册时间: 2009-03-22 17:00

Re: 装多系统出了问题!寻求帮助!

#2

帖子 zhutoufly » 2010-10-28 18:47

还有:以后如果我想删掉xp,该怎么做?
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: 装多系统出了问题!寻求帮助!

#3

帖子 onshoestring » 2010-10-28 19:18

1.在c盘根目录放一个grub4dos文件grub.exe。
2.再放一个menu.lst文件,内容如下。
title Windows xp
find --set-root /ntldr
chainloader /ntldr

title Windows 7
find --set-root /bootmgr
chainloader /bootmgr
3./etc/grub.d/40_custom中加上下面这段菜单
menuentry "Grub for Dos" {
search --set -f /grub.exe
linux /grub.exe
}
4.

代码: 全选

chmod -x /etc/grub.d/30_os-prober
sudo update-grub
上次由 onshoestring 在 2010-10-28 19:28,总共编辑 1 次。
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: 装多系统出了问题!寻求帮助!

#4

帖子 onshoestring » 2010-10-28 19:23

1.删除xp,先修复pbr。
插入windows7安装光盘,从光盘启动,在光盘启动完成后,按下shift+f10键,调出cmd命令提示符。在命令提示符中输入:bootrec /fixboot回车。
2./etc/grub.d/40_custom中删除这段菜单
menuentry "Grub for Dos" {
search --set -f /grub.exe
linux /grub.exe
}
3.

代码: 全选

chmod +x /etc/grub.d/30_os-prober
sudo update-grub
回复