LinuxSir.cn,穿越时空的Linuxsir!

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

genkernel编译的内核不能启动

[复制链接]
发表于 2005-10-24 09:03:32 | 显示全部楼层 |阅读模式
amd64-universal-2005.1,用genkernel all编译的内核,reiserfs,装在sda10的分区上,grub在mdk2006-X64的分区上,内容为:
root (hd0,9)
kernel (hd0,9)/boot/bzImage root=/dev/sda10


fstab:
/dev/sda10   /    reiserfs   defaults 0 0

开机错误为:
VFS:Cannot open root device "sda10" or unknown-block(0,0)
please append a correct "root=" boot option
kernel panic -not syncing:VFS:unable to mount root fs on unknown -block(0,0)

第一次装amd64,配置为AMD300+E3,盘正9NPAJ,sata硬盘。请问要怎么办呀?
发表于 2005-10-24 09:28:57 | 显示全部楼层
Grub.conf中的root=/dev/hdaX 写错了
修改一下,或者就是你的fstab写错了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-24 09:40:36 | 显示全部楼层
Post by wangxudong
Grub.conf中的root=/dev/hdaX 写错了
修改一下,或者就是你的fstab写错了


MDK2006里的也是这么写的,MDK在sda9上面,她写的是root=/dev/sda9,我的gentoo在sda10上面,所以就写的root=/dev/sda10。
回复 支持 反对

使用道具 举报

发表于 2005-10-24 21:56:01 | 显示全部楼层
有可能是你把文件系统编译成模快了,root的文件系统要编译进内核。还有就是你没有编译VFS支持。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-25 08:40:52 | 显示全部楼层
reiserfs编时内核了,VFS没注意。

sata的硬盘需要编译什么支持,还是跟IDE硬盘一样用?
盘正9NPAJ的主板集成的网卡和声卡在内核里该怎么选?
回复 支持 反对

使用道具 举报

发表于 2005-10-25 21:06:18 | 显示全部楼层
Post by inkscape
reiserfs编时内核了,VFS没注意。

sata的硬盘需要编译什么支持,还是跟IDE硬盘一样用?
盘正9NPAJ的主板集成的网卡和声卡在内核里该怎么选?


ext2 ext3最好也编译进内核
下边这个必须。
  • Virtual memory file system support (former shm fs)
  •      Support for SATA (deprecated; conflicts with libata SATA driver)

    网卡声卡你要看芯片,在内核里找对应的。
  • 回复 支持 反对

    使用道具 举报

     楼主| 发表于 2005-10-26 09:10:28 | 显示全部楼层
    又重装了一遍,从MDK2006-X64开始装,自已编的内核,这次启动多一点了,但启动到Mounting network filesystem   [ok]时卡住了,上面说到的两个内核的地方都选了,ext2没编进内核。记得上次在其它电脑上装,自已编的内核也在mount network filesystem时卡住的,用genkernel编的就能进,进去后再自已编内核就可以了,这回还没有用genkernel来编,内核基本上是按默认的,再加上网卡、声卡和使用的FS,其它的没什么选的了。卡在mounting network filesystem这里怎么办?
    回复 支持 反对

    使用道具 举报

     楼主| 发表于 2005-10-26 14:59:14 | 显示全部楼层
    * Kernel compiled successfully!
    *

    * Required Kernel Parameters:
    *   
    real_root=/dev/$ROOT
    *
    *   
    Where $ROOT is the device node for your root partition as the
    *  
    one specified in /etc/fstab
    *

    * If you require Genkernel's hardware detection features; you MUST
    *
    tell your bootloader to use the provided INITRAMFS file. Otherwise;
    *
    substitute the root argument for the real_root argument if you are
    *
    not planning to use the initrd...


    * WARNING... WARNING... WARNING...
    *
    Additional kernel cmdline arguments that *may* be required to boot properly...
    *
    add "vga=791 splash=silent" if you use a bootsplash framebuffer

    *
    Do NOT report kernel bugs as genkernel bugs unless your bug
    *
    is about the default genkernel configuration...
    *

    * Make sure you have the latest genkernel before reporting bugs.

    这是要做什么?
    回复 支持 反对

    使用道具 举报

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

    本版积分规则

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