If we forget our Linux root password, we can change it by changing grub's boot options.
But in this case, we also set a grub password and forgot both passwords. How can we recover both?
grublinuxpasswordroot
If we forget our Linux root password, we can change it by changing grub's boot options.
But in this case, we also set a grub password and forgot both passwords. How can we recover both?
Best Answer
Boot from a LiveCD, then mount the
/
harddrive partition. You can nowchroot
into your harddrive and just runpasswd
as root there changing the rootpw
. That's also the way to change to grub password.