Steps to enter the single-user mode of the Galaxy Kirin server system


Foreword: For those who have forgotten the password, the system startup cannot load normally (1. The wrong content of the fstab file causes the system startup to get stuck, 2. The deployed application uses the so library with the same name as the system, resulting in abnormal calls and the system gets stuck at startup. , 3. There is a problem starting a certain service, causing the system to start stuck) and other problems. You need to enter the single-user mode of the system to modify and troubleshoot the file content.
For the system, SP1, SP2, SP3, x86 and arm architectures are applicable.

1. Edit grub boot

Start the host, enter the grub boot interface, and press e to edit the grub boot.
Insert image description here

2. Enter grub username and password

Enter the interface shown below, which is the security protection mechanism of grub encryption. Enter the account: root and password: Kylin123123;
Insert image description here

3. Delete related parameters and add console=tty0 init=/bin/bash

In the line starting with linux, remove the "rhgb quiet quiet" parameter. Then add the "console=tty0 init=/bin/bash" parameter in the last line;
Before modification:
Insert image description here
After modification:
Insert image description here

4. Press Ctrl+x or F10 to boot load

Then press "ctrl+x" or "F10" keys to proceed to the next step and enter single-user mode. As shown in the following figure, [root@localhost /]# indicates successful entry.
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_45754407/article/details/134545764