and u can use u old kernel to boot and lsmod to see what modules are needed, then u can know which modules u should include in u initrd. it is really painful. i remember i spent several days on my dell poweredge server because of similar problem. but i forgot how i solved it. that is one year ago. and the cache in my brain are smaller and smaller now. http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&p=80919#80919
link /usr/inculde/scsi 顺便问一下,如何编译出BusLogic这个模块?我把SCSI编译模块后/lib/modules里面没有BusLogic.o这个文件。 under scsi low level device, there is a buslogic support, choose it as module as well. i install a rh8.0 on my vmware (my vmware is run on gentoo linux 1.4). and recompile the 2.4.20 kernel. and my new kernel can boot up. my new kernel use initrd.
*i compile scsi support, scsi disk and buslogic all as modules.
*under block devices, say y toramdisk support, init rd support. use default 4M size. this is very important for mkinitrd support. if u compile it as module, it is useless.
*make dep bzImage modules modules_install.
*mkinitrd /boot/initrd-2.4.20.img 2.4.20
*i change my /etc/fstab, change that root to /dev/sda2 instead of that LABEL/. u can try to see if this is needed.
*choose ext3, in fact, i think ext3 can be module too.
*add entry in u grub.conf, nothing special, indicate u want to use initrd-2.4.20.img
*reboot and should work i also can boot it without initrd support. u need choose all into kernel, including, ext3, scsi support, scsi disk support, buslogic support. need not choose ramdisk and initrd support.
btw, in my last post, i mention the change of the /etc/fstab. in fact, u need not change the /etc/fstab, either can work. i alredy test it.
another issue is about grub.conf. if u use initrd, u can use root=LABEL=/. if no, u need use root=/dev/sda2. u can try it and tell me what's happen on u box.
good luck. u linux should be able to boot now 问题终于解决了,果然是BusLogic的原因!
感谢各位的支持!
特别是cheungming兄。Thank you very much! 补充一点,正如cheungming兄所说,如果要root=LABEL=/生效而不是使用root=dev/sda2这样的格式,必须使用initrd,而其他诸如ext3,SCSI Support等等都可以编译成模块。 u are so welcome. 补充一点,正如cheungming兄所说,如果要root=LABEL=/生效而不是使用root=dev/sda2这样的格式,必须使用initrd,而其他诸如ext3,SCSI Support等等都可以编译成模块。
编译进内核不行吗? no, this is grub problem, not kernel problem.
页:
1
[2]