[dm-crypt] unlock luks volume using valid keyslot

Oko Hid randomwalker0201 at gmail.com
Tue Jun 28 12:27:19 CEST 2016


Dear Milan,
and dm-crypt members

Thank you for your quick response.
>From now, I try to repair my hdd referring your advice, carefully.

Later, I will report the result.

Thank you, again.


2016-06-28 19:11 GMT+09:00 Milan Broz <gmazyland at gmail.com>:
> On 06/28/2016 07:47 AM, Oko Hid wrote:
>> Dear dm-crypt members,
>>
>> Please teach me how to unlock the luks partition using valid keyslot.
>
> ...
>
>
>> # Invalid offset 3012998038 in keyslot 4 (beyond data area offset 4096).
>> LUKS keyslot 4 is invalid.
> ...
>
>> The output message shows the addresses of keyslots, and
>> of keyslot 4 may be invalid.
>> (However, 0 seems ok ... I wish.)
>>
>> So, how can I do for this situation?
>> Is it possible to access the partition and data using Keyslot 0 ?
>
> Backup you header manually (just dd 4MB of the device).
> dd if=<device> of=backupfile.img bs=1M count=4
> (Do not skip this step, really :)
>
> Then run "cryptsetup repair <device>". It should fix slot offsets
> and you should be able to access it again.
>
> Milan
>


More information about the dm-crypt mailing list