problem restoring xz image, unable to detect compression format.
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
I just ran into a problem very similar to https://sourceforge.net/p/clonezilla/bugs/77/ The image was created with a drbl based clonezilla (don't have the exact version to hand) and was trying to restore with clonezilla live 2.2.1-22
As in that case my filenames did not contain the compression format and as in that case the content based detection didn't support my compression format. Adding xz to the content based detection allowed me to restore the image.
Could you please check the version of drbl and clonezilla on your DRBL server?
You could run "drbl-bug-report" then post the generated file. It will be easier for us to reproduce the issue here.
Thanks.
BTW, please run
find /home/partimag/$IMAGENAME -print
(Replace $IMAGENAME with your image name)
then post the results.
"Adding xz to the content based detection allowed me to restore the image." -> How did you do that? Please give us more specific info.
Thank you very much.
Steven.
In the file "ocs-functions" there is a block of code that attempts to detect the compression format based on content by using the file command. Running file on "sda1.aa" in my image returned "XZ compressed data" so I added a block to detect that output and use the xz decompression settings.
Could you let us know how you save your image files?
I need to know all the options when saving the image, because I am wondering why your image name for a partition is like
sda2.aa, sda2.ab...
not
sda1.ext4-ptcl-img.gz.aa, sda1.ext4-ptcl-img.gz.ab...
Steven.
I've just managed to reproduce this.
I set up drbl to boot clonezilla in ineractive mode.
I selected expert mode and selected "partclone > dd", xz compression and no checking. Other settings were left on the defaults.
BTW "partclone > dd" seemed to be the critical setting, if I leave that one on the default I get filenames with the compression format in them.
Sorry I mean "partimage > dd" not"partclone > dd"
"In the file "ocs-functions" there is a block of code that attempts to detect the compression format based on content by using the file command. Running file on "sda1.aa" in my image returned "XZ compressed data" so I added a block to detect that output and use the xz decompression settings." -> Thanks. Now I know the problem is about "partimage > dd". Could you please attach the ocs-functions you have modified? I believe I know the block you have mentioned, but just want to confirm we are talking about the same place.
Thanks.
Steven.
BTW, any reason why you choose "partimage > dd" instead of the default option "-q2":
http://clonezilla.org/clonezilla-live/doc/01_Save_disk_image/images/ocs-09-advanced-param-q.png
Steven.
It's fixed in git repository.
Thanks.
Steven.