Linux:centos Kernel Upgrade

Source: Internet
Author: User

CentOS Kernel Upgrade

CentOS Upgrade 2.6 kernel to 3.10 in Yum's Elrepo source, there are 2 kernel versions of M ain L ine (3.13.1), L ONG-T erm (3.10.28), long-time for long-term support.

See current kernel version

Uname-r

Installing Elrepo(http://elrepo.org/tiki/tiki-index.php)

    • Import Public key
RPM--import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
    • Installing Elrepo to CentOS-6.5
RPM-UVH http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm

installing the long-time version kernel (http://elrepo.org/linux/kernel/el6/i386/RPMS/)

Yum--enablerepo=elrepo-kernel Install Kernel-lt-y

Edit grub.conf

Vim/etc/grub.conf

# grub.conf generated by Anaconda
#
# Note that you don't have the to rerun grub after making changes to the This file
# notice:you has a/boot partition. This means
# all kernel and INITRD paths is relative to/boot/, eg.
# root (hd0,0)
# kernel/vmlinuz-version RO Root=/dev/sda3
# initrd/initrd-[generic-]version.img
#boot =/DEV/SDA
Default=0#将1修改为0
Timeout=5
Splashimage= (hd0,0)/grub/splash.xpm.gz
Hiddenmenu
Title CentOS (3.10.105-1.el6.elrepo.i686)
Root (hd0,0)
kernel/vmlinuz-3.10.105-1.el6.elrepo.i686 ro root=uuid=a8b6e96e-a14e-4907-9c36-e608dc2fe13a 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.10.105-1.el6.elrepo.i686.img
Title CentOS 6 (2.6.32-642.el6.i686)
Root (hd0,0)
kernel/vmlinuz-2.6.32-642.el6.i686 ro root=uuid=a8b6e96e-a14e-4907-9c36-e608dc2fe13a 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-642.el6.i686.img


Reboot, view kernel

Linux:centos Kernel Upgrade

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.