Menu

#392 Clonezilla 5.0.4-1 fails dealing with LUKS filesystem

testing_clonezilla
open
nobody
None
5
2022-12-08
2022-11-24
No

Hi,
I'm trying Clonezilla 5.0.4 on (Ubuntu-based) Armbian.

I try to "savedisk" a Manjaro Linux installation containing LUKS encrypted filesystems.

I'm glad to see that Clonezilla seems to have become LUKS-aware and tries to unlock my LUKS filesystem before saving it.

However it unfortunately fails.

Things end in :

***********.
mmcblk2p3 mmcblk2p4
Extracting initramfs: /tmp/ird_mnt.YW8/initramfs-linux-6.0.9-2-MANJARO-ARM-fallback.img... done.
Found LUKS crypttab file in /tmp/ird_mnt.YW8/initramfs-linux-6.0.9-2-MANJARO-ARM-fallback.img. Appending it to /home/partimag/<backup_name>/luks-crypttab-from-OS.info...</backup_name>
Running: cryptsetup luksHeaderBackup --header-backup-file /home/partimag/<backup_name>/mmcblk2p3-luksHeader.bin /dev/mmcblk2p3</backup_name>
***********.
/dev/mmcblk2p3
Running: cryptsetup open --type luks /dev/mmcblk2p3 #
La commande exige un périphérique et un nom de correspondance comme arguments.
Failed to open LUKS device /dev/mmcblk2p3.
Appuyez sur "Entrée" pour continuer......

I see several things here :
- Clonezilla extracts an initramfs, but not the good one as there are several ; it takes a fallback one. However this still should be OK with respect to crypttab contents.
- Clonezilla tries to open a LUKS partition without giving any destination device name, so cryptsetup fails.
- It is worth noting that my cryptttab specifies devices as UUID=xxxx-yyyy and not /dev/mmcblk...
- Also my crypttab doesn't supply passwords, that are to be interactively typed in during boot.

So it seems that Clonezilla now makes some effort to deal with LUKS encryption, but ultimately fails, which makes "savedisk" impossible, where it would previously just have saved it using dd (producing a very big, but working output).

Discussion

  • Steven Shiau

    Steven Shiau - 2022-12-08

    Thanks for your feedback. Are you able to reproduce this on Clonezilla live? e.g., 3.0.2-21:
    https://clonezilla.org/downloads.php

    Steven

     
  • Swâmi Petaramesh

    I'm absolutely sure this is not an issue relating to the live-CD or not, but to the Clonezilla scripts.

    Unfortunately I cannot test Clonezilla Live for this, as the machine on which I have this issue is an ARM machine, and you don't provide a live image suitable for an ARM machine.

     

Log in to post a comment.