LinuxSir.cn,穿越时空的Linuxsir!

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

debian通过源码编译内核到2.6重启出现问题,寻求具体解决方法。

[复制链接]
发表于 2006-5-2 02:04:00 | 显示全部楼层 |阅读模式
debian通过源码编译内核到2.6重启出现问题,寻求具体解决方法。

VFS:Cannot open root device "hdb2" or unknow-block(0,0)
Please append a correct "root=" boot option
kernel panic-not syncing: VFS:Unable to mount root fs on unknow-block(0,0)
发表于 2006-5-5 20:24:03 | 显示全部楼层
In Debian, for some strange reason, the default .config file does not include "general block device driver" in vmlinuz! And you did not build initrd correctly to inclue the module.

You have to run "make xconfig" and tick YES for this parameter!
Also compile the root file system driver directly into kernel.
回复 支持 反对

使用道具 举报

发表于 2006-5-6 00:24:22 | 显示全部楼层
你的硬盘驱动,相应的文件系统等都不能编成模块,要选为Y,应该可以了。
当然你也可以生成一个initrd文件,这时应该是可以使用模块驱动的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-7 11:07:36 | 显示全部楼层
谢谢大家的热情回复,但奋斗了几天,仍没有成功,虽然安上面的去一一加载了选项,甚至把所有有关block device 的选项全yes了,还是没有解决问题,可能是多的分区太蹊跷了,我的分区情况:
VolGroup00
[color="White"].................. |
[color="white"]...................+----LogVol00 [color="white"]............................./
[color="white"]...................|
[color="white"]...................+----LogVol01[color="white"]............................../swap
[color="white"]...................|
[color="white"]...................+----LogVol02[color="white"]............................../home (Raid5)
[color="white"]........................................|
[color="white"]........................................+-----/dev/sda10
[color="white"]........................................|
[color="white"]........................................+-----/dev/sda11
[color="white"]........................................|
[color="white"]........................................+-----/dev/sda12

/dev/sda9[color="white"]....................................................../boot

即一个卷组,三个逻辑卷,第三个逻辑卷里包进了一个raid5 /dev/md0.
回复 支持 反对

使用道具 举报

发表于 2006-5-7 11:41:15 | 显示全部楼层
你的分区看起来是SCSI格式的,都是sdaxx,错误提示中去找hdb2作为root,显然找不到吧……

如果你的是sata接口的硬盘,那么在2.4内核中会被识别为hdxx,到了2.6内核中,就变成sdxx,这时就得在lilo或者grub中传送启动参数,重新制定root的挂载位置到sdxx

不妨试试,看是不是这个问题。
回复 支持 反对

使用道具 举报

发表于 2006-5-9 10:02:37 | 显示全部楼层
最好给出你grub或lilo里写的启动内容
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-9 12:55:58 | 显示全部楼层
谢谢大家的热情回复,我因反复编译内核,导致系统崩溃了,我重对装了系统,直接用了linux26。我打算过些时间再把内核升级到2.6.16,我怀疑debian的内核升级对LVM逻辑卷组支持得不那么智能。呵呵!仅是猜测。以后继续向大家请教,多向大家学习。
回复 支持 反对

使用道具 举报

发表于 2006-5-9 13:44:00 | 显示全部楼层
回复 支持 反对

使用道具 举报

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

本版积分规则

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