I have an Ubuntu system disk that is LUKS encrypted. I've seen instructions on how to drop to shell, unlock/mount the partitions, and then image those. Except that doesn't preserve the underlying partition/LVM structure.
How do I take a full disk image, without also imaging a terrabyte of empty space?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Never happened. Tried Debian 12 and Fedora 38. Never been asked anything. False information. Reverted to use partclone which works as expected. It's already documented on this forum so I won't re-explain it.
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was also confused by this advice, and then I realised: I created my Clonezilla USB last decade. I downloaded the latest Clonezilla, and on that version, if you select savedisk and select the LUKS drive, there's an option asking if you want to open it, etc.
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The contents of my Clonezilla-Live-Version file on the USB drive:
clonezilla-live-3.1.1-27-amd64
This Clonezilla live zip file was created by this command:
ocs-live-dev -c -s --extra-boot-param quiet loglevel=0 -y 6.03 -i 3.1.1-27-amd64
I can't get to it right now, because I can't reboot my machine, but I'm saving partitions if I recall, not disks. And (again from memory) it's not like there's an option that says to do it; I save the partitions and then it asks me if I want to open the LUKS partitions, or just copy the entire partition encrypted once the job is underway. Then when it comes time to do it, it asks me for passwords as it opens them.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have an Ubuntu system disk that is LUKS encrypted. I've seen instructions on how to drop to shell, unlock/mount the partitions, and then image those. Except that doesn't preserve the underlying partition/LVM structure.
How do I take a full disk image, without also imaging a terrabyte of empty space?
When Clonezilla detects LUKS encryption, it will ask if you want to decrypt that. Once it's decrypt, only the used blocks will be saved.
Steven
Thanks, Steven.
Where do those options happen? Because I've run through the live USB a lot and I've yet to see Clonezilla even ask to decrypt the LUKS partition.
Hi,
I would like to know as well..
Is there a guide or tutorial on how to do this? I have found one, as I have listed on my other post, but it didn't work for me.
Thanks,
Darryl
It's actually the same procedure as saving an unencrypted disk, like this:
https://clonezilla.org/fine-print-live-doc.php?path=clonezilla-live/doc/01_Save_disk_image
If you have LUKS (v2) device, just go through it, and you should be prompted to decrypt the LUKS device.
Steven
Never happened. Tried Debian 12 and Fedora 38. Never been asked anything. False information. Reverted to use partclone which works as expected. It's already documented on this forum so I won't re-explain it.
I was also confused by this advice, and then I realised: I created my Clonezilla USB last decade. I downloaded the latest Clonezilla, and on that version, if you select savedisk and select the LUKS drive, there's an option asking if you want to open it, etc.
What version did you use? I am using 3.1.2-9 stable and I don't see a luks option or an open prompt.
The contents of my Clonezilla-Live-Version file on the USB drive:
clonezilla-live-3.1.1-27-amd64
This Clonezilla live zip file was created by this command:
ocs-live-dev -c -s --extra-boot-param quiet loglevel=0 -y 6.03 -i 3.1.1-27-amd64
I can't get to it right now, because I can't reboot my machine, but I'm saving partitions if I recall, not disks. And (again from memory) it's not like there's an option that says to do it; I save the partitions and then it asks me if I want to open the LUKS partitions, or just copy the entire partition encrypted once the job is underway. Then when it comes time to do it, it asks me for passwords as it opens them.
So have you finished your job? Or do you still have issues? If so, what's the issue there now?
Steven