From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic311-23.consmr.mail.ne1.yahoo.com (sonic311-23.consmr.mail.ne1.yahoo.com [66.163.188.204]) (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 ; Mon, 16 Dec 2019 09:21:34 +0100 (CET) Date: Mon, 16 Dec 2019 08:21:27 +0000 (UTC) From: Aint Tellin Message-ID: <830403085.13951328.1576484487874@mail.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13951327_1072943298.1576484487873" References: <830403085.13951328.1576484487874.ref@mail.yahoo.com> Subject: [dm-crypt] Detached header creation confusion. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "dm-crypt@saout.de" ------=_Part_13951327_1072943298.1576484487873 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Salutations. Thank you all so much for the time and effort you put into your amazing pro= ject!I've used it successfully many times! I have a usage question for you if you'll allow me.=C2=A0 I am attempting to create a detached header in conjunction with a 1G offset= .=C2=A0 The version of cryptsetup I am using is version 2.2.2.=C2=A0My kernel is 5.= 4.3 What I expected:=C2=A0> detached header file "detached_header.img" on /dev/= sda1 (mounted at /mnt)> luks protected data on /dev/sda1 The command I used.> $cryptsetup luksFormat /dev/sd2 --offset 2097152 --hea= der /mnt/detached_header.img According to the man page, the --header option will override the positional= parameter.=C2=A0Thus, when I run the above command (or variations= of same) the device on which the "detached_header.img" file sits, becomes = the target of the luksFormat.=C2=A0 What happened:> /dev/sda1 becomes target of luksFormat. Fails with the foll= owing output; $ Device wipe error, offset 93323264.$ Cannot wipe header on device mnt/det= ached_header.img No change on /dev/sda2 I know I'm misunderstanding something, but I can't figure out what it is.= =C2=A0 Thank you ahead of time for any help you can provide! -Omar ------=_Part_13951327_1072943298.1576484487873 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Salutations.

Thank you all= so much for the time and effort you put into your amazing project!
I've used it successfully many times!<= /div>

I have a usage question for you if you'll allow me. =

I am attempting to create a detached header in conjuncti= on with a 1G offset. 

=
The version of cryptsetup I am usi= ng is version 2.2.2. 
My kernel is 5.4.3

What I expected: 
> detached header file "detached_header.img" on /dev/= sda1 (mounted at /mnt)
> luk= s protected data on /dev/sda1
<= br>
The command I used.
> $cryptsetup luksFormat /dev/sd2 -= -offset 2097152 --header /mnt/detached_header.img

According to the man page, th= e --header option will override the positional <device> parameter.&nb= sp;
Thus, when I run the above = command (or variations of same) the device on which the "detached_header.im= g" file sits, becomes the target of the luksFormat. 

What happened:
> /dev/sda1 = becomes target of luksFormat. Fails with the following output;

$ Device wipe error, offset 9= 3323264.
$ Cannot wipe header on device mnt/detached_header.img

No change on /dev/sda2


I know I'm misunderstanding something, but I can't figu= re out what it is. 

Thank you ahead of time for any = help you can provide!

-Omar


<= div dir=3D"ltr" data-setdir=3D"false">
------=_Part_13951327_1072943298.1576484487873--