Return-Path: Received: from nekare.kjorling.se (nekare.kjorling.se [89.221.249.175]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Fri, 18 Dec 2015 22:34:36 +0100 (CET) Received: from yeono.kjorling.se (h-9-65.a328.priv.bahnhof.se [46.59.9.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "yeono", Issuer "yeono" (not verified)) by nekare.kjorling.se (Postfix) with ESMTPS id 143E811411E for ; Fri, 18 Dec 2015 21:34:29 +0000 (UTC) Received: from yeono.kjorling.se (localhost [127.0.0.1]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by yeono (Postfix) with ESMTPS id 7E51710F7 for ; Fri, 18 Dec 2015 22:34:28 +0100 (CET) Date: Fri, 18 Dec 2015 21:34:27 +0000 From: Michael =?utf-8?B?S2rDtnJsaW5n?= Message-ID: <20151218213426.GA19366@yeono.kjorling.se> References: <20151218141308.6ed879f3@ulgy_thing> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20151218141308.6ed879f3@ulgy_thing> Subject: Re: [dm-crypt] Can you change the cipher without destroying your data List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On 18 Dec 2015 14:13 -0500, from doark@mail.com (David Niklas): > I have a LUKS partition, aes-xts-plain64. > I wanted to change it, can I? > I can unmount the drive and do this, I'm not talking hot change here. I believe this is exactly what cryptsetup-reencrypt was designed to do. That tool is available in cryptsetup 1.5.0 and up. http://asalor.blogspot.com/2012/08/re-encryption-of-luks-device-cryptsetup.html https://wiki.archlinux.org/index.php/Dm-crypt/Device_encryption#Re-encrypting_devices And yes, the reencryption is an offline operation. And you really, _REALLY_ want to have a fresh backup of your data before you even think about doing it. But just out of curiosity, why do you want to migrate away from aes-xts-plain64? I've said it before; that is the default for a reason. -- Michael Kjörling • https://michael.kjorling.se • michael@kjorling.se “People who think they know everything really annoy those of us who know we don’t.” (Bjarne Stroustrup)