1. First, start the system, enter the power-on interface, and press “e” in the interface to enter the editing interface. As shown in figure: h2>
2. Next, go to the edit screen and use the up and down keys on the keyboard to move the cursor down to the number of lines starting with “Linux16”. At the end of the line, type init=/bin/sh. As shown in figure: h2>
3. Then, after typing, press the shortcut key: Ctrl+x to enter the single-user mode.
4. Next, in the position where the cursor is flashing (the position of the last line), type: mount -o remount,rw/(note: there is a space between mount and -o and a space between rw and /, cannot be omitted), and press Enter on the keyboard when finished. As shown in figure: h2>
5. Then, in the pop-up is to change the password in the content of operation, in the position of the cursor blink Enter a new password (password when the input is not show, just like have no reaction, only need to remember your input password is correct, the password must be no less than 8 bits, otherwise it will fail to modify), after the completion of the press of the keyboard Enter key (Enter). As shown in figure:
h2>
solves this problem by linking
6. Then, after the password change is successful, passwd… , indicating that the password was changed successfully.
Next, in the position where the mouse is blinking (in the last line) type: touch /. Autorelabel (note: touch and/followed by a space). When finished, press the Enter key on the keyboard
8. Password changed successfully, you can log in
successfully
Read More:
- Can’t multiply sequence by non int of type ‘float’
- A simple method of generating secret key by GIT and configuring SSH public key
- ValueError: not enough values to unpack (expected 2, got 0)
- The computer can’t turn on ERROR: NO BOOT DISK HAS BEEN DETECTED OR THE DISK HAS FAILED
- Mobile phone code termux
- Solve the problem of syntax error: unexpected end of file or syntax error near unexpected token ` fi ‘error
- When IntelliJ idea is programmed, 1. Black thick line or black cursor appears; 2. The solution of carriage return unable to wrap. (practical recommendation method 2)
- svn: E230001: Server SSL certificate verification failed: certificate issued
- Mac bigsur cannot create other directory solutions in the root directory (M1 chip is also applicable)
- Error after JDK reassembly: Error:opening registry key ‘Software/JavaSoft/JRE’
- Mac: how to show hidden files under Apple Mac operating system
- Solution of invalid username / password; login denied error in Oracle Database Foundation
- [solution] install L2TP and related settings in Ubuntu 18.04
- Visual studio code shortcut
- How to solve the problem of “please enter a commit message to explain why this merge is necessary” when git merges branches?
- Authentication token manipulation error appears in ubuntu18.04 password modification
- Error 1045 (28000): solution to access denied for user ‘root’ @’localhost ‘(using password: no)
- Differences between VI and VIM in Linux
- After editing a file with the VIM command in xshell, the ESC key cannot be output,,,
- C + + pauses the black window system (“pause”); (get ch(), getchar(), system (pause)’s connection and difference