[root@localhost modules]# ls
2.6.20.14
2.6.9-42.ELhugemem kabi-4.0-0
2.6.9-42.EL
2.6.9-42.ELsmp kabi-4.0-0smp
[root@localhost modules]# mv 2.6.9-42.ELsmp/ 2.6.9-42.ELsmpbak
[root@localhost boot]# mkinitrd
/boot/initrd-2.6.20.14 2.6.20.14
No module mptscsi found for kernel 2.6.20.14, aborting.
[root@localhost boot]#
解决方法:
[root@localhost boot]# cat
/etc/modprobe.conf
alias eth1 pcnet32
#alias scsi_hostadapter mptbase
#alias scsi_hostadapter1 mptscsi
#alias scsi_hostadapter2 mptfc
#alias scsi_hostadapter3 mptspi
#alias scsi_hostadapter4 mptsas
#alias scsi_hostadapter5 mptscsih
alias eth0 pcnet32
在 scsi 的相关部分注释掉即可!
其他遇到的问题:
问题1:
解决方法:
http://wiki.openvz.org/Modifying_initrd_image
问题2:
出错信息: insmod: error inserting '/lib/scsi_mod.ko' : -1 Invalid module format ERROR: /bin/insmod exited abnormally! insmod: error inserting '/lib/sd_mod.ko' : -1 Invalid module format ERROR: /bin/insmod exited abnormally! insmod: error inserting '/lib/libata.ko' : -1 Invalid module format ERROR: /bin/insmod exited abnormally! insmod: error inserting '/lib/ata_piix.ko' : -1 Invalid module format ERROR: /bin/insmod exited abnormally! insmod: error inserting '/lib/jbd.ko' : -1 Invalid module format ERROR: /bin/insmod exited abnormally! insmod: error inserting '/lib/ext3.ko' : -1 Invalid module format ERROR: /bin/insmod exited abnormally! mkrootdev: label / not found mount: error 19 mounting ext3 mount: error 2 mounting none switchroot: mount failed: 22 unmount /initrd/dev failed: 2 kernel panic - not syncing: Attempted to kill init! kernel /vmlinuz-2.6.11.10 ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.9-1.667.img 原因: You have given your new kernel the initrd from the old one in
grub.conf.... 解决方法: You will have to make a new initrd for your new kernel, you can't mix up initrd's and kernel images, each initrd consists of modules copied from the kernel that needs them. Use mkinitrd. 显然/boot/grub/grub.conf中的initrd项不配套,我用了原内核的initrd。各个版本的内核对应自己的initrd,只需要 cd
/usr/src/linux* make install 即可生成配套的initrd、vmlinz、System.map即可!
问题3:
找不到网卡的驱动:
原因:
[root@localhost
modules]#cd /lib/modules
[root@localhost modules]# ls
2.6.20.14
2.6.9-42.ELhugemem kabi-4.0-0
2.6.9-42.EL
2.6.9-42.ELsmp kabi-4.0-0smp
[root@localhost modules]# mv 2.6.9-42.ELsmp/ 2.6.9-42.ELsmpbak
/lib/modules下的驱动加载不了!
只需要将原来的目录名改回来即可!
阅读(2556) | 评论(1) | 转发(0) |