Support for unlocking and reading from encrypted LUKS partitions
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
More and more Linux based machines are being installed with a LUKS encrypted partition these days.
It would be nice if Clonezilla could detect that a partition is LUKS encrypted and then ask the user for the passphrase. As soon as the encryped partition is unlocked, the normal backup process can be followed.
This feature request is different from feature request #40, because a LUKS encrypted partition can be unlocked using open source tools (cryptsetup).
I would really, really, really also like this. I've recently been faced with cloning dozens of 1TB LUKS encrypted volumes and from a security standpoint it would be fine to unlock and then back up the unprotected volumes.. to speed up imaging/recovery process.
So what's the device name after you use cryptsetup to unlock it?
Is it /dev/mapper/xxx or?
Steven.
Steven,
/dev/mapper/xxx ..
Please me know if I can do anything to help from here, would be happy to
help..
matt
On 6/13/14 6:53 AM, Steven Shiau wrote:
Related
Feature Requests: #59
The device name /dev/mapper/ is the most difficult to deal with now. The Clonezilla codes have to be revised and patched so that not only /dev/cciss/c?d? but also /dev/mapper/* could be scanned and processed.
One thing it's more complicated than /dev/cciss/ is, its naming is wild. Not like cciss, the pattern is c?d?...
We will try to find some time to implement this. However, it's not in the near future.
BTW, patches are welcome.
Steven.
Understood. I've been kind of amazed that with cryptsetup luksOpen one
can choose whatever they like as a volume name (that becomes
/dev/mapper/foo). I'd have thought they'd stuff a volume name in the
LUKS header but they don't.
Do you have a general direction/module/script/chunk of code I should
begin with to try and fix this? If you're too busy I completely
understand.
By the way, THANK YOU for Clonezilla. It's an outstanding piece of
software my teams and I have used regularly for years.
-Matt
On 6/13/14, 7:20 PM, Steven Shiau wrote:
Related
Feature Requests: #59
Never mind I found where to look. Will look at using
create-cciss-mapping function as an example for luks volumes.
matt
On 6/13/14 7:55 PM, matt wilbur wrote:
Related
Feature Requests: #59
No no, create-cciss-mapping is not used anymore. Although it might still work, but actually it has some issue. I should remove it from Clonezilla.
We took the patches from Miracle Linux, so now all are in the program:
/usr/share/drbl/sbin/ocs-functions
Those functions, like:
is_supported_dev
is_partition
get_part_number
get_diskname
...
Steven.