LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1042|回复: 4

双系统下WINDOWS重装后怎样进LIUNX?

[复制链接]
发表于 2006-12-9 16:47:08 | 显示全部楼层 |阅读模式
如题!重装WINDOWS后,应该怎样进行设置?小弟谢谢了!
发表于 2006-12-9 17:27:39 | 显示全部楼层
下个GRUB FOR WIN,然后用命令就好了.我的是.你的你自己找...范本看下面的.
title centosnew on (hd0,8)

root (hd0,7)

kernel /boot/vmlinuz-2.6.9-42.0.3.EL ro root=LABEL=/1 rhgb quiet acpi=ht apm=power-off

initrd /boot/initrd-2.6.9-42.0.3.EL.img



title centos on (hd0,7)

root (hd0,7)

kernel        /boot/vmlinuz-2.6.9-42.EL ro root=LABEL=/1 rhgb quiet acpi=ht apm=power-off

initrd        /boot/initrd-2.6.9-42.EL.img



title install centos

root (hd0,6)

kernel (hd0,6)/centos/vmlinuz

initrd (hd0,6)/centos/initrd.img



title install fc6

root (hd0,6)

kernel (hd0,6)/fc6/vmlinuz

initrd (hd0,6)/fc6/initrd.img



title Fedora Core (2.6.18-1.2849.fc6)

root (hd0,8)       

kernel        /boot/vmlinuz-2.6.18-1.2849.fc6 ro root=LABEL=/ rhgb quiet

initrd        /boot/initrd-2.6.18-1.2849.fc6.img



title Fedora Core (2.6.18-1.2798.fc6)

root (hd0,8)

kernel        /boot/vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/ rhgb quiet

initrd        /boot/initrd-2.6.18-1.2798.fc6.img



title Other

rootnoverify (hd0,0)

chainloader +1
回复 支持 反对

使用道具 举报

发表于 2006-12-9 19:17:18 | 显示全部楼层
用安装光盘1启动,(按F5)或输入linux rescue
到出现#命令提示符时,输入chroot /mnt/sysimage
然后再输入grub-install /dev/hda(也可能hdb,hdc,sda,sdb……)
整个过程都有提示。
几年前的问题,下次有问题时先上网搜索一下,或者查看论坛顶置贴,省你时间
回复 支持 反对

使用道具 举报

发表于 2006-12-9 19:35:33 | 显示全部楼层
对头!我就是这么做的!
Post by chinabiue
下个GRUB FOR WIN,然后用命令就好了.我的是.你的你自己找...范本看下面的.
title centosnew on (hd0,8)

root (hd0,7)

kernel /boot/vmlinuz-2.6.9-42.0.3.EL ro root=LABEL=/1 rhgb quiet acpi=ht apm=power-off

initrd /boot/initrd-2.6.9-42.0.3.EL.img



title centos on (hd0,7)

root (hd0,7)

kernel        /boot/vmlinuz-2.6.9-42.EL ro root=LABEL=/1 rhgb quiet acpi=ht apm=power-off

initrd        /boot/initrd-2.6.9-42.EL.img



title install centos

root (hd0,6)

kernel (hd0,6)/centos/vmlinuz

initrd (hd0,6)/centos/initrd.img



title install fc6

root (hd0,6)

kernel (hd0,6)/fc6/vmlinuz

initrd (hd0,6)/fc6/initrd.img



title Fedora Core (2.6.18-1.2849.fc6)

root (hd0,8)       

kernel        /boot/vmlinuz-2.6.18-1.2849.fc6 ro root=LABEL=/ rhgb quiet

initrd        /boot/initrd-2.6.18-1.2849.fc6.img



title Fedora Core (2.6.18-1.2798.fc6)

root (hd0,8)

kernel        /boot/vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/ rhgb quiet

initrd        /boot/initrd-2.6.18-1.2798.fc6.img



title Other

rootnoverify (hd0,0)

chainloader +1
回复 支持 反对

使用道具 举报

发表于 2006-12-9 19:52:42 | 显示全部楼层
以下是我的修复方法,需要安装光盘。

步骤:
1. 将DVD,放进光驱引导启动后Fedora
2. 输入“linux rescue”,进入修复模式后只需要选择中文,其他都不用设置了,接着进入shell
3. 在提示符sh_3.0>后输入grub,进入 grup程序:
    grub>root (hd0,2)
    grub>setup (hd0)
    随后会提示成功
    grub>quit
    sh_3.0>reboot

注意:
1. root 和 (hdX,Y) 之间有一个空格, 这里的X,如果是一个盘,就是0,如果你所安装的linux的根分区在第二个硬盘上,那X就是1了;Y,就是装有linux系统所在的根分区。 setup (hd0)就是把GRUB写到硬盘的MBR上。
2. 如果你不知道你的linux root分区在哪里,可以在进入grub之前运行fdisk -l,就可以看到了。如果输入root ...后提示未知的文件系统等等,那就是你的Y写错了,不妨尝试将你fdisk -l看到的hdaN的N-1再试。比如我fdisk -l看到我的linux分区是hda3,但是如上写(hd0,2)才是正确的。这个应该是和你放在主分区还是扩展分区有关系。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表