DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Nichols <rnicholsNOSPAM@comcast.net>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Detached header offset
Date: Thu, 13 Apr 2017 08:21:47 -0500	[thread overview]
Message-ID: <ocnu15$ogs$1@blaine.gmane.org> (raw)
In-Reply-To: <d0cba900-05da-2be0-caaa-03014302a933@mail.com>

On 04/13/2017 05:18 AM, 7heo wrote:
>
> So is there a way to place a detached header arbitrarily on a disk, and not at the start of a partition?

It's not supported within cryptsetup, but you can always use "losetup" to create a loop device starting at the needed offset and then specify that loop device as the detached header:

     Loopdev=$(losetup -f --show -o 65536 /dev/{whatever}
     cryptsetup luksOpen --header $Loopdev ...
     losetup -d $Loopdev

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.

  parent reply	other threads:[~2017-04-13 13:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-13 10:18 [dm-crypt] Detached header offset 7heo
2017-04-13 11:02 ` Milan Broz
2017-04-13 13:21 ` Robert Nichols [this message]
2017-04-13 13:36 ` 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='ocnu15$ogs$1@blaine.gmane.org' \
    --to=rnicholsnospam@comcast.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox