All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: Ywellc <ywellc@yahoo.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] LUKS keyslot invalid - Please help!
Date: Thu, 18 Jul 2013 20:30:32 +0200	[thread overview]
Message-ID: <51E83448.8010401@gmail.com> (raw)
In-Reply-To: <1374168809.51551.YahooMailBasic@web163904.mail.gq1.yahoo.com>


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
http://code.google.com/p/cryptsetup/wiki/FrequentlyAskedQuestions#6._Backup_and_Data_Recovery

Milan

  reply	other threads:[~2013-07-18 18:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-18 17:33 [dm-crypt] LUKS keyslot invalid - Please help! Ywellc
2013-07-18 18:30 ` Milan Broz [this message]
2013-07-18 18:43 ` Arno Wagner

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=51E83448.8010401@gmail.com \
    --to=gmazyland@gmail.com \
    --cc=dm-crypt@saout.de \
    --cc=ywellc@yahoo.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.