Reboot your computer.
Press SHIFT at the grub prompt.
Select your image.
Highlight the line that begins kernel and press e to edit

Go to the very end of the line, change the ro to rw and add init=/bin/bash, press enter, then press b to boot your system. Your system will boot up to a passwordless root shell.

Type in passwd
Set your password.
Type in reboot

Leave a Reply

Your email address will not be published. Required fields are marked *