破密码:
开机菜单栏第一栏按e,在linux16行尾,加入rd.break console=tty0
ctrl +x继续启动
mount -o remount,rw /sysroot #重新挂载sysroot
chroot /sysroot #挂载根到实际root下
passed #设置密码
touch /.autorelabel #重新建立打标文件
exit #退出
exit #退出
破密码:
开机菜单栏第一栏按e,在linux16行尾,加入rd.break console=tty0
ctrl +x继续启动
mount -o remount,rw /sysroot #重新挂载sysroot
chroot /sysroot #挂载根到实际root下
passed #设置密码
touch /.autorelabel #重新建立打标文件
exit #退出
exit #退出
转载于:https://www.cnblogs.com/dianzixiaoming/p/5593928.html