Linux Kernel upgrade tutorial

Source: Internet
Author: User
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:

Related Article

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.