Menu

K-1 proportional partition table used size check

Suncatcher
2017-07-13
2017-08-11
  • Suncatcher

    Suncatcher - 2017-07-13

    Hi there,
    thanks for this amazing tool. But I have a very acute proposal: there definitely should be check of target partition table for consistency. Clonezilla should verify if target partition size fits used space on source.
    The real practice case: I had 1Tb drive with following partition table:
    Disk C: 50Gb
    Disk D: 400Gb
    Disk E: 500Gb

    There was only 20Gb used on the first 50Gb partition, the others were practically untouched.

    When I tried to restore it onto a 250Gb drive, it obviously failed. Failed because Clonezilla tried to proportionally re-create partition table disregard of used size. And Disc C became 12Gb which is less than the used space (=20).
    This is dumb! Extremely dumb to resize partition knowing that it won't be able to handle neede size.
    You should implement that simple check: if the used space is bigger than target proportional drive, then just propose to increase this size to user. So simple!!!

     

    Last edit: Suncatcher 2017-08-11
  • Steven Shiau

    Steven Shiau - 2017-07-23

    The file system engine we use in Clonezilla is partclone, and it's the so-called block-based imaging program. It has an option "-C" so that you can force to write to the destination partition. By default this kind of block-based imaging program can not be used in this way. The option "-C" of patclone is only for expert who knows what's going on to use.
    The option "-k1" in Clonezilla will create the partition table proportionally and turn on the option "-C" of partclone. You can try it when you want to restore the image to smaller disk. However, it's not always working, especially when the used data blocks are outside the partition boundary.
    Steven

     
  • Suncatcher

    Suncatcher - 2017-08-11

    However, it's not always working, especially when the used data blocks are outside the partition boundary.

    That's what I am speaking about. If the used data cannot fit to created partition, why to write it at all if it fails anyway? Why not to make an analysis and propose to user to increase the target partition? Partclone cannot analyze used blocks?

     

    Last edit: Suncatcher 2017-08-11
  • Steven Shiau

    Steven Shiau - 2017-08-30

    It's better to use GParted live for this kind of purpose. We will think about if we can make what you have mentioned in the future.

    Steven

     
    • Suncatcher

      Suncatcher - 2017-10-16

      We will think about if we can make what you have mentioned in the future.

      Please, do. It will be highly appreciated.
      Thanks in advance.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.