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?
Boot from a LiveCD, then mount the / harddrive partition. You can now chroot into your harddrive and just run passwd as root there changing the root pw. That's also the way to change to grub password.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
3 years ago
1 year ago