LinuxSir.cn,穿越时空的Linuxsir!

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

求助:内核编译问题

[复制链接]
发表于 2005-3-7 20:34:09 | 显示全部楼层 |阅读模式
我在rh9(2.4.20-8)编译2.6.9
步骤参照论坛上的文章
make mrproper
make menuconfig
make
make modules_install
make install
然后我的grub.conf如下
title Red Hat Linux(2.6.9xlwang)
     root (hd0,6)
     kernel /boot/vmlinuz-2.6.9xlwang ro root=LABEL=/
     initrd /boot/initrd-2.6.9xlwang.img
title Red Hat Linux(2.4.20-8)
     root (hd0,6)
     kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
     initrd /boot/initrd-2.4.20-8.img
引导Red Hat Linux(2.4.20-8)没有问题
但是Red Hat Linux(2.6.9xlwang)出现如下错误
kernel panic - not syncing:No init found.Trying passing initption to kernel

如果是root路径指定不对,那么Red Hat Linux(2.4.20-8)也应该无法引导啊
求助:如何解决,谢谢
发表于 2005-3-8 09:49:49 | 显示全部楼层
grub.conf的2.6部分改为root=/dev/hdxn  比如hda1就是root实际所在的分区 应该就可以了
回复 支持 反对

使用道具 举报

发表于 2005-3-8 12:37:23 | 显示全部楼层
除了楼上所说的不要用标签(LABEL)之外,还要注意在编译内核的时候要把ext2/ext3文件系统编译进内核,而不能只编译成模块。
回复 支持 反对

使用道具 举报

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

本版积分规则

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