Compile the kernel of a later version on Centos

Source: Internet
Author: User

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, then you need to 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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.