From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tansi.org (ns.km10532-04.keymachine.de [87.118.102.195]) by mail.saout.de (Postfix) with ESMTP for ; Mon, 19 Apr 2010 12:31:38 +0200 (CEST) Received: from gatewagner.dyndns.org (84-74-164-239.dclient.hispeed.ch [84.74.164.239]) by tansi.org (Postfix) with ESMTPA id EC5C0212804A for ; Mon, 19 Apr 2010 12:31:35 +0200 (CEST) Date: Mon, 19 Apr 2010 12:34:29 +0200 From: Arno Wagner Message-ID: <20100419103429.GA24401@tansi.org> References: <4AE15FEB.1050903@shakaweb.org> <4BCC1F24.8030906@yahoo.com.ar> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BCC1F24.8030906@yahoo.com.ar> Subject: Re: [dm-crypt] How to move a LUKS partition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de 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