|
4#
楼主 |
发表于 2012-8-15 21:44:32
|
只看该作者
原帖由 <i>三块石头</i> 于 2012-8-15 15:54 发表 <a href="http://bbs.wuyou.net/redirect.php?goto=findpost&pid=2550088&ptid=255783" target="_blank"><img src="http://bbs.wuyou.net/images/common/back.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open(this.src);}" onmousewheel="return imgzoom(this);" alt="" /></a><br />
<br />
首先,你在grub rescue>模式下输入set,看看grub2的默认环境变量(在core.img中,安装时设定的)。<br />
prefix=(hdx,y)/boot/grub<br />
<br />
root=hdx,y<br />
根据你的情况,这两个变量应做如下设置:<br />
set prefix=(hd0,1)/ ... <br />
多谢石头,命令我敲了一遍有点问题
1 grub rescue>set
2 prefix=(hd0,msdos8)/boot/grub
3 root=hd0,msdos8
4 grub rescue>set prefix=(hd0,1)/boot/grub
5 grub rescue>set root=hd0,1
6 grub rescue>insmod normal
7 error:unknown filesystem.
8 grub rescue>insmod (hd0,1)/boot/grub/normal.mod
9 error:unknown filesystem.
10 grub rescue>normal
11 Unknown command 'normal'
第5行之后
grub rescue>set
prefix=(hd0,1)/boot/grub
root=hd0,1
看来第5行之前的命令都是正确的
请石头再看看。 |
|