From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fuldigor.wagner-flo.net (fuldigor.wagner-flo.net [IPv6:2a03:4000:6:d026::1]) by mail.server123.net (Postfix) with ESMTP for ; Thu, 25 Feb 2016 18:05:27 +0100 (CET) Date: Thu, 25 Feb 2016 18:05:18 +0100 From: Felix Wagner Message-ID: <20160225180518.49410783@othir.localdomain> In-Reply-To: <56CF2DC2.6050008@gmail.com> References: <20160225160849.21765320@othir.localdomain> <56CF2DC2.6050008@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/y.X7f5ShsO6uZoqrjHNeKZG"; protocol="application/pgp-signature" Subject: Re: [dm-crypt] help List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Milan Broz , Ondrej Kozina Cc: dm-crypt@saout.de --Sig_/y.X7f5ShsO6uZoqrjHNeKZG Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, thanks for your replies. Yea, any of those files DO NOT exist anywhere on my fs (I checked with find). I think the process didn't really start. How do I continue then? On Thu, 25 Feb 2016 17:37:22 +0100 Milan Broz wrote: > On 02/25/2016 04:08 PM, Felix Wagner wrote: > > Hello, > >=20 > > I tried to reencrypt my device today and was way too eager to do it > > without reading everything. Heres what I did: > >=20 > > 'cryptsetup-reencrypt -v -c aes-xts-plain64 -s > > 512 /dev/disk/by-uuid/2ea1bb9e-a4a0-48c8-bc67-a694fa6c8cf7 > > Reencryption will change: volume key, set cipher to aes-xts-plain64. > > Enter passphrase for key slot 0: > > Key slot 0 unlocked. > > LUKS header backup of > > device /dev/disk/by-uuid/2ea1bb9e-a4a0-48c8-bc67-a694fa6c8cf7 > > created. Data offset for detached LUKS header must be either 0 or > > higher than header size (4036 sectors). Creation of LUKS backup > > headers failed. > >=20 > > So i thought well It didn't work so lets try again: > >=20 > > cryptsetup-reencrypt -v -c > > aes-xts-plain64 /dev/disk/by-uuid/2ea1bb9e-a4a0-48c8-bc67-a694fa6c8cf7 > > Reencryption will change: volume key, set cipher to aes-xts-plain64. > > Enter passphrase for key slot 0: > > Key slot 0 unlocked. > > LUKS header > > backup of > > device /dev/disk/by-uuid/2ea1bb9e-a4a0-48c8-bc67-a694fa6c8cf7 > > created. New LUKS header for > > device /dev/disk/by-uuid/2ea1bb9e-a4a0-48c8-bc67-a694fa6c8cf7 > > created. Activated keyslot 0.=20 > > Marking LUKS > > device /dev/disk/by-uuid/2ea1bb9e-a4a0-48c8-bc67-a694fa6c8cf7 > > unusable. Activating temporary device using old LUKS header. > > Key slot 0 unlocked. > > Cannot get info about > > device /dev/disk/by-uuid/2ea1bb9e-a4a0-48c8-bc67-a694fa6c8cf7. > > Activation of temporary devices failed. > >=20 > > Now it says that the device is not a luks device anymore. I do not > > have a header backup (I'm an idiot) what I do have is the luksDump > > information and I have not rebooted my system: =20 >=20 > Do you have these files still in current directory? >=20 > LUKS-ea1bb9e-a4a0-48c8-bc67-a694fa6c8cf7.log > LUKS-ea1bb9e-a4a0-48c8-bc67-a694fa6c8cf7.new > LUKS-ea1bb9e-a4a0-48c8-bc67-a694fa6c8cf7.org >=20 > If so, save them. *.log is reencryption log. If you run reencrypt > in directory with these files, reencryption will resume. >=20 > If it did not started yet, *.org is header backup and you can > use it to restore old device state. >=20 > (If reencryption already started some part of device is already > reencrypted so you have to finish that operation.) >=20 > Please can you paste here content of the *.log file? > (It is text file containing reencryption context.) >=20 > (In theory, if reencryption did not really started yet the initial > header is still on-device, just with different magic string, so > recovery could be still possible just with simple on-disk edit.) >=20 > Milan --Sig_/y.X7f5ShsO6uZoqrjHNeKZG Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWzzROAAoJEH5LnwRkXv1q0ScH/RCY4nzDR6+X+SchZFyHZhgX Fkoh4jNjQD8D2KbNL13/pfOoOTavRnDtE/kaPrm6Jg4tJdON4a84NiyWQ2jiP4kA YQKMD3XjIEVmDKD1ug5u2HUtJ7jtQl8MbYxEiWb2tY4xK3hFnljS8Hq6LL5BT9wd nuQbeA3OoFlkngHJYw1C8Depf1HyzRlsFACcDsLBNe4375PaZpSIbfTAoRU1U4r9 PQbkZOa8YVgzzmie5H3ZLggDiEi41jMkgEEs5Y0e8ZRycpOCJvOyPH/CWsrXyuQ9 7C9myioRLSY7XG9svlbOYC47dCoY8gxVWxG2AVjhQNus2kfSNO0i3OJURYq84nw= =U0lI -----END PGP SIGNATURE----- --Sig_/y.X7f5ShsO6uZoqrjHNeKZG--