Menu

Clonezilla and nbd using imagemount generate an issue

2017-11-15
2019-09-03
  • Biagio De Maio

    Biagio De Maio - 2017-11-15

    I have got a problem trying to use imagemount command when I use the nbd device.
    I found this example to extract the partition image file and mount it on a nbd device :

    sudo cat sdb1.ext4-ptcl-img.gz.* | gzip -d -c | partclone.extfs -r -o sdb1.img --restore_raw_file
    sudo modprobe nbd
    sudo imagemount -d /dev/nbd0 -f /home/partimag/my-sdb1.img
    sudo mount -t ext4 /dev/nbd0 /mnt

    but I got anyway the same error :

    sdb1.img: cannot verify: Invalid argument

    I used Clonezilla Live on USB to backup my partitions and this is the ocs-sr command :

    /usr/sbin/ocs-sr -q2 -c -j2 -zip -i 4096 -sfsck -senc -p choose saveparts 2017-11-15-01-img.boot sdb1

    and I tried on all partition's image saved getting same results.
    I tried to use the SystemRescuecd's partclone.dd v.0.2.89 and got a positive result ... why this ?
    Using loop device all is working, instead, and using mount command it work.
    I updated my ubuntu 17.10 with partclone v.0.3.11 and partclone-utils v.0.4.11 and checked the
    Clonezilla tools about the release adn found that use the same partclone v-0.3.11 but parclone-utils
    is v.0.4.1-dbrl1
    May be I am doing something wrong or it's not possible to use nbd device ?!?
    Please help me as I don't know who can explain me the problem and give a solution !
    Another question I would ask here, it's possible to manage a backup's image making persistent modifies (like mounting deleting or adding files into and then saving it) to use that image in a future
    recovery ? otherwise there is a way to make something like that ?
    with regards

     
  • Steven Shiau

    Steven Shiau - 2017-11-26

    Which versions of partclone-utils and Clonezilla live did you use? I'd like to reproduce this issue here.
    Thanks.

    Steven

     
  • Biagio De Maio

    Biagio De Maio - 2017-12-07

    thanks for your reply dear Steven, I was loosing any hope to get an answer.
    I use the clonezilla-live-20171101-artful-amd64.iso and last version of partclone-utils v.0.4.11, the partclone tool is v.0.3.11.
    Further I would ask You how to get a version persistent of your livecd to get stored ocs scripts to reuse everytime I need make a backup, as /tmp folder will be cleared at exiting.
    I will wait an you reply chance, thanks.

    Biagio

     
  • Steven Shiau

    Steven Shiau - 2018-01-03

    "I use the clonezilla-live-20171101-artful-amd64.iso and last version of partclone-utils v.0.4.11, the partclone tool is v.0.3.11." -> Because Partclone 0.3.x uses new image format, so you have to ask the developers of partclone-utils to improve that to fit the new image format.
    For the time being, I suggest you use other mthods mentioned here:
    https://drbl.org/faq/fine-print.php?path=./2_System/43_read_ntfsimg_content.faq#43_read_ntfsimg_content.faq

    Steven

     
  • George Prekas

    George Prekas - 2019-07-28

    Just in case Google brings someone here, I'd like to mention that I have forked partclone-utils here https://github.com/prekageo/partclone-utils and added support for the image format version 0002.

     
  • Steven Shiau

    Steven Shiau - 2019-08-23

    Great. Thank you very much.
    BTW, will you give it a version number when you think it's ready?
    If so, it's easier for us to package it and include it in Clonezilla live.
    Appreciate.

    Steven

     
  • George Prekas

    George Prekas - 2019-08-23

    Hi Steven,

    The original author has accepted my pull request. I've made a second one (https://sourceforge.net/p/partclone-utils/git/merge-requests/2/) to bump the version. I hope that he will merge it as well.

    Thanks,
    George

     
    • Steven Shiau

      Steven Shiau - 2019-08-26

      George,
      I tried to package your version (git clone https://github.com/prekageo/partclone-utils.git) on Debian 10. However, I got an errror:
      partclone_imageinfo.c:145:42: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]
      fprintf(stderr, "%s: cannot malloc %lld bytes\n", argv[i],
      ~~~^
      %ld
      partclone_blocksize(pctx));
      ~~~~~~~~~~~~~~~~~~~~~~~~~
      make[3]: *** [Makefile:523: partclone_imageinfo.o] Error 1

      Where did I miss? Have you successfully compiled it on Debian 10 or Sid?
      Thank you very much.

      Steven

       
      • George Prekas

        George Prekas - 2019-08-27

        Hi Steven,

        Thanks for catching that. Apparently, I tested only imagemount. I have updated the repositories (both on GitHub and here) with the fix for imageinfo. I have also updated the merge request to the original repository.

        Let me know if it works now.

        Thanks,
        George

         
  • Steven Shiau

    Steven Shiau - 2019-08-24

    Yes, great. Thank you very much. Once it's released as new version number, we will package it and use it in Clonezilla live.

    Steven

     
  • Steven Shiau

    Steven Shiau - 2019-08-27

    George,
    Yes, I have successfully packed it as partclone-utils 0.4.2-pre1 and include it in testing Clonezilla live 2.6.3-5:
    https://clonezilla.org/downloads.php
    If you have time, please give it a try and let us know the results.
    Thanks you very much.

    Steven

     
  • George Prekas

    George Prekas - 2019-08-29

    Hi Steven,
    A user of partclone-utils found some bugs (https://github.com/prekageo/partclone-utils/issues/1). I have fixed them and updated the repositories (Github and here).
    Thanks,
    George

     
  • Steven Shiau

    Steven Shiau - 2019-09-01

    Hi George,
    Thanks for updating that. The next testing Clonezilla live will use the updated version you provide.
    Appreciate.

    Steven

     
  • Steven Shiau

    Steven Shiau - 2019-09-03

    It's uploaded as Clonezilla live 2.6.3-7 and 20190903-*:
    https://clonezilla.org/downloads.php
    Please give it a try and let us know the results. Thanks.

    Steven

     

Log in to post a comment.