I am following this guide to set up a GRUB 2 password. I ran grub-mkpasswd-pbkdf2
, entered a password, and the hash was displayed on screen. Then I ran vim
.
Oops.
Vim filled the whole terminal, so my hash was no longer on the screen. I can't scroll up to see it. It's lost. I'm fine with running grub-mkpasswd-pbkdf2
again, but I want to be sure: is the hash I made before stored anywhere? In a file, or written to anywhere besides stdout? Is there any way to retrieve it without running grub-mkpasswd-pbkdf2
again with the same input? I want to make sure I delete all copies of it except where it's supposed to be, because I don't want it to leak.
Ubuntu documentation says "[grub-mkpasswd-pbkdf2] converts your desired password into a very long alphanumeric code which is placed in the GRUB 2 files." Where in the GRUB 2 files? I'm going hunting.
Thank you!