Ubuntu Update kernel switch kernel boot

Source: Internet
Author: User


1. Review the kernel commands that need to be updated:

Apt-cache Search Linux

The command will show all the kernels that can be obtained


2. Install the kernel, assuming you want to install a kernel of 2.6.39-0, use the following command

sudo apt-get install linux-headers-2.6.39-0-generic linux-image-2.6.39-0-generic


After installation, reboot can, after reboot, both start with the new kernel

===============================================================

If you want to switch back to the original kernel, for example, 3.2, use the command first

1. grep menuentry /boot/grub/grub.cfg
This command displays the order of the kernel, for example, shown as:

Menuentry ' Ubuntu, with Linux 3.2.17experimental '--class Ubuntu--class gnu-linux--class GNU--class os {menuentry ' Ubun Tu, with Linux 3.2.17experimental (recovery mode) '--class ubuntu--class gnu-linux--class GNU--class os {menuentry ' Ubu NTU, with Linux 3.2.17-chipsee '--class ubuntu--class gnu-linux--class GNU--class os {menuentry ' Ubuntu, with Linux 3.2 .17-chipsee (Recovery mode) '--class ubuntu--class gnu-linux--class GNU--class os {menuentry ' Ubuntu, with Linux 3.2.0- 23-generic '--class ubuntu--class gnu-linux--class GNU--class os {menuentry ' Ubuntu, with Linux 3.2.0-23-generic (Recov ery mode) '--class ubuntu--class gnu-linux--class GNU--class os {menuentry "Memory Test (memtest86+)" {menuentry "Memor Y Test (memtest86+, serial console 115200) "
2. If you want to start with the 3.2.17 kernel version,/etc/default/grub the file in the

Grub_default=0

Switch

grub_default=2 after saving

3. Then use the command sudo update-grub

4.重启后,使用命令uname -a查看,内核即为你想要的内核

Ubuntu Update kernel switch kernel boot

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.