DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: Pedro Fernandes Macedo <pmacedo@gmail.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] dm-crypt hanging on attempts to manipulate an encrypted device
Date: Sun, 18 Apr 2010 15:13:29 +0200	[thread overview]
Message-ID: <4BCB0579.5030600@redhat.com> (raw)
In-Reply-To: <s2o1dcb2d221004180417w88b3d2e0sf98f153af54f694c@mail.gmail.com>

On 04/18/2010 01:17 PM, Pedro Fernandes Macedo wrote:
> I have a 1TB USB disk that I use for backups and has recently hit a
> snag.  The encrypted device was working fine, but it now is failing on a
> weird way: after plugging it in yesterday and doing a luksOpen,
> the "automatic header conversion from 0.99 to 0.991 triggered" message
> appeared. After that, every single attempt at opening the device or add
> keys hangs after the key is entered. This is a device that was in use
> all the time and was working until I unplugged it (for safety) for some
> changes to my raid setup. 

The automatic upgrade of version indicates that header was created
with old version of cryptsetup...

Do you remember which cryptsetup was used to format device?
(Or version of distro release, if it is CentOS, I'll check it.)

> MK iterations:  0

This is wrong and something very bad happened with the header.
Anyway, if the keyslots are ok, it can be probably still fixed easily.

> This is on Centos 5.4 64 bit, cryptsetup-luks-1.0.3-5.el5 (and no custom
> packages; all from the original repository).

Please can you report this to upstream bugzilla (bugzilla.redhat.com,
cryptsetup-luks component)?

I'll try to help you there, if the code is misinterpreting some old metadata
it must be fixed both upstream and in RHEL (and I can handle both together
if problem is understood).

But I will need binary copy of header
dd if=/dev/<your_luks_device> of=/backup.img bs=512 count=1032

(If you agree, please submit that bug for RHEL5.4 and send me
the header - best in private mail, or encrypted using my gpg key,
id is 0xBB21822F on keyservers)

(and probably I will need your help to test passphrase later)

Milan
--
mbroz@redhat.com

  reply	other threads:[~2010-04-18 13:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-18 11:17 [dm-crypt] dm-crypt hanging on attempts to manipulate an encrypted device Pedro Fernandes Macedo
2010-04-18 13:13 ` Milan Broz [this message]
2010-04-18 14:21   ` Pedro Fernandes Macedo
2010-04-18 19:53   ` 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=4BCB0579.5030600@redhat.com \
    --to=mbroz@redhat.com \
    --cc=dm-crypt@saout.de \
    --cc=pmacedo@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox