Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save elliotwutingfeng/7d609e7bdec530b0f7e4b5e9cffc2c3c to your computer and use it in GitHub Desktop.
Save elliotwutingfeng/7d609e7bdec530b0f7e4b5e9cffc2c3c to your computer and use it in GitHub Desktop.
These are the decryption instructions for if you mistype your passphrase (and end up in GRUB rescue mode) when logging in to a LUKS encrypted Linux installation.

LUKS decryption mistype recovery instructions

These are the decryption instructions for if you mistype your passphrase (and end up in GRUB rescue mode) when logging in to a LUKS encrypted Linux installation.

Tested on Manjaro Linux.

grub rescue> ls # look for encrypted partition to mount, for example (hd0,gpt2)
grub rescue> cryptomount (hd0,gpt2) # mount the encrypted partition
Attempting to decrypt master key..
Enter passphrase for hd0,gpt2 (<disk uuid>): # Enter your encryption password
..
Slot xxx opened # Output on success, xxx can be any random number
grub rescue> insmod normal
grub rescue> normal # After this command, system should boot as per normal

Credits: https://blog.stigok.com/2017/12/30/decrypt-and-mount-luks-disk-from-grub-rescue-mode.html

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment