Score:0

GRUB fails to decrypt disk (despite correct password), but succeeds on second (manual) attempt in minimal GRUB prompt

cn flag

I was having this issue where (at boot) GRUB prompts me for my disk password, but it always fails (with 'access denied. cryptodisk not found.', though it scrolls by too quickly to see if you don't insert sleeps in the boot config).

As a result, even though I type in the password correctly, I get placed in GRUB's minimal prompt.

However, when trying to unlock the disk manually (using cryptomount (hd0,gpt5) for the fifth partition, or cryptomount -a for all disks), it succeeds!

What's going on? What can I do to fix it?

Score:0
cn flag

It took me ages to notice the subtle signs of this, but it seems like the first few keypresses (be they pressing Escape, Enter or whatever) are being ignored.

Personally, if I press Control a few times before entering my password on boot, it works.

Other people may want to try pressing Backspace a few times (perhaps it's possible that garbage is being entered into the prompt for them).

I don't know the underlying reason and I don't have a fix. However, it could be a buggy BIOS? My laptop is a Lenovo Legion (just in case that brings any search hits for someone).

Hope this helps someone, and perhaps someone else has any clues for proper fixes...

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.