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]
onlgrub> root(hd0,2) setup(hd0) online sos!!!/grub recovery
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 65
- 注册时间: 2007-08-31 15:31
-
- 帖子: 65
- 注册时间: 2007-08-31 15:31
- avauntage
- 帖子: 570
- 注册时间: 2005-09-22 10:15
- 来自: 北京
-
- 帖子: 65
- 注册时间: 2007-08-31 15:31
- avauntage
- 帖子: 570
- 注册时间: 2005-09-22 10:15
- 来自: 北京
这个root(hd0,2) 的意思是指/boot在第3个分区上,不知你的分区如何分的?
你需要先查找一下/boot在哪里才行。步骤如下:
1、用ubuntu的安装盘启动。
2、打开一个终端
3、运行grub
4、查找/boot在哪里。
(hd0,2) 这是我的结果。
5、设置grub 注意root和setup命令后都有一空格。
出现下面这些提示就说明安装成功了。
你需要先查找一下/boot在哪里才行。步骤如下:
1、用ubuntu的安装盘启动。
2、打开一个终端
3、运行grub
代码: 全选
sudo grub
代码: 全选
grub> find /boot/grub/stage1
5、设置grub
代码: 全选
root (hd0,2)
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)"... 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.
空手把锄头,步行骑水牛;人在桥上过,人流水不流。
-
- 帖子: 65
- 注册时间: 2007-08-31 15:31
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!
///////////////////////////////////////////////////////////////////////////////////////////////////////////
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!
-
- 帖子: 65
- 注册时间: 2007-08-31 15:31