放心的装,装好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------替换内核版本号
切忌,如果在安装系统时调整了系统分区上面的方法有可能不管不用,出事别赖我啊!