[dm-crypt] Can't mount my LUKS crypted disk after kernel update / reboot
arno at wagner.name
Sun Dec 16 22:27:37 CET 2012
On Sun, Dec 16, 2012 at 07:11:22PM +0100, Philipp Durrer wrote:
> dmsetup table --showkeys
> truecrypt1_1: 0 204288 crypt serpent-xts-plain64
> 256 7:0 256
> truecrypt2: 0 10485248 crypt twofish-xts-plain64
> 256 253:3 0
> truecrypt1_0: 0 204288 crypt twofish-xts-plain64
> 256 253:0 0
> truecrypt1: 0 204288 crypt aes-xts-plain64
> 256 253:1 0
> truecrypt2_0: 0 10485248 crypt aes-xts-plain64
> 256 7:1 256
> stuff: 0 11664377856 crypt aes-xts-essiv:sha256
> 0 9:126 4096
Woah, stop! Or rather too late. Everybody in the internet now has
your master keys and can decrypt your devices!
> > So IMHO the problem is in MD layer, ext4, or in some unexpected device
> > rewrite during update or so.
> that's what I think aswell
It has to be. LUKS does nto decrypt is anything at all with it is
broken. Unlike plain dm-crypt that will happily decrypt with
everything wrong and produce just random-looking stuff.
Now, if you look into the FAQ, item 6.12, you will see that the
satart of the md device has to be intact for decyption to happen.
Also, what superblock format did you use?
"mdadm --examine <some raid component>" should tell you.
The idea is that if it is 1.1 or 1.2 then the md superblock
are also at the beginning. Overwrites typicallyt happen
at the beginning, not somewhere in there,
Just to be sure: Does maybe the new kernel not support the
filesystem you are using? Maybe this is a module-loading
What you also can try is to specify an alternate superblock
for mount. The option for that is e.g. "sb=131072" (from the
> I did check the keyslot with the keyslot_checker in misc, did report that
> everything looks fine.
> Did aswell check the disk with hd tool and looks fine aswell all random
> data up to 0x20000 where data begins.
> If no other ideas come to mind until tomorrow I will reformat the disks I
Well, it would be nice to find out what caused this, but
I can understand that you do not want to invest too much more
Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno at wagner.name
GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718
One of the painful things about our time is that those who feel certainty
are stupid, and those with any imagination and understanding are filled
with doubt and indecision. -- Bertrand Russell
More information about the dm-crypt