entOS:
1、开机过程按上下箭头键,让系统不要进入到引导程序中,
2、按 'e' 进入到编辑模式
3、找到linux16开始的首行,在末尾加入rw init=sysroot/bin/sh
4、按ctrl+x进入引导程序:
5、先输入chroot /sysroot,再输入passwd 然后输入新密码(2次)
6、输入touch /.autorelabel 更新系统信息
7、ctrl+d 或者exit ,然后reboot重启
entOS:
1、开机过程按上下箭头键,让系统不要进入到引导程序中,
2、按 'e' 进入到编辑模式
3、找到linux16开始的首行,在末尾加入rw init=sysroot/bin/sh
4、按ctrl+x进入引导程序:
5、先输入chroot /sysroot,再输入passwd 然后输入新密码(2次)
6、输入touch /.autorelabel 更新系统信息
7、ctrl+d 或者exit ,然后reboot重启