天天看點

Linux Single User Mode

a. 開機按 shift 進入grub

Linux Single User Mode

in fact: "generic" or "recovery mode" whichever is ok!

b. "e"

Linux Single User Mode

c. ctrl+x or f10

Linux Single User Mode

d. poweroff

Linux Single User Mode

but:  shell> reboot -f            /// you can make it!

a. grub

Linux Single User Mode

b. "e" , 末尾輸入:空格 1

Linux Single User Mode

c. "b"  boot

Linux Single User Mode
Linux Single User Mode
Linux Single User Mode

<a target="_blank" href="http://www.itzgeek.com/how-tos/linux/centos-how-tos/single-user-mode-in-centos-7-rhel-7.html">boot your system in single user mode.</a>

chroot your system

reset the root password.

update selinux information.

exit chroot

reboot your system.

login with new password.

that’s all.

繼續閱讀