Grub2
Select e for edit
come to the line linu16 end UTF-8 type rd.break
then ctrl + x
switch_root:/# mount -o remount,rw /sysroot switch_root:/# chroot /sysroot
sh-4.2# echo “New-root-password” | passwd --stdin root or #passwd root #passwd sh-4.2# touch /.autorelabel (Note :relabel spelling is important) # exit # exit restarted the system