Esta página aún no está disponible en su idioma local. Estamos trabajando arduamente para agregar más versiones de idiomas. Gracias por tu apoyo.

On this page
Help Center/ Elastic Cloud Server/ Troubleshooting/ Linux ECS Issues/ How Do I Change the Default Boot Kernel in Ubuntu?

How Do I Change the Default Boot Kernel in Ubuntu?

Updated on 2023-03-30 GMT+08:00

Scenarios

The operations described in this section only apply to ECSs running Ubuntu 16.04.

Procedure

  1. Assume that the desired default kernel to boot from is the third one. Open the /etc/default/grub file and change the value of GRUB_DEFAULT to "1>2", as shown in Figure 1.
    Figure 1 Modifying GRUB_DEFAULT
    • 1 in 1>2 indicates the second entry of the main menu.

    • 2 in 1>2 indicates the third entry of the submenu.

    • There is no space before and after the greater-than sign (>) in 1>2.
    • Use a set of quotation marks to enclose 1>2.
  2. Run the following command to rebuild a grub configuration file:

    # update-grub

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback