haidongboy 发表于 2006-2-17 18:56:49

一个重装grub的问题

我在装了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)

haidongboy 发表于 2006-2-17 20:06:49

grub> 提示符怎么出来的?

还是马夹 发表于 2006-2-17 20:58:14

命令符下grub就进入grub>

haidongboy 发表于 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

qrstuvwxyz 发表于 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的参数弄错了,怎么补救啊

mqyng 发表于 2006-2-19 11:04:52

顶,我也有同样问题

mqyng 发表于 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键,会出现分区列表。。。看看哪个是正确的。

mqyng 发表于 2006-2-19 22:29:03

后来我发现还是grub.conf这个文件内部有错误的原因.真奇怪,重装遍xp,这个文件的内容还有变化.

还是马夹 发表于 2006-2-20 22:20:39

root分区单独装在别的分区???

stage1.stage2找不到嘛..

zgx911 发表于 2006-2-22 11:26:38

怎么退出 grub> 啊?

zgx911 发表于 2006-2-22 11:34:21

知道了 QUIT
页: [1]
查看完整版本: 一个重装grub的问题