Clonezilla: Parted fails at bitmap calculation.

Hi

I can attach the log but Clonezilla fails to backup to system image via Parted error. The log throws no light. I wonder if a recent BTRFS update could have caught Debian Sid out?

Starting /usr/sbin/ocs-sr at 2022-01-14 15:18:42 UTC…
*****************************************************.
Clonezilla image dir: /home/partimag
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
The selected devices: sda
PS. Next time you can run this command directly:
/usr/sbin/ocs-sr -q2 -c -j2 -z9p -i 0 -sfsck -scs -senc -p poweroff savedisk 2022-01-14-15-img sda
*****************************************************.
The selected devices: sda
Searching for data/swap/extended partition(s)…
The data partition to be saved: sda1
The swap partition to be saved: sda2
The selected devices: sda1
The following step is to save the hard disk/partition(s) on this machine as an image:
*****************************************************.
Machine: G41M-Combo
sda (256GB_Samsung_SSD_850__Samsung_SSD_850_PRO_256GB_S251NSAG530191H)
sda1 (204.3G_btrfs(In_Samsung_SSD_850_)_Samsung_SSD_850_PRO_256GB_S251NSAG530191H)
*****************************************************.
→ “/home/partimag/2022-01-14-15-img”.
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
Dumping the device mapper table in /home/partimag/2022-01-14-15-img/dmraid.table…
Saving block devices info in /home/partimag/2022-01-14-15-img/blkdev.list…
Saving block devices attributes in /home/partimag/2022-01-14-15-img/blkid.list…
Checking the integrity of partition table in the disk /dev/sda…
Reading the partition table for /dev/sda…RETVAL=0
*****************************************************.
Saving the primary GPT of sda as /home/partimag/2022-01-14-15-img/sda-gpt-1st by dd…
34+0 records in
34+0 records out
17408 bytes (17 kB, 17 KiB) copied, 0.000294242 s, 59.2 MB/s
*****************************************************.
Saving the secondary GPT of sda as /home/partimag/2022-01-14-15-img/sda-gpt-2nd by dd…
32+0 records in
32+0 records out
16384 bytes (16 kB, 16 KiB) copied, 0.00221048 s, 7.4 MB/s
*****************************************************.
Saving the GPT of sda as /home/partimag/2022-01-14-15-img/sda-gpt.gdisk by gdisk…
The operation has completed successfully.
*****************************************************.
Saving the MBR data for sda…
1+0 records in
1+0 records out
512 bytes copied, 0.000705677 s, 726 kB/s
Starting saving /dev/sda1 as /home/partimag/2022-01-14-15-img/sda1.XXX…
/dev/sda1 filesystem: btrfs.
*****************************************************.
*****************************************************.
Use partclone with zstdmt to save the image.
Image file will not be split.
*****************************************************.
If this action fails or hangs, check:

  • Is the disk full ?
    *****************************************************.
    Running: partclone.btrfs -z 10485760 -N -L /var/log/partclone.log -c -s /dev/sda1 --output - | zstdmt -c -3 --rsyncable > /home/partimag/2022-01-14-15-img/sda1.btrfs-ptcl-img.zst 2> /tmp/img_out_err.z9870q
    Partclone v0.3.18 http://partclone.org
    Starting to clone device (/dev/sda1) to image (-)
    Reading Super Block

btrfsclone.c: btrfs library version = Btrfs v5.4.1
block_size = 16384
usedblock = 9143575
device_size = 219318059008
totalblock = 13386112
btrfsclone.c: fs_close
memory needed: 22644788 bytes
bitmap 1673264 bytes, blocks 2*10485760 bytes, checksum 4 bytes
Calculating bitmap… Please wait…

btrfsclone.c: btrfs library version = Btrfs v5.4.1
Failed to use partclone program to save or restore an image!
*****************************************************.
Failed to save partition /dev/sda1.

There is the same problem. I thought it was a problem with sdd. (Tumbleweed)

I’m select “Priority: partimage > dd (no ntfsclone)”.
This is work.

Solution (Weird but works for me):

  1. Run gparted (or another).
  2. Select the problematic disk partition.
  3. Choose Resize/Move.
  4. I reduced the partition size to 100GB
  5. We reboot into Clonezilla and everything works.

P.S. All manipulations on the unmounted file system

Final Solution

  1. Boot to OS.
  2. Go to tty or console.
  3. Enter “sudo btrfs scrub start < path >”.
  4. Check progress “sudo btrfs scrub status < path >”.
  5. Wait for the end process.
  6. Enter “sudo btrfs balance start < path >”.
  7. Wait for the end process.
  8. Reboot into Clonezilla and everything works.