Replace the kernel in ubuntu, and replace the kernel in ubuntu.

Source: Internet
Author: User

Replace the kernel in ubuntu, and replace the kernel in ubuntu.

First download the Linux kernel source code, and store it in the/usr/src directory, here for testing, is in ubuntu14.04, download the kernel is linux-3.14.10

2. Then enter the downloaded kernel linux-3.14.10 root directory, execute sudo make menuconfig, and then

Select the load item and copy the. config file under ubuntu14.04's original kernel to the linux-3.14.10 for security.

3. Save and exit menuconfig, and then execute make mrproper (do not do it. It is used to clear the previous configuration file to prevent subsequent kernel compilation from being affected)

4. Execute make deb (determine the dependency), make clean (clear the compilation file), make bzImage (compile the kernel), and make modules (generate the module, which is the same as generating the kernel, time), and then install the module

And run make modules_install.

5. If you are running in a virtual machine, you also need to execute mkinittramfs-o/boot/initrd-linux3.14.10.img (build the ramdisk file to be loaded ).

6. Start to install the kernel, execute make install, and automatically generate the grub boot program and reboot at the end of the installation. This test is completed on Lenovo computer, when you enter grub, press F2 (You may not be able to solve the problem and make improvements later). Then, run uanme-r on the terminal to query the kernel version. The preceding commands are all prefixed with sudo, so that the commands can be executed with the root permission.

 

Reference; http://www.linuxidc.com/Linux/2013-06/85335p5.htm

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.