LinuxSir.cn,穿越时空的Linuxsir!

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

gentoo安装grub问题

[复制链接]
发表于 2011-2-24 16:25:21 | 显示全部楼层 |阅读模式
livecd conf.d # fdisk -l /dev/sda

Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa6238861

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1100     8835718+  83  Linux
/dev/sda2            1101        1305     1646662+  82  Linux swap / Solaris


grub.conf文件
default 0
timeout 10

title Gentoo
root (hd0,0)
kernel /boot/kernel root=/dev/sda1



grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no

Error 2: Bad file or directory type

grub怎么都安装不上????
发表于 2011-2-24 19:23:23 | 显示全部楼层
晕哇……
mount -a
看看
回复 支持 反对

使用道具 举报

发表于 2011-2-25 10:23:07 | 显示全部楼层
grub> find  /boot/grub/stage1
(hd0,6)  
(hd0,6) 这是/boot所在的分区;不要误解为是Linux 的/所在的分区,这是值得注意的;
grub>root (hd0,6)    注:这是/boot所在的分区;
grub>setup (hd0)   注:把GRUB写到MBR上;
注解:
上面这步骤是根据 find /boot/stage1而来的

参考:http://www.linuxsir.cn/main/?q=node/129
回复 支持 反对

使用道具 举报

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

本版积分规则

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