Menu

Problem trying to restore a LUKS2 saved image

delta_45
6 days ago
2 days ago
  • delta_45

    delta_45 - 6 days ago

    I'm running Linux Mint 22 with clonezilla 5.5.25-1 Clonezilla SE (server
    edition)

    mint-tools@usb-boot:~$ apt show clonezilla
    Package: clonezilla
    Version: 5.5.25-1
    Priority: extra
    

    I have cloned a complete LUKS2 disk to 3 partition images. That worked well without any errors:

    /home/partimag/clonezilla-5.5.25-1/dell-laptop/Kingston-SSD-DISK-IMAGES/LM22/2026-08-08/kingston-full-disk-image-2026-08-08-0818-img$ ls -1 
    blkdev.list
    blkid.list
    clonezilla-img
    dev-fs.list
    disk
    dmraid.table
    efi-nvram.dat
    Info-dmi.txt
    Info-img-id.txt
    Info-img-size.txt
    Info-lshw.txt
    Info-lspci.txt
    Info-OS-prober.txt
    Info-packages.txt
    Info-saved-by-cmd.txt
    luks-crypttab-from-OS.info
    luks-dev.list
    lvm_logv.list
    lvm_vg_dev.list
    lvm_vgmint.conf
    nvme0n1-chs.sf
    nvme0n1-gpt-1st
    nvme0n1-gpt-2nd
    nvme0n1-gpt.gdisk
    nvme0n1-gpt.sgdisk
    nvme0n1-mbr
    nvme0n1p1.vfat-ptcl-img.zst
    nvme0n1p2.ext4-ptcl-img.zst
    nvme0n1p3-luksHeader.bin
    nvme0n1-pt.parted
    nvme0n1-pt.parted.compact
    nvme0n1-pt.sf
    parts
    swappt-vgmint-swap_1.info
    vgmint-root.ext4-ptcl-img.zst
    

    I've got a problem trying to restore the above disk images to another empty SSD drive of the same capacity.

    The GUI goes to savedisk when I want to get to restoredisk.

    If I exit out of clonezilla and unmount /tmp/ocsroot_bind_root and /home/partimag I still cannot close the encryption on the LUKS2 backup drive that was previously mounted.

    root@usb-boot:/home/mint-tools/clonezilla-disk-images/2026-08-01/scripts# ./umount-clonezilla-baks-drive.sh
    
    --- Running umount -v /home/partimag ---
    umount: /home/partimag: not mounted.
    
    --- Running lsblk ---
    NAME              MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
    sda                 8:0    0  55.9G  0 disk  
    ├─sda1              8:1    0     1M  0 part  
    ├─sda2              8:2    0   513M  0 part  /boot/efi
    └─sda3              8:3    0  55.4G  0 part  /
    sdb                 8:16   0 465.8G  0 disk  
    └─clonezilla-baks 252:0    0 465.7G  0 crypt 
    nvme0n1           259:0    0 476.9G  0 disk  
    
    
    --- Running cryptsetup luksClose clonezilla-baks ---
    Device clonezilla-baks is still in use.
    Command failed with code -5 (device already exists or device is busy).
    
    --- Running ls /dev/mapper ---
    clonezilla-baks  control
    

    I can't see what is stopping me from closing the encryption on the drive.

    The only way for me to clear this is error:

    Device clonezilla-baks is still in use.
    Command failed with code -5 (device already exists or device is busy).
    

    is to reboot the machine.

     

    Last edit: delta_45 6 days ago
  • Steven Shiau

    Steven Shiau - 2 days ago

    Not very sure...
    Is that possible you can try to use Clonezilla live to reproduce this issue? Say using 3.3.3-15 or 3.3.3-32:
    https://clonezilla.org/downloads.php

     

Log in to post a comment.