On centos5.4, compile the high kernel version according to the general method and restart it will cause an error. the solution is cp/boot/config-2.6.18-164.el5.config, and then modify it in makemenuconfig. config: enable the CONFIG_SYSFS_DEPRECATED option. During make, the system will prompt whether to enable CONFIG_SYSFS _
On centos5.4, compile the kernel of High version according to the general method after restart will Error, solution is cp/boot/config-2.6.18-164.el5. in make menuconfig, and then modify. config: enable the CONFIG_SYSFS_DEPRECATED option. During make, the system will prompt whether to enable CONFIG_SYSFS_DEPRECATEDV2. After you select enable, make modules_install is complete. after restart, the system will still report an error: insmod: error inserting '/lib/dm-region-hash.ko ':? 1 File exits. modify the initrd File:
Cp/boot/initrd-2.6.36 +. img/tmp
Mkdir new
Cd new
Zcat./initrd-2.6.36 +. img | cpio-I
After unpacking, modify init to delete the redundant dm-region-hash information.
Rewrite and package initrd
Find. | cpio-c-o> initrd. new
Gzip-9 <initrd. new> initrd-2.6.36 +. img
Copy the new initrd-2.6.36 +. img to/boot and restart the system.