Ubuntu Version:
22.04
Desktop Environment (if applicable):
Problem Description:
Suddenly no longer able to boot into my machine. “No key available with this passphrase” with LUKS suddenly on boot. The issue occured June 5th/6th and after this, I haven’t been able to get into my machine.
My system has a full disk encryption and I have been using it for 6 months, daily without any issues. On June 5th/6th I was working on the machine and I had to install some packages for a project I was working on. I ran sudo apt update && sudo apt --fix-broken install
, all good thus far, I continued working into the night, when I realised the machine was still turned on at 2 AM, I decided to do a force shutoff (pressing the button).
I am 100% confident the password for the encrypted partition is correct, and although the LUKS header appears to be ok, I am unable to get it unlocked after the days mentioned above.
As of now I am out of ideas of what could have happened, or even how to solve it as I am unable to narrow down the cause or even problem.
Thanks for taking the time to read this post.
Relevant System Information:
Luks header dump
LUKS header information
Version: 2
Epoch: 3
Metadata area: 16384 [bytes]
Keyslots area: 16744448 [bytes]
UUID: 8722d52f-b4a2-41be-8cb8-a1523a905d36
Label: (no label)
Subsystem: (no subsystem)
Flags: (no flags)
Data segments:
0: crypt
offset: 16777216 [bytes]
length: (whole device)
cipher: aes-xts-plain64
sector: 512 [bytes]
Keyslots:
0: luks2
Key: 512 bits
Priority: normal
Cipher: aes-xts-plain64
Cipher key: 512 bits
PBKDF: argon2id
Time cost: 4
Memory: 984225
Threads: 4
Salt: 8a 21 33 5b c2 ee 5b b5 01 42 06 45 8b f8 9f eb
8c d2 2d 7c 7d 52 45 f2 87 d1 02 76 c7 10 74 99
AF stripes: 4000
AF hash: sha256
Area offset:32768 [bytes]
Area length:258048 [bytes]
Digest ID: 0
Tokens:
Digests:
0: pbkdf2
Hash: sha256
Iterations: 121138
Salt: c5 20 50 be 2f 57 d4 8a 5b 2c 86 c7 06 0c 79 a4
7a e8 81 81 12 77 cb 50 24 7e a9 c7 2e 5b c1 30
Digest: 49 d8 5a 67 4f c0 aa 4c 48 55 2f 25 c4 41 bc 49
52 91 fe 6e f3 36 47 df 7d d2 8f 34 3b 3c 6b e1
Luks keyslot checker output
Tool: https://gitlab.com/cryptsetup/cryptsetup/-/tree/master/misc/keyslot_checker
Text:
root@2c6489dac96a:~/keyslot_check# ./chk_luks_keyslots -v ~/luksheader.img
parameters (commandline and LUKS header):
sector size: 512
threshold: 0.900000
- processing keyslot 0: start: 0x008000 end: 0x047000
- processing keyslot 1: keyslot not in use
- processing keyslot 2: keyslot not in use
- processing keyslot 3: keyslot not in use
- processing keyslot 4: keyslot not in use
- processing keyslot 5: keyslot not in use
- processing keyslot 6: keyslot not in use
- processing keyslot 7: keyslot not in use
- processing keyslot 8: keyslot not in use
- processing keyslot 9: keyslot not in use
- processing keyslot 10: keyslot not in use
- processing keyslot 11: keyslot not in use
- processing keyslot 12: keyslot not in use
- processing keyslot 13: keyslot not in use
- processing keyslot 14: keyslot not in use
- processing keyslot 15: keyslot not in use
- processing keyslot 16: keyslot not in use
- processing keyslot 17: keyslot not in use
- processing keyslot 18: keyslot not in use
- processing keyslot 19: keyslot not in use
- processing keyslot 20: keyslot not in use
- processing keyslot 21: keyslot not in use
- processing keyslot 22: keyslot not in use
- processing keyslot 23: keyslot not in use
- processing keyslot 24: keyslot not in use
- processing keyslot 25: keyslot not in use
- processing keyslot 26: keyslot not in use
- processing keyslot 27: keyslot not in use
- processing keyslot 28: keyslot not in use
- processing keyslot 29: keyslot not in use
- processing keyslot 30: keyslot not in use
- processing keyslot 31: keyslot not in use
root@2c6489dac96a:~/keyslot_check#
Screenshots or Error Messages:
What I’ve Tried:
- I initially believed it to be a RAM related issue, but I ran memtester for 9 passes / 24 hours, with no RAM issues detected.
- Checked Luks keyslots with https://gitlab.com/cryptsetup/cryptsetup/-/tree/master/misc/keyslot_checker, results appear OK, check relevant information section for ouput.
- Tried to bruteforce the luks header on a different machine with different keyboard layouts (eg, dvorak), in case I had gotten used to making some typos - no luck.
- Tried alternative keyboard layouts, current layout & was set during installation on boot is FI (finnish) - no luck.
- Attempted to access and unlock the drive from a live USB instance also - no luck.