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] How to move a LUKS partition
Date: Mon, 19 Apr 2010 12:34:29 +0200	[thread overview]
Message-ID: <20100419103429.GA24401@tansi.org> (raw)
In-Reply-To: <4BCC1F24.8030906@yahoo.com.ar>

I would think that (g)parted should be able to do it, or any
other tool that can move a partition without changing it.
In a pinch, fdisk + dd_rescue (copy from the end for moving
towardfs disk end) can do it, but that is tricky and requires
manual calcul;ations that have to be right. 

However LUKS/dm-crypt itself cannot do it, as it is not a tool
for dealing with partition information or moving data. The
task is simply out of scope. 

Before you move, make a backup. It is far too easy to
damage vital information in this type of operation.

Arno


On Mon, Apr 19, 2010 at 06:15:16AM -0300, indyo wrote:
> HELLO!
> 
> I NEED TO MOVE A LUKS ENCRYPTED PARTITION TO FREE SPACE -BEFORE- IT...
> Could you, Christopher, or anybody else achieve such a task?   I?ve been
> googling for hours but can?t find a way to do it..
> I could easily resize it but it stells begins at the same sector, so I
> still need to move it.
> (I still haven?t join dm-crypt mailing list but i?ll do it as soon as I can)
> 
> Thanx,
> indYo.
> ----------------------------------------------
> Repliyng message:
> Fri Oct 23 09:48:59 CEST 2009 by Christopher Schramm
> Hello,
> 
> I got an encrypted partition which I need to free some space _before_. I
> already managed to shrink it, but how to move it?
> 
> Can that be done by modifying the offset?
> What exactly is that offset? Free space between the beginning of the
> partition and the crypt volume?
> Can it be modified by using the cryptsetup resize command?
> 
> Thanks for your help
> Christopher Schramm
> 
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt
> 

-- 
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name 
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier 

      reply	other threads:[~2010-04-19 10:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-23  7:48 [dm-crypt] How to move a LUKS partition Christopher Schramm
2010-04-19  9:15 ` indyo
2010-04-19 10:34   ` Arno Wagner [this message]

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=20100419103429.GA24401@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.