I've developed some code to add to Clonezilla to allow saving and restoring LUKS-encrypted partitions (in an unencrypted image). Is there any interest in merging the code with the Clonezilla code base?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I apologize for the delay. It turned out to be a bit harder than I thought it would be, and then I got busy with some other work-related stuff. I'll send the patch files over to you to look at, and you can let me know if you see any problems.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
@SLerman,
Thanks you very much. Please do not say apologize. Your contribution is very kind to us.
We will review the codes and if no problem, we will merge it to the future Clonezilla. Now it's about time for us to release another stable Clonezilla live so we do not make big changes to the codes. After the next stable Clonezilla live, we will start adding new features.
Thanks.
Steven.
Last edit: Steven Shiau 2015-06-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
@SLerman,
I have started implementing your patch. One thing I noticed is, it does not work for LUKS on LV. The testing LUKS device I have is on Debian Jessie. I installed it with "Guided: use entire disk and setup encrypted LVM"
i.e. this step: https://debian-handbook.info/browse/stable/images/inst-partman.png
After applied your patch, Clonezilla still use partclone.dd to image the encrypted partition.
Have you tested similar partition layout with your patch? If so, does it work there?
Thanks again.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
FWIW, I'm also very interested in using a LUKS-and-LVM-enabled Clonezilla to image drives and partitions. All my new boxes have LVM2 volumes in a LUKS-encrypted partition, using this process. I'd very much appreciate being able to create device images with size ~= used space (as is the case when current Clonezilla images a non-encrypted device), rather than size(image) ~= size(device), which is what current Clonezilla produces when imaging an encrypted device.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The patch from SLerman give us a very good start point, however, we have to improve the patch provide by SLerman, because it has some problem about imaging LVM.
Please be patient.
Thanks.
Steven.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've developed some code to add to Clonezilla to allow saving and restoring LUKS-encrypted partitions (in an unencrypted image). Is there any interest in merging the code with the Clonezilla code base?
Yes, of course.
Please email me at steven at stevenshiau org or steven at clonezilla org.
Thanks.
Steven.
Last edit: Steven Shiau 2015-03-30
Great, thanks. Once I've done a little more testing, I'll send it over to you.
Great! Appreciate!
Steven.
Is this available in any of the testing releases yet? If not, can I get my hands on it to build myself?
@adamchou,
No, not yet. I am still waiting for SLerman to send me the patch files.
Thanks for asking.
Steven.
I'm very interested in using the LUKS enabled version of Clonezilla. Please keep us posted of progress.
Sure. We will.
Steven.
I apologize for the delay. It turned out to be a bit harder than I thought it would be, and then I got busy with some other work-related stuff. I'll send the patch files over to you to look at, and you can let me know if you see any problems.
@SLerman,
Thanks you very much. Please do not say apologize. Your contribution is very kind to us.
We will review the codes and if no problem, we will merge it to the future Clonezilla. Now it's about time for us to release another stable Clonezilla live so we do not make big changes to the codes. After the next stable Clonezilla live, we will start adding new features.
Thanks.
Steven.
Last edit: Steven Shiau 2015-06-06
@SLerman,
I have started implementing your patch. One thing I noticed is, it does not work for LUKS on LV. The testing LUKS device I have is on Debian Jessie. I installed it with "Guided: use entire disk and setup encrypted LVM"
i.e. this step:
https://debian-handbook.info/browse/stable/images/inst-partman.png
After applied your patch, Clonezilla still use partclone.dd to image the encrypted partition.
Have you tested similar partition layout with your patch? If so, does it work there?
Thanks again.
Steven.
FWIW, I'm also very interested in using a LUKS-and-LVM-enabled Clonezilla to image drives and partitions. All my new boxes have LVM2 volumes in a LUKS-encrypted partition, using this process. I'd very much appreciate being able to create device images with size ~= used space (as is the case when current Clonezilla images a non-encrypted device), rather than size(image) ~= size(device), which is what current Clonezilla produces when imaging an encrypted device.
The patch from SLerman give us a very good start point, however, we have to improve the patch provide by SLerman, because it has some problem about imaging LVM.
Please be patient.
Thanks.
Steven.
Steven Shiau
> we [must] improve the patch provide by SLerman, because it has [problems with] imaging LVM.
NP: I use LVM2 volumes inside a LUKS partition (as I suspect do most LUKS users today), so I need imaging that resolves both.