All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Cryptsetup-reencrypt failing with error with option --new reduce-device-size
Date: Sat, 21 Jun 2014 04:33:36 +0200	[thread overview]
Message-ID: <20140621023336.GA7535@tansi.org> (raw)
In-Reply-To: <lo2bsm$8p7$1@ger.gmane.org>

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@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@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

  reply	other threads:[~2014-06-21  2:33 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
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 [this message]
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=20140621023336.GA7535@tansi.org \
    --to=arno@wagner.name \
    --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.