How to move a LUKS partition
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
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
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
Quoted 32 lines · indyo
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
[email protected]
http://www.saout.de/mailman/listinfo/dm-crypt
Signature · 7 lines
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: [email protected] 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