Sometimes in the process of configuring Linux, because some misoperation caused the system to block or suspend the initialization of the system can not enter, often because the configuration file settings are wrong, some files were mistakenly deleted and so on. In this case, the general novice is to re-install (virtual machine does not install white), but in the actual production environment, this processing means most of the time is unacceptable.
In fact, Linux also offers something like Windows Safe Mode, called single-user mode. In this mode, Linux runs in a minimized mode, does not log in remotely, and most non-core services are not loaded during the startup phase and logged in as root.
Here are the entry methods:
1. Start your computer and go to the Grub boot menu
Tap E to enter edit mode, as prompted below
2. Enter edit mode
The content here varies depending on the Linux distribution, installation options, and different machine configurations, but there must be a line near the end such as the Red Box code (which may start with kernel).
Add [space]single at the end and then tap CTRL + X to confirm that Linux is started in this mode (you may be prompted to tap Crtl + D to confirm entering single-user mode and follow the instructions)
At this point, the Linux single user mode is entered.
Linux enters single-user mode