1. After post, when the Grup boot interface appears, press the E key to enter edit mode, as shown in
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/8D/68/wKiom1ibAjPy6zBwAAAully3l2E656.png-wh_500x0-wm_ 3-wmp_4-s_2278038312.png "title=" 1.PNG "alt=" Wkiom1ibajpy6zbwaaaully3l2e656.png-wh_50 "/>
2. Move the cursor to the line with the word "kernel" and press the E key to edit it.
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/8D/66/wKioL1ibAwWi0rgUAAA3YQFoigU836.png-wh_500x0-wm_ 3-wmp_4-s_4166079860.png "title=" 2.PNG "alt=" Wkiol1ibawwi0rguaaa3yqfoigu836.png-wh_50 "/>
3. Press a space at the end, enter the number 1, and press ENTER to return to the previous interface. The change means that the kernel is loaded, at the end of the parameter 1, the command is not recognized, so it will pass this parameter 1 to the first process after the system starts, and the system starts the first process is Init,init 1 is into single-user mode.
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/8D/68/wKiom1ibBYnQopaOAAAnj9JsV2E784.png-wh_500x0-wm_ 3-wmp_4-s_2831354072.png "title=" 3.PNG "alt=" Wkiom1ibbynqopaoaaanj9jsv2e784.png-wh_50 "/>
4. (1). Press the B key to start the system, after the boot is complete. Note that the prompt is the # number, indicating that it is already root. Change the password directly with the command.
(2) Reboot the system, you can log in with the password you just changed
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/8D/69/wKiom1ibF4KRzQYHAAAP6OD7ZT4128.png-wh_500x0-wm_ 3-wmp_4-s_2125755564.png "title=" 4.PNG "alt=" Wkiom1ibf4krzqyhaaap6od7zt4128.png-wh_50 "/>
This article from "Peng Brother's Blog" blog, declined reproduced!
How to hack linux boot password