From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Detached header offset
Date: Thu, 13 Apr 2017 15:36:18 +0200 [thread overview]
Message-ID: <20170413133618.GA27991@tansi.org> (raw)
In-Reply-To: <d0cba900-05da-2be0-caaa-03014302a933@mail.com>
Hi Theo,
since it is a detached header, you could probably do a mapping
to file from the raw sectors, using losetup like this
losetup -o offset --sizelimit <header size> /dev/loop0 <dev_raw_disk>
and then use that as the file-argument for the detached header.
I would say that this is exceedingly "hackish" and probably
asking for a lot of potentially painful problems.
You could probably also (even worse idea) use LVM to combine
the sectors for the header and the ones for the data into a
complete LUKS device (i.e. no detached header in the final thing).
Regards,
Arno
On Thu, Apr 13, 2017 at 12:18:08 CEST, 7heo wrote:
> Hey all,
>
> I assumed that there was on option to give the offset of the header on a
> disk, but this option is only accepted for loopaes and plain devices,
> according to the man.
>
> There's another option to give an offset, for the key-file, but as far as I
> could understand, this is for the offset of the key slots relatively to the
> start of the partition they're on.
>
> Also --align-payload only works on the data.
>
> So is there a way to place a detached header arbitrarily on a disk, and not
> at the start of a partition?
>
> Best regards,
> Theo.
> _______________________________________________
> 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
prev parent reply other threads:[~2017-04-13 13:36 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
2017-04-13 13:36 ` Arno Wagner [this message]
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=20170413133618.GA27991@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.