From: Milan Broz <gmazyland@gmail.com>
To: Abhrajyoti Kirtania <abhrajyoti@gmail.com>, dm-crypt@saout.de
Subject: Re: [dm-crypt] Cryptsetup-reencrypt failing with error with option --new reduce-device-size
Date: Fri, 20 Jun 2014 15:20:55 +0200 [thread overview]
Message-ID: <53A43537.1070005@gmail.com> (raw)
In-Reply-To: <CAKL--+hCD17W62DxkOfXGTitgnqyq33+EhqA077-ExN7LCMQuQ@mail.gmail.com>
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
next prev parent reply other threads:[~2014-06-20 13:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-20 12:36 [dm-crypt] Cryptsetup-reencrypt failing with error with option --new reduce-device-size Abhrajyoti Kirtania
2014-06-20 13:20 ` Milan Broz [this message]
2014-06-20 13:29 ` Ondrej Kozina
2014-06-20 14:16 ` Abhrajyoti Kirtania
2014-06-20 19:26 ` Arno Wagner
2014-06-20 22:16 ` Robert Nichols
2014-06-21 2:33 ` Arno Wagner
2014-06-24 16:53 ` Abhrajyoti Kirtania
2014-06-24 17:57 ` Milan Broz
2014-06-25 8:34 ` Abhrajyoti Kirtania
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53A43537.1070005@gmail.com \
--to=gmazyland@gmail.com \
--cc=abhrajyoti@gmail.com \
--cc=dm-crypt@saout.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.