分页: 1 / 1

onlgrub> root(hd0,2) setup(hd0) online sos!!!/grub recovery

发表于 : 2007-12-17 17:51
hungry1526
grub> root(hd0,2) setup(hd0)

Error 27: Unrecognized command

or/////////////////////////////////////////////////////////


grub> root(hd0,2)

Error 27: Unrecognized command

grub> setup(hd0)

Error 27: Unrecognized command



/////////////////////////////////////////////////////////////////////////////////////


my menu.lst is as follows:


/////////////////////////////////////////////////////////////////////////////////////
## ## End Default Options ##

title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=d7d6abb1-b26c-4c9f-bf2d-d1fb368bef8a ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet

title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=d7d6abb1-b26c-4c9f-bf2d-d1fb368bef8a ro single
initrd /boot/initrd.img-2.6.22-14-generic

title Ubuntu 7.10, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1



///////////////////////////////////////////////////////////////////[/b]

发表于 : 2007-12-17 17:56
hungry1526
grub loading , please wait ....
error 17
不能进入ubuntu





this is the initial situation
and i have copied linux.lnx to c:\
and also change the boot.ini



bu chong yi xia~~~~




who can help me?????

发表于 : 2007-12-18 21:16
avauntage
grub> root(hd0,2)

Error 27: Unrecognized command

grub> setup(hd0)

Error 27: Unrecognized command
在敲完root这4个字母的时候,按一下Tab键,你就会发现这个命令是root (hd0,2),中间有一个空格的。
在linux的终端中,要经常使用Tab键,会有意外收获的。

发表于 : 2007-12-18 21:49
ccbwx
root(hd0,2)
应该是
root (hd0,2)
中间有空格的!!!!

发表于 : 2007-12-18 23:36
hungry1526
噢。。这个问题我解决了
但是新的问题又出现了。。。

在完成了上述的步骤以后
重启 发现GRUB出现了 但是点进去显示
error 17:cannot mount selected partition
请问是什么原因?

发表于 : 2007-12-19 8:53
avauntage
这个root(hd0,2) 的意思是指/boot在第3个分区上,不知你的分区如何分的?
你需要先查找一下/boot在哪里才行。步骤如下:

1、用ubuntu的安装盘启动。
2、打开一个终端
3、运行grub

代码: 全选

sudo grub
4、查找/boot在哪里。

代码: 全选

grub> find /boot/grub/stage1
(hd0,2) 这是我的结果。
5、设置grub

代码: 全选

root (hd0,2) 
setup (hd0)
注意root和setup命令后都有一空格。
出现下面这些提示就说明安装成功了。
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,2)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.

发表于 : 2007-12-19 10:47
hungry1526
first thank you for your help!

///////////////////////////////////////////////////////////////////////////////////////////////////////////
grub> root (hd0,
Possible partitions are:
Partition num: 0, Filesystem type is fat, partition type 0xc
Partition num: 2, Filesystem type unknown, partition type 0x82
Partition num: 3, Filesystem type is ext2fs, partition type 0x83
Partition num: 4, Filesystem type unknown, partition type 0x7
Partition num: 5, Filesystem type unknown, partition type 0x7

grub> root (hd0,3)

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,3)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.

grub>




//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
any mistakes?
but error 17 still regins!

发表于 : 2007-12-19 11:01
hungry1526
grub> find /boot/grub/stage1
(hd0,3)