LinuxSir.cn,穿越时空的Linuxsir!

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

grub的问题!!!

[复制链接]
发表于 2005-8-24 15:43:27 | 显示全部楼层 |阅读模式
我redflag系统,
原本/在hda6上,现在我用分区软件多分了一个区,现在/在hda7上.
现在我的系统进不去了!
用grup>cat (hd0,6)/boot/grub/grub.conf
看到grub.conf root配置为:
root (hd0,6)
我现在在想改为(hd0,7)
怎么改啊?

grup>root (hd0,7)
grup>setup (hd0)
上面的命令不好使!
发表于 2005-8-24 15:53:31 | 显示全部楼层
grup>root (hd0,7)
grup>setup (hd0)

这些是从0开始的,而hda1.hda7这些是从1开始的
回复 支持 反对

使用道具 举报

发表于 2005-8-24 16:40:38 | 显示全部楼层
The othe way:reinstall GRUB
steps:
1) Boot the system from an installation boot medium.
2) Type linux rescue at the installation boot prompt to enter the rescue environment.
3) Type chroot /mnt/sysimage  to mount the root partition.
4) Type /sbin/grub-install  /dev/hda to reinstall the GRUB boot loader,where /dev/hda is the boot partition.
5) review the /boot/grub/grub.config file,as additional entries may be needed for GRUB to control additional pperating systems.
Reboot the system.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-24 16:48:24 | 显示全部楼层
对不起.我弄错了.是我.
cat (hd0,7)/boot/grub/grub.conf
时看到root (hd0,6)   这个现在是错的.
我想把它改成 root(hd0,7).这样我的linux才能启动!
grub>root (hd0,7)
grub>setup (hd0)
上面的命令不好使!

我装的双系统!
回复 支持 反对

使用道具 举报

发表于 2005-8-24 16:49:34 | 显示全部楼层
grup谁写的?这个程序谁写的?
grub
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-24 16:50:56 | 显示全部楼层
打错字了!!!
还有我没有安装盘能修改么???
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-24 17:43:18 | 显示全部楼层
好了。封贴!!
回复 支持 反对

使用道具 举报

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

本版积分规则

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