|
|
发表于 2008-1-15 18:53:02
|
显示全部楼层
http://www.linuxeden.com/forum/r ... 7&goto=lastpost
转帖:
没想到自己的SATA硬盘安装Gentoo这么艰辛,按照handbook上的指南按部就班地安装,结果死活装不上,
出错提示如下:
代码:
>> 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() ::
刚开始在sir的Gentoo版面寻找答案,大多数说是所需的文件系统要以非模块的形式编译进内核,然后把SATA相关驱动也编译进内核。我是个懒人,先用genkernel --menuconfig udv all编译内核,结果不行,
出现同样的错误提示,于是直接把LiveCD的内核和initrd拿来用,还是不行,这才感觉问题应该不在内核上。反复看提示,总觉得是Grub不认SATA硬盘。后来经证实的确如此。其实只要在grub.conf内,把kernel 那一句里加入
代码:
doscsi这个命令行就可以了。提供一个我的样例:
代码:
default 0
timeout 5
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
title=Gentoo Linux 2.6.12-r6
root (hd0,4)
kernel /kernel-genkernel-x86-2.6.12-gentoo-r6 root=/dev/ram0 real_root=/dev/sda3
ramdisk_size=8192 doscsi udev
initrd /initramfs-genkernel-x86-2.6.12-gentoo-r6
比较下和我的出错好象不是很相同,他的好象是已经越过我的这一步了又出现的问题,我的是找不到root device ,而他的可以找到只是不支持SATA的硬盘。可否这样理解?
另外他提供的解决方案我不懂。他的grub.conf文件从哪里来的?应该是他已经装上了,系统已经生成了这个文档。不是从GRUB FOR DOS那里来的。所以我不知道在哪里修改这个grub.conf文档,我的FC7文档里没有GENTOO的记录。 |
|