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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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
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
Please, do. It will be highly appreciated.
Thanks in advance.