From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Fri, 20 Jun 2014 15:29:02 +0200 (CEST) Received: by mail-wi0-f170.google.com with SMTP id cc10so1043262wib.3 for ; Fri, 20 Jun 2014 06:29:00 -0700 (PDT) Message-ID: <53A43537.1070005@gmail.com> Date: Fri, 20 Jun 2014 15:20:55 +0200 From: Milan Broz MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] Cryptsetup-reencrypt failing with error with option --new reduce-device-size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Abhrajyoti Kirtania , dm-crypt@saout.de On 06/20/2014 02:36 PM, Abhrajyoti Kirtania wrote: > cryptsetup-reencrypt /dev/sda8 --new --reduce-device-size 1024 > Cannot wipe header on device /dev/loop0. if i pass --reduce-device-size as 1024. > But if i pass this size as 4096 then getting the error as "Device /dev/loop0 is too small." New LUKS device header needs more than 1024 or 4096 bytes - you need space for keyslots. Try reduce device size by 4 Megabytes (and do not forget to reduce fs first): cryptsetup-reencrypt /dev/sda8 --new --reduce-device-size 4M and it should work. I will probably add more descriptive error message here, it is really cryptic. Milan