CentOS6.4 how to upgrade kernel 3.4.56

Source: Internet
Author: User
The current system is CentOSLinuxrelease6.4 (Final), and the kernel version is 2.6.32-358. el6.i686. upgrade the kernel to the latest version 3.4.56. 1. view the current system kernel # uname-r22.6.32-358.el6.i6862, download the linux-3.4.56 kernel package # cd ~ # Wget-chttps: // ww the current system is CentOS Linux Release 6.4 (Final), kernel version 2.6.32-358. el6.i686. upgrade the kernel to the latest version 3.4.56.

1. view the current system kernel

# uname -r2 2.6.32-358.el6.i686

2. download the linux-3.4.56 kernel package

# cd ~# wget -c https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.4.56.tar.xz# tar -Jxvf linux-3.4.56.tar.xz# mv linux-3.4.56 /usr/src/linux-3.4.56# cd linux-3.4.56

3. configure and install the kernel

# Make mrproper # clear environment variables, that is, clear the configuration file # make menuconfig # select the kernel module to be compiled in menu mode
# Make clean # make sure everything is up-to-date. # make bzImage # Generate the kernel file # make modules # compilation module # make modules_install # installation module # make install # installation

4. Edit/Etc/grub. confFileDefault = 1ChangeDefault = 0

# cat /etc/grub.conf# grub.conf generated by anaconda## Note that you do not have to rerun grub after making changes to this file# NOTICE: You have a /boot partition. This means that# all kernel and initrd paths are relative to /boot/, eg.# root (hd0,0)# kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root# initrd /initrd-[generic-]version.img#boot=/dev/sdadefault=1timeout=3splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenutitle CentOS (3.4.56)        root (hd0,0)        kernel /vmlinuz-3.4.56 ro root=UUID=2c06f495-2f8c-4930-8968-9c612d32edc1 rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet        initrd /initramfs-3.4.56.imgtitle CentOS (2.6.32-358.14.1.el6.i686)        root (hd0,0)        kernel /vmlinuz-2.6.32-358.14.1.el6.i686 ro root=UUID=2c06f495-2f8c-4930-8968-9c612d32edc1 rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet        initrd /initramfs-2.6.32-358.14.1.el6.i686.imgtitle CentOS (2.6.32-358.el6.i686)        root (hd0,0)        kernel /vmlinuz-2.6.32-358.el6.i686 ro root=UUID=2c06f495-2f8c-4930-8968-9c612d32edc1 rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet        initrd /initramfs-2.6.32-358.el6.i686.img

5. restart the system and view the kernel

# reboot# uname -r3.4.56

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.