Re: How to move a LUKS partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx
> http://www.saout.de/mailman/listinfo/dm-crypt
> 

-- 
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@xxxxxxxxxxx 
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 
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt

[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux