Return-Path: Received: from v6.tansi.org (mail.tansi.org [87.118.116.4]) by mail.server123.net (Postfix) with ESMTP for ; Wed, 24 Feb 2016 17:24:56 +0100 (CET) Received: from gatewagner.dyndns.org (77-57-36-72.dclient.hispeed.ch [77.57.36.72]) by v6.tansi.org (Postfix) with ESMTPA id 798F520DC1FD for ; Wed, 24 Feb 2016 17:24:55 +0100 (CET) Date: Wed, 24 Feb 2016 17:24:55 +0100 From: Arno Wagner Message-ID: <20160224162454.GA7961@tansi.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: Subject: Re: [dm-crypt] yet another header reconstruction question List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Excellent. Also, thank you for the feedback! Regards, Arno On Wed, Feb 24, 2016 at 09:43:02 CET, Florian Dotzer wrote: >=20 > =A0 > On 02/18/2016 02:51 AM, Florian Dotzer wrote: > >> I tried dd on files to replace the first 512 bytes of a file , but > >> the target file was completely replaced with this command : > >> > >> dd if=3D512_bytes_with_fixed_header of=3Dfile_with_first_64_MB_of_md0 = bs=3D512 count=3D1 >=20 > > When the target is a file, you need to include "conv=3Dnotrunc" so > > that the file will not be truncated to zero length when it is > > opened. That is not an issue when the target is a block device, > > but there is no harm in using "conv=3Dnotrunc" there, too. >=20 > Thanks to Bob , Arno , Sven and all others. I was able to remount > with the corrected LUKS Header .=20 >=20 > Now I have a backup of the header and a backup of the key.=20 >=20 > currently I am backing up all data=20 >=20 > Please enjoy a virtual drink of your choice ;-))=20 >=20 >=20 > Sorry lsblk command was not available so I cannot report any output of t= hat.=20 >=20 > best wishes to all , Florian > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt --=20 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=20 "news" is "something that hardly ever happens." -- Bruce Schneier