From: Milan Broz <gmazyland@gmail.com>
To: wpc95 <wpc95@gmx.de>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] LUKS keyslot invalid
Date: Sun, 30 Dec 2012 15:38:26 +0100 [thread overview]
Message-ID: <50E051E2.1060408@gmail.com> (raw)
In-Reply-To: <4FE1ACE321FB45CABE8FE1C09A8D060B@ws1xp>
On 12/29/2012 11:03 PM, wpc95 wrote:
> i am running LUKS for the last years without any problems, but now have
> encountered a strange behaviour of cryptsetup. A workstation has 4
> SATA-drives, 3 of them encrypted with LUKS. Running Ubuntu 10.04 (cryptsetup
> 1.1.0-rc) all encrypted drives can be opened and accessed without any
> hassle. Running Ubuntu 12.04 (cryptsetup 1.4.0) LUKS claims for 2 of the
> encrypted drives, that 'LUKS keyslot 4 is invalid'. Due to the fact that the
> option 'repair' was launched with cryptsetup 1.4.1, i have started the
> computer with an actual live-linux. But the result with cryptsetup 1.5.0 is
> the same as with 1.4.0: it claims, that 'LUKS keyslot 4 is invalid. Invalid
> offset 1576471435 [first drive] 3746914134 [second drive] in keyslot 4.' The
> repair option says that repair failed with code 22 and a manual repair is
> required. How is a 'manual repair' done and why does the error does not
> appear with cryptsetup 1.1.0-rc? I have - of course - backups of the
> 4K-headers and the complete data of all drives. :-)
Previous versions silently ignored error (so once you use that invalid
keyslot, you risk something is overwritten).
(But workaround is downgrade cryptsetup :)
But it is strange that repair cannot fix this...
If you send me (privately) header backup I can fix the header
(and add check to code so repair can do that automatically).
I do not need password, perhaps not even the keyslot data (so first 4kB should
be enough)
Please note that backup of 4kB is only visible header, the real keyslot
data are located next to this area.
If you do not want to send this, please post luksDump and
log from repair command with added --debug (it should print more info).
You can also try keyslot checker in source code (written by Arno).
But I think here we need repair the header first.
Thanks,
Milan
next prev parent reply other threads:[~2012-12-30 14:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-29 22:03 [dm-crypt] LUKS keyslot invalid wpc95
2012-12-30 14:38 ` Milan Broz [this message]
2012-12-31 11:26 ` Milan Broz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50E051E2.1060408@gmail.com \
--to=gmazyland@gmail.com \
--cc=dm-crypt@saout.de \
--cc=wpc95@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox