LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 735|回复: 2

安装gentoo时设置grub出现问题

[复制链接]
发表于 2005-8-19 19:37:02 | 显示全部楼层 |阅读模式
今天安装gentoo,辛辛苦苦的走到了设置grub这一步,但是在将grub装进mbr的时候却出现了如下的问题
grub> root (hd0,0)
filesystem type unknown,partition type 0*7
grub> setup(hd0)
error17 cannot mount selected partition

小弟是在ubuntu的基础上安装gentoo的,原系统已经有windowsxp在hda1上,个人推测可能是在/etc/fstab的设置过程中出现了问题,因为不太确定自己是否在fstab的适当位置上添加上了说明,我是在fstab的开头加入说明的,现将在fstab上在前面修改的地方摘图如下,望各位兄弟指教(hda9是gentoo,hda10是swap)
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah$#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>                  <mountpoint>    <type>          <opts>                  <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.

/dev/hda9               /               reiserfs        noatime                 0 0
/dev/hda10              none            swap            sw                      0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro               0 0
none                    /proc           proc            defaults                0 0
none                    /dev/shm        tmpfs           defaults
0 0
#/dev/fd0               /mnt/floppy     auto            noauto                  0 0

# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults                0 0
发表于 2005-8-19 19:59:25 | 显示全部楼层
[PHP]grub> root (hd0,0)//错误了,根据你fstab,你没有boot分区,
如果你想将grub 安装在gentoo中,这里就是grub> root (hd0,8)
filesystem type unknown,partition type 0*7
grub> setup(hd0)
error17 cannot mount selected partition[/PHP]
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-19 20:33:17 | 显示全部楼层
Post by xiaosir
[PHP]grub> root (hd0,0)//错误了,根据你fstab,你没有boot分区,
如果你想将grub 安装在gentoo中,这里就是grub> root (hd0,8)
filesystem type unknown,partition type 0*7
grub> setup(hd0)
error17 cannot mount selected partition[/PHP]


再次感谢xiaosir兄,由于自己的系统和handbook上提供的有很大的不同,再加上是第一次安装,所以很多时候都弄晕了,在将(hd0,0)改为(hd0,8)之后果然能够写入grub。
谢谢,有什么问题的话再请各位指教
回复 支持 反对

使用道具 举报

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

本版积分规则

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