Single-User mode
1. Restart, in the following interface options, press E
Press E to enter this Grub interface (boot tool)
2. Locate the linux16, change the ' ro ' (read-only) to ' RW ' (read-write), and add init=/sysroot/bin/sh
Press Ctrl+x to start after modification
3. Change the password
Chroot/sysroot//Switch to System environment
lang=en//Modify language display, because the Chinese display garbled
Touch/.autorelabel//It is important that the file must be established
Restart after Setup is complete.
CENTOS6 a total of 7 operating modes in previous versions, from INIT0–INIT6
0---Shutdown
1---Single-user mode
2---Multi-user mode
3---Multi-user mode (no command-line interface with graphical interface installed)
4---Multi-user mode
5---graphical interface
6---Restart
Seven modes across the CENTOS7 version
Rescue mode
1. Select Enter BIOS at startup
2. Select Boot to transfer the CD-ROM to the first line
Press F10 after tuning, enter to confirm restart
3. After reboot, automatically enter the CD-ROM boot screen, select the third item and enter
4. Enter troubleshooting and select the second item
5. Select the first item continue (continue)
Second item: read-only Mount
Third: Skip the shell directly
Item Fourth: Restart
6. Enter the command chroot/mnt/sysimage switch to the original system environment
Enter command passwd ROOT to change password
After changing the password, locate the disc icon in the lower right corner and click the Cancel disc to restart the client after the connection.
Single-user mode and Rescue mode: Linux Learning Third