Return-Path: Received: from mail-wr0-x22f.google.com (mail-wr0-x22f.google.com [IPv6:2a00:1450:400c:c0c::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Thu, 13 Apr 2017 13:02:48 +0200 (CEST) Received: by mail-wr0-x22f.google.com with SMTP id l28so33394671wre.0 for ; Thu, 13 Apr 2017 04:02:48 -0700 (PDT) References: From: Milan Broz Message-ID: Date: Thu, 13 Apr 2017 13:02:45 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] Detached header offset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 7heo <7heo@mail.com>, dm-crypt@saout.de On 04/13/2017 12:18 PM, 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. Neither loopaes nor plain device use header. Where do you see this? > 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. All offsets works only for data. > So is there a way to place a detached header arbitrarily on a disk, and > not at the start of a partition? No. LUKS1 offset always starts at sector 0. All tools like blkid search for header at this location, you cannot arbitrarily change offset. You can only set data payload offset to 0 if detached header is used (it means that no header is on the data device itself.) Milan