QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1254|回复: 12

一个重装grub的问题

[复制链接]
发表于 2006-2-17 18:56:49 | 显示全部楼层 |阅读模式
我在装了linux后又装了windows,发现不能进如linux了.于是我想重装grub
我进入rescue后,chroot /mnt/sysimage
/sbin/grub-install /dev/sda

然后系统显示 /usr/share/grub/i386-redhat/stage1:Not found

于是我touch了一个再运行/sbin/grub-install /dev/sda

然后系统显示 /usr/share/grub/i386-redhat/stage2:Not found

我又touch了一个,然后grub-install

然后系统显示 cp: cannot stat '/usr/share/grub/i386-redhat/*stage1_5 :No such file or directory

我又touch了*stage1_5,再grub-install

然后系统显示 /sbin/grub-install: line 436:uniq:command not found
             /dev/sda: Not found or not a block device

并且我发现/dev下只有null了
请高手们看看是怎么回事情,我以前装grub没问题的啊.后来因为装了win xp,要重装grub就出现了这样的问题
发表于 2006-2-17 20:01:23 | 显示全部楼层
grub>root (hd0,x) x为你的/boot所在分区(计数从0开始)
grub>setup (hd0)
回复

使用道具 举报

 楼主| 发表于 2006-2-17 20:06:49 | 显示全部楼层
grub> 提示符怎么出来的?
回复

使用道具 举报

发表于 2006-2-17 20:58:14 | 显示全部楼层
命令符下grub就进入grub>
回复

使用道具 举报

 楼主| 发表于 2006-2-17 21:25:34 | 显示全部楼层
root (hd0,6)可以的,可是setup (hd0)后出现如下信息:
checking if "/boot/grub/stage1"exits ... no
checking if "/grub/stage1" exits ... yes
checking if "/grub/stage2" exits ... yes
checking if "/grub/e2fs_stage1_5" exits ... no
running "install /grub/stage1 (hd0) /grub/stage2 p /grub/grub.conf" ... failed

Error 6: Mismattched or corrupt version of stage1/stage2
回复

使用道具 举报

发表于 2006-2-18 19:23:09 | 显示全部楼层
我也是这样一的情况,推荐看下,"如何在重装Windows后,使用Grub引导linux
[ 前往页面: 1 ... 6, 7, 8 ] " 置顶的,
然而,我在用 月下刀客 的方法后,显示是已经succeed了,但是重新启动后,花屏了,显示
root (hd0,2)
FileSystem type unknow, partition type 0x82
kernel /boot/vmlinuz-2.4.20-8/ro/root=LABEL= /
ERROR 17: Canot mount selected partition ,是不是我开始的时候root中y的参数弄错了,怎么补救啊
回复

使用道具 举报

发表于 2006-2-19 11:04:52 | 显示全部楼层
顶,我也有同样问题
回复

使用道具 举报

发表于 2006-2-19 11:25:01 | 显示全部楼层
在我执行chroot前,运行grub是正常的,可chroot /mnt/sysimage之后再运行grub,提示:
Probing devies to guess BIOS drives. This may take a long time.
Error opening terminal:bterm
回复

使用道具 举报

发表于 2006-2-19 16:30:14 | 显示全部楼层
qrstuvwxyz, 输入root(0,后按一二下tab键,会出现分区列表。。。看看哪个是正确的。
回复

使用道具 举报

发表于 2006-2-19 22:29:03 | 显示全部楼层
后来我发现还是grub.conf这个文件内部有错误的原因.真奇怪,重装遍xp,这个文件的内容还有变化.
回复

使用道具 举报

发表于 2006-2-20 22:20:39 | 显示全部楼层
root分区单独装在别的分区???

stage1.stage2找不到嘛..
回复

使用道具 举报

发表于 2006-2-22 11:26:38 | 显示全部楼层
怎么退出 grub> 啊?
回复

使用道具 举报

发表于 2006-2-22 11:34:21 | 显示全部楼层
知道了 QUIT
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-23 13:21 , Processed in 0.058514 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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