A linux System Kernel upgrade record, with some and IPVS kernel module, linux boot sequence and other related knowledge, for future reference to the upgrade before the OS information # lsb_release-aLSBVersion: core-3.1-amd64: core-3.1-ia32: core-3.1-noarch: graphics-3.1-amd64: graphics-3.1-ia32: graphics-3.1-noarchDistri
A linux Kernel upgrade record with some knowledge related to the IPVS kernel module and linux startup sequence for future reference
OS information before upgrade
# Lsb_release- LSB Version: core-3.1-amd64: core-3.1-ia32: core-3.1-noarch: graphics-3.1-amd64: graphics-3.1-ia32: graphics-3.1-noarch: Distributor ID: CentOS Description: CentOS release 5.5 (Final) Release: 5.5 Codename: Final # Uname-r 2.6.18-194. el5 # |
Upgrade procedure
The latest kernel. In this example, wget to/usr/src directly.
Http://www.kernel.org/
General installation steps, or check the "readme" in the directory to find the installation method.
Cd/usr/src Wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.37.tar.bz2 Tar-jxvf linux-2.6.37.tar.bz2 Ln-s/usr/src/linux-2.6.37/usr/src/linux Cd linux Make clean Cp/boot/config-2.6.18-194.32.1.el5. config Make menuconfig Make bzImage Make modules Make modules_install Make install # |
Command comprehension
Make menuconfig \ kernel customization (the. config file will be modified)
Make bzImage \ generate the kernel image file in/usr/src/linux/arch/xxx/boot/bzImage
Make modules \ compilation module
Make modules_install \ installation module,/lib/modules/x directory/additional module
Make install \ install new kernel to/boot/
Mkinitrd/boot/initrd-2.6.23.14.img 2.6.23.14 \ mkinitrd creates an image file for Linux to load ramdisk upon startup
In the above steps, I encountered two problems after the compilation is restarted.
Question 1
MOUNT: count not find filesystem '/dev/root' |
The solution is as follows: