Menu

#370 Unable to save (other) disk to local LUKS partition

testing_clonezilla
open
nobody
None
5
2025-05-14
2021-10-26
Ioan
No

Booting Clonezilla Live on my Ubuntu LUKS encrypted laptop, I have an external drive (NVMe on USB 3) which I would like to backup using Clonezilla and store the image locally on the laptop.

After starting Clonezilla, I exit to the console, open the LUKS partition (sudo cryptsetup luksOpen /dev/sdx5 crypt) & mount the partition (sudo mount /dev/mapper/my_vol_group /home/partimag/) - all is working well - I am able to read the files.

Back to Clonezilla GUI, choose "Work with disks", "Store disk to partition". After choosing the source disk (/dev/sdx from my example), Clonezilla is unable to use /home/partimag - please check enclosed image for full error message.

Before choosing the source drive, Clonezilla clearly states that it will be ignoring any raid or LVM devices - which is probably why it can't find the mount point.

Note that if I choose to use /home/partimag/ as "memory mount", everything works fine (well almost - not enough memory for the backup!). What this confirms, is that Clonezilla live has trouble with /home/partimag/ being mounted on a LUKS partition.

There is a workaround - the command line works fine (ocs-sr ... few not important options ... -p choose savedisk 2021010-24-img sdx)

It would be nice to have the GUI fixed if you ever have a chance.

Defect easy to reproduce using the stable and testing version (as of Oct 25, 2021)

You guys are doing a fantastic job, Clonezilla is an outstanding product, thank you, thank you, thank you for your time and commitment to the open source community

Ioan

1 Attachments

Discussion

  • Steven Shiau

    Steven Shiau - 2021-10-27

    Thanks for reporting this issue. We will try to reproduce this issue. If it can be reproduced, then we try to fix it.
    Please be patient.

    Steven

     
    • Ioan

      Ioan - 2021-10-27

      Hello Steven
      Thank you for letting me know. There is no rush and thanks again for your
      time and commitment to the project - Clonezilla is fantastic!
      Ioan

       

      Last edit: Steven Shiau 2021-12-23
  • Steven Shiau

    Steven Shiau - 2021-12-23

    OK, I suggest you do like this:
    1. Boot Clonezilla live
    2. When you see this TUI asking the image repository:
    https://clonezilla.org/clonezilla-live/doc/01_Save_disk_image/images/ocs-07-1-img-repo.png
    Please choose "enter_shell".
    3. Then manually prepare the image repository, like:
    cryptsetup luksOpen /dev/sdx5 crypt
    mount /dev/mapper/crypt /home/partimag/
    exit
    4. Once you run exit, it will back to the main menu. Then you should be able to save or restore the image.

    Please give it a try.

    Steven

     
    • bx2nero

      bx2nero - 2022-11-11

      well this thread is an year old but i had the same issue.

      recently i changed my external HDD to Luks ext4 and faced this issue
      followed the steps u said to manually open and mount and it worked .

      the only downside is that i could not choose a particular folder and the saved backup would go in the root of the external HDD.
      anyway atleast it works so i am gratefull .

      hope to see option for opening luks at start also same like we can if the to-be backed up part /disk is luks.

      Thank you
      keep up the good work :)

      UPDATE: for mounting the subfolder we can mount the opened luks part somewhere else and then bind mount the subfolder to /home/partimag/

       

      Last edit: bx2nero 2022-11-12
  • Evgeny Borodich

    Evgeny Borodich - 2025-05-12

    Thank you for your amazing program.

    I am running to a problem of not being able to restore a partition image (made with Clonezilla and saved to an external HDD, no luks encryption) to a newly luks-encrypted partition.
    What has been done so far:
    0) At the very step of Clonezilla live I enter CL
    1) I do luksOpen for the newly encrypted partition: cryptsetup luksOpen /dev/nvme0n1p7 crypt
    2) I make the logical volume active: vgchange -ay

    From here I have tried CLI for restoration to no avail (I am a newbie).
    I also tried going back to GUI, but every time in both cases Clonezilla fails to see the decrypted partition and the only choice is to proceed with the luks-encrypted partition in which I case it just gets ovewritten. So I get my data back, but not encrypted which was my intention.

    How can I make Clonezilla to restore the partition image to the decrypted part, not overwrite it?
    Thanks in advance and thanks for the great work you have been doing.

     
  • Steven Shiau

    Steven Shiau - 2025-05-14

    " restore the partition image to the decrypted part, not overwrite it? " -> What did you mean by this? Please describe more. Thanks.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.