[dm-crypt] LUKS keyslot invalid - Please help!
gmazyland at gmail.com
Thu Jul 18 20:30:32 CEST 2013
On 18.7.2013 19:33, Ywellc wrote:
> I receive an error message stating that LUKS Keyslot 4, 6, and 7 is invalid. I ran the command again with the debug option:
> Invalid keyslot size 8388608 (offset 1032, stripes 0) in keyslot 4 (beyond data offset 2056) and similar for 6 and 7.
So it means that LUKS header is corrupted. If it is really only keyslot 4,6,7
(and you are using keyslot 0, which is most common) maybe you can fix it.
1) _Backup_ header area (dd first 4MB of disk to some safe place)
2) try to run "cryptsetup repair" on device
(Please use crypsetup 1.6.1 - download some boot/live cd with distro which use it,
e.g. recent Fedora.)
If this fails, you need to run keyslot checker (if real used keyslot
is corrupted as well and you have no header backup, no chance...)
(I am sure someone on list here will help you to do this.)
For more info see section 4.1 (and references) in FAQ
More information about the dm-crypt