I. What is single-user mode
Single-user mode is the system in the most original state, all network services are not started, the file system is not mount, only the most basic system module is loaded, and then started by kernel into the command line state. This state is called single-user mode.
Two. The role of single-user mode
The point of the single-user mode is that you can change your system when your system is ready to go in due to incorrect settings or other problems. It can also be called the system Recovery model
Three. When to use this mode
1. The system's boot file error occurred;
2. The administrator has forgotten the root password;
Four. How to enter single user mode
Before entering grub, we must first understand:
Press E to edit the command before starting
Modify kernel parameters before you press A to start
Press C to open the command line
1. Press any key to enter grub within 3 seconds of opening the system process;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/71/51/wKiom1XLA5jw_gEAAAEsvYGKqpI037.jpg "title=" cxvbi{ T7F_AL{]M4PN) F) 33.png "alt=" Wkiom1xla5jw_geaaaesvygkqpi037.jpg "/>
2. Press the E key to enter , there are 3 rows of east, then the three lines of what is the meaning of each?
First line: The current setting starts from the first partition of the first hard disk
Second line: Current default kernel version
Third line: Kernel image currently in use
Entering single-user mode requires modifying the kernel, moving the cursor to the second line, pressing E to enter the kernel configuration file
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/4E/wKioL1XLBo7jGk4iAAG7HaicDNM055.jpg "title=" 2.png " alt= "Wkiol1xlbo7jgk4iaag7haicdnm055.jpg"/>
3. Press the E key to enter after type 1 (or s) at the end of the last line and enter 650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M00/71/52/ Wkiom1xlbwowx910aaekie8xyoa132.jpg "title=" 3.png "alt=" Wkiom1xlbwowx910aaekie8xyoa132.jpg "/>
4. Press B to restart;
5. Wait for a period of time to enter the single-user mode;
6. Type passwd to change the password
So it's all done! We have the desire to enter the single-user mode! 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0003.gif "alt=" J_0003.gif "/>
This article from "Samoyed Sadness" blog, reproduced please contact the author!
Single-user mode for Linux