Von einer Live-CD aus geht es noch auf?
Das Tastaturlayout macht regelmäßig Probleme nach Updates, aber sonst ist da eigentlich nichts bekannt. Manchmal funktioniert die Tastatur komplett nicht, weil ein Modul fehlt, aber dann stehst du beim Passwortprompt und kommst gar nicht weiter, also auch kein falsches Passwort-Fehler oder so.
Wenn es von der Live-CD noch aufgeht, reicht vielleicht chroot, checken ob apt Update alles klar ist, update-initramfs.
Du kannst mit cryptsetup luksAddKey ein einfaches Passwort hinzufügen das bei jedem Layout akzeptiert werden muesste (z.B. foobar
). Wenn du dem Problem auf die Schlichte gekommen bist kann das Passwort wieder entfernt werden. Wegen dem Tastaturlayout füge ich meine Passphrase doppelt zu, so daß die Tastenfolge sowohl im DE- als auch US-Layout von LUKS akzeptiert wird.
Wenn gar nichts mehr geht musst du den LUKS Header mal mit hexdump -C /dev/luks | less
auf offensichtliche Beschädigung untersuchen. Da müssen ab dem Offset 0x1000 bis 0x203ff ganze 128KiB an Zufallsdaten kommen. Wenn darin irgendwas plaintextmäßiges auftaucht, ist der Header beschädigt worden. Da geht dann nichts mehr ohne ein Backup.
Beispiel intakter Header
00000000 4c 55 4b 53 ba be 00 01 61 65 73 00 00 00 00 00 |LUKS....aes.....|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 00 00 00 00 00 00 00 00 78 74 73 2d 70 6c 61 69 |........xts-plai|
00000030 6e 36 34 00 00 00 00 00 00 00 00 00 00 00 00 00 |n64.............|
00000040 00 00 00 00 00 00 00 00 73 68 61 32 35 36 00 00 |........sha256..|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000060 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 20 |............... |
00000070 d0 b1 b6 15 29 2a 05 09 9f d5 0f 94 64 9c 8a ad |....)*......d...|
00000080 da 76 74 90 61 ac 9d 15 3e e7 30 93 ce 69 77 4c |.vt.a...>.0..iwL|
00000090 ce 63 48 cb a7 12 c4 c9 ed 74 cd f6 0f cd 85 d0 |.cH......t......|
000000a0 8a 9c 2f d9 00 03 51 16 34 32 64 39 35 39 34 36 |../...Q.42d95946|
000000b0 2d 65 30 36 61 2d 34 36 63 37 2d 39 62 66 66 2d |-e06a-46c7-9bff-|
000000c0 63 32 65 38 63 64 33 34 61 30 62 65 00 00 00 00 |c2e8cd34a0be....|
000000d0 00 ac 71 f3 00 35 11 68 8a 19 e9 01 fe aa 3c 7c |..q..5.h......<||
000000e0 45 23 da 23 7a ea df db a6 63 7f c8 50 fd 58 21 |E#.#z....c..P.X!|
000000f0 45 f9 40 bc 98 53 3e 13 00 00 00 08 00 00 0f a0 |E.@..S>.........|
00000100 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000120 00 00 00 00 00 00 00 00 00 00 01 08 00 00 0f a0 |................|
00000130 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000150 00 00 00 00 00 00 00 00 00 00 02 08 00 00 0f a0 |................|
00000160 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000180 00 00 00 00 00 00 00 00 00 00 03 08 00 00 0f a0 |................|
00000190 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001b0 00 00 00 00 00 00 00 00 00 00 04 08 00 00 0f a0 |................|
000001c0 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001e0 00 00 00 00 00 00 00 00 00 00 05 08 00 00 0f a0 |................|
000001f0 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000210 00 00 00 00 00 00 00 00 00 00 06 08 00 00 0f a0 |................|
00000220 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000230 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000240 00 00 00 00 00 00 00 00 00 00 07 08 00 00 0f a0 |................|
00000250 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
Beispiel intaktes Keymaterial (KeySlot 0) [Ausgabe gekürzt]
00001000 b2 9b 75 af e3 07 1e f3 81 3c 3e b5 40 ba 0e d5 |..u......<>.@...|
00001010 f9 3d 06 96 43 ea 68 7d 81 bf 32 bf ae e0 af cd |.=..C.h}..2.....|
00001020 a0 4a ea 8f 3c c0 f9 bc a8 ee a7 c1 34 32 89 bb |.J..<.......42..|
00001030 f7 56 b2 ae 3c 44 26 b5 57 91 42 54 64 67 60 d9 |.V..<D&.W.BTdg`.|
00001040 a8 fd 31 5b 89 b3 eb c5 f7 5b 84 fa 7a c7 9f ff |..1[.....[..z...|
00001050 8c 25 ff c3 b1 f3 29 b5 b9 2a ae f1 d6 02 46 b1 |.%....)..*....F.|
[...]
000203a0 1e 81 21 fc c2 cc 44 18 f3 eb f1 91 a1 1a c9 cb |..!...D.........|
000203b0 51 a1 54 06 13 b2 f2 7a 5f 32 4e 31 49 e0 da 0c |Q.T....z_2N1I...|
000203c0 0b bb e8 fc 6c ad 0e ec 94 05 67 f5 6a 19 88 41 |....l.....g.j..A|
000203d0 c1 f3 95 4d 21 fd 06 3a 86 a1 13 97 f0 92 58 a6 |...M!..:......X.|
000203e0 5f 06 df 11 fe 75 ea 5f 3b ca cf 00 04 04 20 1e |_....u._;..... .|
000203f0 cf 98 96 aa 55 d0 df 88 77 97 c8 0d 74 c8 67 31 |....U...w...t.g1|
00020400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
.
Was auch noch sein könnte, ist daß das Modul für den verwendeten Cipher fehlt. Benutzt du da irgendwas exotisches? Bei Whirlpool gabs mal eine inkompatible Änderung des Ciphers aber das Thema sollte eigentlich seit 4+ Jahren gegessen sein... (Problem besteht theoretisch weiter aber keiner hat mehr so alten LUKS-Header der davon betroffen ist)