Unrecognised filesystems backed up using LZMA compression not restored correctly
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
Issue discovered in clonezilla-live-20180812-bionic:
Unrecognised filesystem types backed up using LZMA compression are not decompressed when being restored - the compressed image is written directly to the partition instead.
Analysis of cause:
Oops. I've just realised that I didn't set the "milestone" of this ticket to "stable-clonezilla-live", and there doesn't seem to be a way to update it.
Could you please tell us the steps to save and restore in detail so that we can reproduce this issue here?
Please show that step by step. Thanks.
Steven
My PC has two hard drives (sda & sdb). sdb3 is a Microsoft Recerved Partition of size 16MB. I backed up the image of sdb3 to an unpartitioned USB stick (sdc) containing a VFAT file system.
The attached files sdb3-orig-file-output.txt and sdb-orig-dump.txt contain the output of "file -s /dev/sdb3" and a hexdump of the first kilobyte of the contents of sdb3 BEFORE the backup.
Backup steps:
The attached file clonezilla-img is the log taken from the backup directory. You can see on line 55 that the output of "partclone.dd" is piped into "lzma" to compress it.
The attached files sdb3.dd-img-file-output.txt and sdb3.dd-img-dump.txt contain the output of "file sdb3-lzma-test/sdb3.dd-img.aa" and a hexdump of the first kilobyte of sdb3-lzma-test/sdb3.dd-img.aa
Restoration steps:
The attached file clonezilla-restore.log is the log of the restoration taken from /var/log. You can see on lines 37 - 42 that the image is not decompressed before being written to the partition.
The files sdb3-restored-file-output.txt and and sdb-restored-dump.txt contain the output of "file -s /dev/sdb3" and a hexdump of the first kilobyte of the contents of sdb3 AFTER the restoration. They clearly show that the compressed image has been written directly to the partition without being decompressed.
Thanks for the bug report. We have fixed this issue. Could you please give testing Clonezilla live 20181024-* or 2.6.0-16 a try?
https://clonezilla.org/downloads.php
Please let us know the results. Thanks.
Steven