[dm-crypt] Cryptsetup-reencrypt failing with error with option --new reduce-device-size

Robert Nichols rnicholsNOSPAM at comcast.net
Sat Jun 21 00:16:53 CEST 2014

On 06/20/2014 09:16 AM, Abhrajyoti Kirtania wrote:
> Thank you for the reply.
> How can i create unused space (shrink) at the end of original divide? As per the
> man page "fdisk -u /dev/sdb # move sdb1 partition end + 4096 sectors" not giving
> expected result.
> Even i tried with resize2fs but not helping
> test at ubuntu:~/in-place$ sudo resize2fs /dev/sda8 4M
> resize2fs 1.42.5 (29-Jul-2012)
> resize2fs: New size smaller than minimum (45572)

You have tried to resize the filesystem _to_ 4 megabytes, not reduce
its current size _by_ 4 Megabytes. Your current filesystem will of
course not fit in 4 Megabytes.

Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.

More information about the dm-crypt mailing list