Ubuntu update kernel switch kernel startup, ubuntu update kernel Switch

Source: Internet
Author: User

Ubuntu update kernel switch kernel startup, ubuntu update kernel Switch


1. view the kernel commands to be updated:

Apt-cache search linux

This command will display all available kernels


2. Run the following command to install the kernel: 2.6.39-0.

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


After installation, reboot is enabled. After restart, It is started with a new kernel.

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

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

1. grep menuentry /boot/grub/grub.cfg
This command displays the kernel sequence, for example:

menuentry 'Ubuntu, with Linux 3.2.17experimental' --class ubuntu --class gnu-linux --class gnu --class os {menuentry 'Ubuntu, with Linux 3.2.17experimental (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {menuentry 'Ubuntu, 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 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {menuentry "Memory test (memtest86+)" {menuentry "Memory test (memtest86+, serial console 115200)"
2. If you want to start with the 3.2.17 kernel version

GRUB_DEFAULT = 0

Change

GRUB_DEFAULT = 2 after saving

3. Run the sudo update-grub command.

4. After the restart, run the command uname-a to view the desired kernel.

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.