Menu

#191 problem restoring xz image, unable to detect compression format.

closed-fixed
None
5
2014-01-30
2014-01-13
peter green
No

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.

Discussion

  • Steven Shiau

    Steven Shiau - 2014-01-15

    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.

     
  • peter green

    peter green - 2014-01-15

    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."
    Attatched

    BTW, please run find /home/partimag/$IMAGENAME -print"
    plugwash@e-uliska16sv:~$ find /images/2014-01-10-19-img/ -print
    /images/2014-01-10-19-img/
    /images/2014-01-10-19-img/sda2.ax
    /images/2014-01-10-19-img/disk
    /images/2014-01-10-19-img/sda2.am
    /images/2014-01-10-19-img/sda2.az
    /images/2014-01-10-19-img/Info-packages.txt
    /images/2014-01-10-19-img/sda2.ab
    /images/2014-01-10-19-img/sda2.ar
    /images/2014-01-10-19-img/blkdev.list
    /images/2014-01-10-19-img/sda2.aw
    /images/2014-01-10-19-img/sda-pt.parted.compact
    /images/2014-01-10-19-img/sda2.au
    /images/2014-01-10-19-img/sda-pt.parted
    /images/2014-01-10-19-img/sda2.al
    /images/2014-01-10-19-img/sda-hidden-data-after-mbr
    /images/2014-01-10-19-img/sda-chs.sf
    /images/2014-01-10-19-img/Info-lshw.txt
    /images/2014-01-10-19-img/sda2.ac
    /images/2014-01-10-19-img/sda2.bb
    /images/2014-01-10-19-img/sda2.at
    /images/2014-01-10-19-img/sda2.as
    /images/2014-01-10-19-img/sda2.ao
    /images/2014-01-10-19-img/sda2.av
    /images/2014-01-10-19-img/sda2.ap
    /images/2014-01-10-19-img/sda2.ah
    /images/2014-01-10-19-img/sda2.aj
    /images/2014-01-10-19-img/sda2.ba
    /images/2014-01-10-19-img/sda2.ak
    /images/2014-01-10-19-img/sda1.info
    /images/2014-01-10-19-img/sda2.an
    /images/2014-01-10-19-img/sda2.ag
    /images/2014-01-10-19-img/sda2.aa
    /images/2014-01-10-19-img/sda-pt.sf
    /images/2014-01-10-19-img/Info-saved-by-cmd.txt
    /images/2014-01-10-19-img/sda-mbr
    /images/2014-01-10-19-img/sda2.ay
    /images/2014-01-10-19-img/sda2.af
    /images/2014-01-10-19-img/sda5.aa
    /images/2014-01-10-19-img/sda2.aq
    /images/2014-01-10-19-img/sda1.aa
    /images/2014-01-10-19-img/sda2.ae
    /images/2014-01-10-19-img/clonezilla-img
    /images/2014-01-10-19-img/parts
    /images/2014-01-10-19-img/Info-dmi.txt
    /images/2014-01-10-19-img/sda2.ad
    /images/2014-01-10-19-img/Info-lspci.txt
    /images/2014-01-10-19-img/sda2.ai
    plugwash@e-uliska16sv:~$

    "Adding xz to the content based detection allowed me to restore the image." -> How did you do that? Please give us more specific info."

    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.

     
  • Steven Shiau

    Steven Shiau - 2014-01-19

    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.

     
  • peter green

    peter green - 2014-01-21

    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.

     
  • peter green

    peter green - 2014-01-21

    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.

     
  • peter green

    peter green - 2014-01-22

    Sorry I mean "partimage > dd" not"partclone > dd"

     
  • Steven Shiau

    Steven Shiau - 2014-01-30

    "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.

     
  • Steven Shiau

    Steven Shiau - 2014-01-30
    • status: open --> closed-fixed
    • assigned_to: Steven Shiau
     
  • Steven Shiau

    Steven Shiau - 2014-01-30

    It's fixed in git repository.
    Thanks.

    Steven.

     

Log in to post a comment.