From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] LUKS keyslot 4 is invalid
Date: Wed, 26 Nov 2014 00:15:16 +0100 [thread overview]
Message-ID: <20141125231516.GA21902@tansi.org> (raw)
In-Reply-To: <CAKG3i5pcUvfawK=yUN8L4Lt=5iXY1KJp9FcTR4T12Uj6Nj12Lg@mail.gmail.com>
Then do it manually.
1. Look up the header size. It should be either 1'052'672 Bytes or 2MiB.
What you need is the key-size.
cryptsetup luksDump <device>
gives
...
MK bits: 256
...
for 1'052'672 Bytes or the same with 512 for 2MiB.
If that does nto work, and you do not know the size of your mater
key, dump 2MiB. Note: Do not change the filesystem if you
want to restor a header that may be too large! With that,
resyoting up to 1MiB of the filesystem is still safe.
2. Copy it manually. There are a nu,ber of options to do this, I
prefer
head -c 1052672 <device> > header_backup.dmp
or
head -c 2M <device> > header_backup.dmp
for a 2MiB header.
Verify the size of the file to be sure.
Keep that file safe, and you can try
cryptsetup repair <device>
next.
I also just added this procedure to FAQ Item 6.2.
Gr"usse,
Arno
On Tue, Nov 25, 2014 at 22:50:57 CET, Jarosław K wrote:
> *Hi Arno,Thanks for response.Unfortunatelly:root@s4per-debian:/home/s4per#
> cryptsetup luksHeaderBackup --header-backup-file luksbackup
> /dev/mapper/isw_echheajchc_MirrorNumer klucza LUKS 4 jest nieprawidłowy.*
> ---> LUKS keyslot 4 is invalid
>
> Regards,
>
> s4per
>
> 2014-11-19 23:52 GMT+01:00 Jarosław K <s4per89@gmail.com>:
>
> > Hi all,
> >
> > I have an encrypted RAID 1 volume for /home directory. I set it to mount
> > automatically after login (based on
> > http://nanonanonano.net/linux/debian/enchome). All of it works perfect
> > during a few months. Until today ... After login I saw a "clean" user
> > profile on my Debian. I know that, my encrypted drive didn't mount
> > correctly. Unfortunately, manually mount failed too:
> >
> > root@s4per-debian:/home/s4per# cryptsetup luksOpen
> > /dev/mapper/isw_echheajchc_Mirror crypt
> > Numer klucza LUKS 4 jest nieprawidłowy. ---> LUKS keyslot 4 is invalid
> > (?)
> >
> > I have read something about this issue, and now i think it could be
> > problem with LUKS headers. But unfortunatelly i have no any backup of it.
> >
> > In Poland we says "Polish wise after the event". Now I know, that I should
> > make some backup of headers.
> >
> > I kindly request for some help.
> >
> > My OS: Debian Sid AMD64
> >
> > Regards,
> >
> > s4per
> >
> >
> >
>
>
> --
> Pozdrawiam,
>
> Jarosław Kołata
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt
--
Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name
GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718
----
A good decision is based on knowledge and not on numbers. -- Plato
If it's in the news, don't worry about it. The very definition of
"news" is "something that hardly ever happens." -- Bruce Schneier
next prev parent reply other threads:[~2014-11-25 23:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-19 22:52 [dm-crypt] LUKS keyslot 4 is invalid Jarosław K
2014-11-20 19:04 ` Arno Wagner
2014-11-25 21:50 ` Jarosław K
2014-11-25 23:15 ` Arno Wagner [this message]
2014-11-26 17:11 ` Jarosław K
2014-11-26 17:54 ` Arno Wagner
-- strict thread matches above, loose matches on Subject: below --
2011-11-26 14:19 Mika Kujanpää
2011-11-26 18:45 ` Milan Broz
2011-11-27 11:33 ` Milan Broz
2011-11-27 12:30 ` 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=20141125231516.GA21902@tansi.org \
--to=arno@wagner.name \
--cc=dm-crypt@saout.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 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.