分页: 1 / 1

双系统[Grub: XP+Ubuntu]想重装Win7的问题

发表于 : 2010-01-13 13:51
justinavril
昨晚,不知道哪儿抽抽了,想把XP卸载掉装Win7.但是现在系统里是XP和Ubuntu双系统,Grub引导的。

如果我把7覆盖掉XP,是不是会影响Grub引导?有什么办法,让重装不影响Grub吗?

我搜到一些重装后修复grub的网页,做法是否可行?

谢谢 :em06

Re: 双系统[Grub: XP+Ubuntu]想重装Win7的问题

发表于 : 2010-01-13 15:25
justinavril
木人这样试过么?

我Ubuntu在一个单独分区里 XP在一个单独分区里 我想把7装到XP的分区里

Re: 双系统[Grub: XP+Ubuntu]想重装Win7的问题

发表于 : 2010-01-18 16:52
hlost
应该会冲掉

如果你是grub的启动器得重新安装到引导区,win7没见到支持分区引导的选项

如果是xp引导的话,到时候用bcdedit.exe配置启动项

Re: 双系统[Grub: XP+Ubuntu]想重装Win7的问题

发表于 : 2010-01-18 17:52
sirniu
放心的装,装好windows7之后在windows7下用grub4dos建立个linux的引导就行,我想你不会在意引导在那个系统下吧。但是装之前你也要做些功课:
备份你的grub.cfg或者menu.lst,还有你的boot所在的分区的序列号(类似sda12)。安装windows7之后这样恢复分区:
1.下载grub4dos,注意:要最新版的。
2.解压grub4dos,把grldr.mbr,grldr与menu.lst复制到C盘根目录下,以管理员模式打开命令提示符并输入以下命令:
bcdedit /create /d "GRUB4DOS" /application bootsector
输入命令后,会出来UID,复制它,替换字符串
bcdedit /set 字符串 device partition=C:
bcdedit /set 字符串 path \grldr.mbr
bcdedit /displayorder 字符串 /addlast
三个都运行完毕重启就可以在启动菜单显示grub4ods了
3.按照你的系统的情况编辑menu.lst(也放在c盘根目录下)
下面我的menu.lst,你只要根据自己的情况替换部分代码就行:
# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.


timeout 30
default /default

title Ubuntu9.10
root (hd0,7)
kernel /boot/vmlinuz-2.6.31-17-generic root=/dev/sda8 ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
boot

title Ubuntu9.10
root (hd0,7)
kernel /boot/vmlinuz-2.6.31-16-generic root=/dev/sda8 ro quiet splash
initrd /boot/initrd.img-2.6.31-16-generic
boot


title Windows7
rootnoverify (hd0,0)
chainloader +1
boot
你要替换的有:
root (hd0,7)------------如果boot所在分区为sda12,则将7换为11,也就是12-1。
/boot/vmlinuz-2.6.31-16-generic root=/dev/sda8 ro quiet splash---------打开你备份好的menu.lst或grub.cfg,将系统内核版本和sda8替换就行
/boot/initrd.img-2.6.31-16-generic------替换内核版本号

切忌,如果在安装系统时调整了系统分区上面的方法有可能不管不用,出事别赖我啊!

Re: 双系统[Grub: XP+Ubuntu]想重装Win7的问题

发表于 : 2010-01-22 16:36
iamverycools
我没有menu.lst
这个是不是需要自己创建

Re: 双系统[Grub: XP+Ubuntu]想重装Win7的问题

发表于 : 2012-02-18 8:23
sakila14th
marked :em03

Re: 双系统[Grub: XP+Ubuntu]想重装Win7的问题

发表于 : 2012-02-18 11:28
tusheng
如果楼主是装ghost-win7,

有可能的话,什么影响都没有