LinuxSir.cn,穿越时空的Linuxsir!

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

一个奇怪的问题..

[复制链接]
发表于 2008-11-25 09:54:53 | 显示全部楼层 |阅读模式
安装完引导后断在:
>> Activating udev
>> Determining root device...
!! Block device /dev/sda3 is not a valid root device...
!! The root block device is unspecified or not detected.
Please specify a device to boot,or "shell" for a shell...
boot() ::

我的kernel是genkernel all生成的..root分区是/dev/sda3,没有单独做boot分区,硬盘是IDE的..看网上有人说把scsi编译进kernel解决..问题是我不是scsi的啊..只是硬盘插在第二个IDE接口上..第一个插的是刻录机..结果就认成sda..为什么会这样呢
发表于 2008-11-25 10:34:41 | 显示全部楼层
贴一下你的grub.conf
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-25 21:34:30 | 显示全部楼层
livecd grub # more grub.conf
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/han ... p;chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 30
splashimage=(hd0,2)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.24-r5
root (hd0,2)
kernel /boot/kernel-genkernel-x86-2.6.25-gentoo-r9 root=/dev/ram0 real_root=/dev/sda3 doscsi vga=0x318
initrd /boot/initramfs-genkernel-x86-2.6.25-gentoo-r9


title xp
rootnoverify (hd0,0)
makeactive
chainloader +1
# vim:ft=conf:
回复 支持 反对

使用道具 举报

发表于 2008-11-25 21:38:00 | 显示全部楼层
换成real_root=/dev/hda3看看能否能起来,应该是内核libata编译选项方面问题。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-25 22:05:40 | 显示全部楼层
改成real_root=/dev/hdb3 OK了。。那个问题解决了..然后继续引导又说找不到/dev/sda3..结果把fstab中的/ ,swap所在的区换成/dev/hdb3,/dev/hdb4就搞定了..但是在liveCD中必须mount /dev/sda3 /mnt/gentoo才行...奇怪..不过总算问题解决了..多谢楼上兄弟提醒
回复 支持 反对

使用道具 举报

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

本版积分规则

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