LinuxSir.cn,穿越时空的Linuxsir!

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

再问grub的引导

[复制链接]
发表于 2004-12-29 16:17:10 | 显示全部楼层 |阅读模式
按论坛中的方法:
linux rescue
chroot /mnt/sysimage
grub -install /dev/hda  \\这样不行,用 grub -help 显示只有选项 --install, 而用--install 后进入
grub>
grub> root(hd0,x) \\这样不行,显示为参数错。后发现要加空格,改为
grub> root (hd0,8) \\ /dev/hda8 是我的fc3的安装路径
grub :device 8 is a ext2 file system \\大概是这样的显示
grub> setup (hd0)
not found /boot/grub/stage1
not found /boot/grub/stage1.conf
我去查了一下,/boot/grub下有stage1,而且还有stage2,为什么不行?进不去FC3了,呜呜。

还有一个写什么makebootable /dev/hda 更不能用了,linux rescue中就没有那样的命令。
发表于 2004-12-29 18:09:17 | 显示全部楼层
grub-install是一个命令,不是分开的。
发表于 2004-12-29 19:19:12 | 显示全部楼层
给:menu.lst

title Fedora Core (2.6.9-1.667)
        root (hd0,7)
        kernel /boot/vmlinuz-2.6.9-1.667 ro root=/dev/hda8 acpi=off rhgb quiet
        initrd /boot/initrd-2.6.9-1.667.img

title                Windows NT/2000/XP
root                (hd0,0)
savedefault
makeactive

把上面的保存为/boot/grub/menu.lst,运行grub,应可启动你的FC3,进入FC3后再运行:grub-install hd0
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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