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

Arno Wagner arno at wagner.name
Sat Jun 21 04:33:36 CEST 2014


On Sat, Jun 21, 2014 at 00:16:53 CEST, Robert Nichols wrote:
> 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.

If there is more than, say, 3.5MB of data in it, then definitely not.

Arno
-- 
Arno Wagner,     Dr. sc. techn., Dipl. Inform.,    Email: arno at wagner.name
GnuPG: ID: CB5D9718  FP: 12D6 C03B 1B30 33BB 13CF  B774 E35C 5FA1 CB5D 9718
----
A good decision is based on knowledge and not on numbers. -  Plato


More information about the dm-crypt mailing list