One, crack root password solution
The first is how to retrieve the root password under CentOS:
We first install a CentOS for testing:
Select the feature software to install
Beginning to forget CentOS root password back, we restart the system, press
ESC to enter the list of system options, and then we can see the current system information, and then we press E-key (
Note: Not a carriage return oh )
Then we
Select the second item-kerneland continue to press "E"
Enter single or 1 after RHGB quiet
, then return
Then return to the interface, then press
b to reboot the
system
After the launch, we found that direct access to the system, no need to enter the account and password
After entering, we can modify the password according to
passwd root .
Two, forget the root password solution
1. Press E to edit when the kernel entry is seen on the boot
2, find Linux16 This paragraph by the end to the tail line after the UTF-8 input red arrow refers to the content (which console is in the VMware virtual machine when you use the computer to crack the password used physical machine do not add this specific situation and specific treatment) Ctrl+x save!
3, Mount root partition reset root password, SELinux service startup state solution
4, restart after the worry may need to wait for 5 minutes in this period may also have the error message to ignore it! While waiting for a miracle
To appear on the ~ (???) /~! (This is the result of what you expected)