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 Enable My ECS to Boot From the Second Kernel If It Fails to Boot from the First Kernel?

How Do I Enable My ECS to Boot From the Second Kernel If It Fails to Boot from the First Kernel?

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

Scenarios

The operations described in this section apply to ECSs running CentOS or EulerOS with at least two kernels installed.

CentOS 6

  1. Log in to the management console, restart the ECS, and click Remote Login.
  2. When the Booting CentOS screen is displayed, press any key to access the kernel selection screen.
    Figure 1 Booting CentOS
  3. On the kernel selection screen, press the down arrow key to move the cursor to the second row, and press Enter to boot the system from the second kernel.

  4. After the system is booted, run the following command to set the second kernel as the default boot kernel:

    # sed 's/default=0/default=1/' /boot/grub/grub.conf -i

    NOTE:

    The default value of parameter default is 0. In the kernel menu created by the /boot/grub/grub.conf file, entries count from 0. It means that 0 is for the first entry, 1 is for the second, and 2 for the third.

CentOS 7 or EulerOS

  1. Log in to the management console, restart the ECS, and click Remote Login.
  2. On the kernel selection screen, press the down arrow key to move the cursor to the second row, and press Enter to boot the system from the second kernel.

  3. After the system is booted, run the following command to set the second kernel as the default boot kernel:

    # grub2-set-default 1

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback