A recurring problem we have is that the computers we use to build our master images on may have larger hard drives than some of the target systems' drives. Its well-known that Clonezilla won't put a disk image on a smaller drive.
Outside of finding a physical drive that is smaller/as small as all of our target systems, I've used this method to get around our problem:
- After preparing the master computer, use gparted to shrink the partition(s) so they will all fit on the smaller size disk.
- Create a VM with a hard drive of the target size.
- Create the right partition(s) on the VM by installing a copy of the target OS on the VM.
- Use the save/restore partition functionality in Clonezilla to copy each partition from the master computer to the VM.
- Create an image of the VM. Use this image as the golden master for imaging computers.
Is there any way to use gparted (or another program) to resize the master drive before cloning it? I know how to resize individual partitions, but it would be really, really handy if I could do something to make Clonezilla think the original drive was smaller. That way I could use the restore disk functionality to make an image that was small enough for all target systems.
Due to various issues, building the master image directly in a VM is not feasible for our situation.