Return-Path: Received: from v1.tansi.org (mail.tansi.org [84.19.178.47]) by mail.server123.net (Postfix) with ESMTP for ; Thu, 13 Apr 2017 15:36:19 +0200 (CEST) Received: from gatewagner.dyndns.org (77-56-144-126.dclient.hispeed.ch [77.56.144.126]) by v1.tansi.org (Postfix) with ESMTPA id 5A3AE140169 for ; Thu, 13 Apr 2017 15:36:16 +0200 (CEST) Date: Thu, 13 Apr 2017 15:36:18 +0200 From: Arno Wagner Message-ID: <20170413133618.GA27991@tansi.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dm-crypt] Detached header offset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de 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
/dev/loop0 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