Centos 5.5 kernel version:2.6.18-194. E15-X86_64.
Upgrade to Linux 2.6.32 first. Because 2.6.3x has similar kernel compilation steps, the title of this article is 2.6.32x.
(1) download the standard kernel 2.6.32 and decompress it to the directory, for example,/usr/src.
(2) Make menuconfig select the relevant kernel module
CD/usr/src/linux-2.6.32
CP/usr/src/kernels/2.6.18-194. el5-x86_64/. config. <copy the. config of the current kernel>
Make menuconfig
Be sure to selectGeneral setup-> enable deprecated sysfs features to support old...
(That is, in the generated new. config fileConfig_sysfs_deprecated_v2 = yIf this option is not selected, an error will be reported after the kernel is compiled and restarted.Mount: cocould not find filesystem '/dev/root'. This is a unique option for the new kernel version. The old kernel does not have the config_sysfs_deprecated_v2 option. config is also different from the new kernel, but it is generated using make menuconfig of the new kernel. config not only contains the copied. the related options in the Config File Include some new options.
Save. config
(3) Compile the kernel
Make;
Make modules;
Make modules_install;
Make install;
(4) Modify/etc/grub. conf, select a new kernel, and restart the system.