Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2796762
  • 博文数量: 587
  • 博客积分: 6356
  • 博客等级: 准将
  • 技术积分: 6410
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-23 10:54
个人简介

器量大者,福泽必厚

文章分类

全部博文(587)

文章存档

2019年(3)

2018年(1)

2017年(29)

2016年(39)

2015年(66)

2014年(117)

2013年(136)

2012年(58)

2011年(34)

2010年(50)

2009年(38)

2008年(16)

分类: LINUX

2010-03-02 18:00:24

[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下的驱动加载不了!

只需要将原来的目录名改回来即可!

阅读(2538) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-03-29 09:46:33

谢谢提供的解决方法,很有帮助.