Lost root password grub

From LinuxNewbie

What do I do if I have forgot root's password (GRUB)?

At the Grub boot menu hit "e"
Select the line that begins with "kernel"
Hit "e" again
Move the cursor to the end of the line and add " single" then hitenter
Press "b" to boot the system
At the bash prompt that comes up, type "passwd" then hit enter
Now enter your new password twice
You should receive a notice stating "All authentication tokens updatedsuccessfully". This confirms your password has been changed.
Now press control-alt-delete to reboot
Logon with new password to verify




Worse method:
At the Grub boot menu hit "e"
Select the line that begins with "kernel"
Hit "e" again
Move the cursor to the end of the line and add " init=/bin/bash" then hit enter
Press "b" to boot the system
At the bash prompt that comes up, type the following: "mount /proc" then hit enter
Next type "mount / -o rw,remount" then hit enter
Next type "passwd" then hit enter
Now enter your new password twice
You should receive a notice stating "All authentication tokens updatedsuccessfully". This confirms your password has been changed.
Next type "mount / -o ro,remount" then hit enter
Now press control-alt-delete to reboot
Logon with new password to verify

Credit to Buddha and his LUG