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?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
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.