Linux Kernel upgrade centos

Source: Internet
Author: User
Upgrading the Linux kernel to centos is not a negative term! For example, for linux ~ The virtual machine is installed with CentOS 5.5 and the kernel is 2.6.18. I want to upgrade my kernel while I am busy with the call of the party that keeps pace with the times! So du Niang had a bit, but the thing...
Upgrading the Linux kernel to centos is not a negative term! For example, for linux ~ The virtual machine is installed with centos 5.5 and the kernel is 2.6.18. I want to upgrade my kernel while I am busy with the call of the party that keeps pace with the times! So du Niang had a while, but things were always unable to follow the expected trajectory, but life had to continue. feel for yourself! I chose to upgrade www.2cto.com to 2.6.19. 1. download 2.6.19's internal linux-2.6.19.tar.bz2 on the ftp://ftp.kernel.org/pub/linux/kernel/v2.6, cp linux-2.6.19.tar.bz2/usr/src/kernel/cp to/usr/src/kernel (some release versions do not have the kernel directory) 3. extract the tar-jxvf linux-2.6.19.tar.bz2 to the current directory
4. configure the kernel. I suggest there are two methods a, make menuconfig directly, then quit, save B, put/boot/config-2.6.18 directly cp to the root directory. config 5, make 6, make bzImage 7, make modules 8, make modules_install 9, mkinitrd/boot/initrd-2.6.19 2.6.19 10, cp/usr/src/kernel/linux-2.6.19/arch/i386/ boot/bzImage/boot/vmlinuz-2.6.19 www.2cto.com 11, vim/boot/grub. conf # grub. conf generated by anaconda # Note that you do not have to rerun grub after making changes to t His 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/VolGroup00/LogVol00 # initrd/initrd-version.img # boot =/dev/hdadefault = 1 timeout = 15 splashimage = (hd0, 0) /grub/splash.xpm.gz hiddenmenu www.2cto.com title CentOS (2.6.18-194. el5) root (hd0, 0) kernel/vmlinuz-2.6.18-194.el5 ro root =/dev/Vo LGroup00/LogVol00 rhgb quietinitrd/initrd-2.6.18-194.el5.img add your own startup item and kernel title CentOS (2.6.19-lin) root (hd0, 0) kernel/vmlinuz-2.6.19 ro root =/dev/VolGroup00/LogVol00 rhgb quietinitrd/initrd-2.6.19.img OK, done, reboot on it!

 
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.