All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] volume unrecognized
Date: Thu, 27 Aug 2009 19:03:32 +0200	[thread overview]
Message-ID: <4A96BC64.9020308@redhat.com> (raw)
In-Reply-To: <20090827162838.GB24973@resivo.wgnet.de>

Jonas Meurer wrote:
>> cryptsetup luksDump $DEVICE
>>
>> Find the payload number
>>
>> dd if=$DEVICE of=luks_header_bakup count=$PAYLOAD
>>
>> To restore them just reverse if and of in dd
>>
>> dd if=$luks_header_backup of=$DEVICE count=$PAYLOAD
> 
> you should add bs=1 to the dd commandline. default is 512, which would
> result in $PAYLOAD*512 bytes being read/written.

Nope, payload offset in dump  _is_ in 512 byte sector units.
bs=512 is correct.

(You will save all (even unused) keyslots here, but this is not problem)

Milan

  reply	other threads:[~2009-08-27 17:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-27 14:31 [dm-crypt] volume unrecognized Jacques-Olivier KAPPS
2009-08-27 14:47 ` Jonas Meurer
2009-08-27 15:11   ` Jacques-Olivier KAPPS
2009-08-27 15:45     ` Moji
2009-08-27 14:57 ` Heinz Diehl
2009-08-27 15:20   ` Jacques-Olivier KAPPS
2009-08-27 15:44     ` Moji
2009-08-27 16:28       ` Jonas Meurer
2009-08-27 17:03         ` Milan Broz [this message]
2009-08-27 18:39           ` Jonas Meurer

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=4A96BC64.9020308@redhat.com \
    --to=mbroz@redhat.com \
    --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.