1.复制阵列卡驱动
cd /lib/modules/
cp 2.6.18-164.el5PAE/updates/megasr.ko 2.6.18-194.32.1.el5PAE/updates/
2.检查依赖关系
depmod -a 2.6.18-194.32.1.el5PAE
3.封装initrd.img
mkinitrd -f /boot/initrd-2.6.18-194.32.1.el5PAE.img 2.6.18-194.32.1.el5PAE
查看initrd.img
[root@test tmp]# file initrd-2.6.18-164.el5PAE.img
initrd-2.6.18-164.el5PAE.img: gzip compressed data, from Unix, last modified: Tue Mar 16 20:13:30 2010, max compression
gunzip -c initrd-2.6.18-164.el5PAE.img | cpio -iv
[root@test tmp]# file /tftpboot/redhat32/langchao/megasr.img
/tftpboot/redhat32/langchao/megasr.img: DOS floppy 1440k, x86 hard disk boot sector
mount -o loop -t vfat megasr.img /media/
阅读(1406) | 评论(0) | 转发(0) |