Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a image which was taken with Clonezilla as SAVEDISK on a 160GB harddrive.
Now a newer version of the PC released with a 120GB harddrive, the space in use is just 20GB

Is there a way I can force Clonezilla (or any other program) to manipulate the images 'original size' to 120GB or lower, so Clonezilla can write it to the new PC?

share|improve this question
I don't know how clonezilla works, but if there are only 20GB of data, what is the exact problem you encounter? –  Michael K Sep 7 '11 at 10:42
Since the image was taken of a 160GB disk, it includes a 160GB partition table, which won't allow me to override it. –  Sander Sep 8 '11 at 5:56
Is there no way to 'open' the image and copy the data away? –  Michael K Sep 8 '11 at 6:43
I have various .aa .ab .ac files (sda1.ntfs-ptcl-img.gz.aa till sda1.ntfs-ptcl-img.gz.ae) seeming this is the image of the harddisk, I think I can un-aa it into one .img.gz file, but then I need a way to write it back. –  Sander Sep 8 '11 at 6:58
Then I am afraid, I cannot say very much here anymore. I do not know enough about clonezilla. I can only suggest you to ask this in the clonezilla forums/support. –  Michael K Sep 8 '11 at 7:56

3 Answers 3

up vote 3 down vote accepted

Clonezilla relies on Partclone to save and restore filesystems. Although it's useful, even if you use the -icds option, that alone isn't enough. When restoring the original filesystem on the smaller disk, Partclone will encounter a seek error trying to write beyond the disk boundary. So this is a limitation of not only Clonezilla, but the underlying tools it uses.

What you can do however, is to restore the image temporarily on a 160GB disk, use a filesystem resize tool such as ntfsresize (for NTFS) or resize2fs (for ext3/4) to shrink the filesystem, say to 25GB. Resizing the partition table, which GParted does, isn't necessary. Use Clonezilla again to create a new image using the "savedisk" option.

When restoring the image on the smaller disk, use the -icds option to skip Clonezilla checking if the disk is the same or larger than the original disk. Since you shrunk the filesystem, Partclone won't encounter a seek error and your data will be restored on your smaller disk.

If you used the option to restore the partition table proportionally (-k1), Clonezilla will create a proper partition table and resize (expand) the original filesystem so that all the free space on the new disk becomes available.

EDIT: The -icds option isn't passed to ocs-expand-mbr-pt, so this step currently fails. A bug report has been filed about this with the project. The bug has been fixed.

share|improve this answer

If the space is not in use, go into expert mode and enable -icds then restore the image. It will skip the partition size check and will succesfully restore it (only if < 120 GB is in use).

share|improve this answer

Restore the image to a 160GB or larger harddrive ... could be virtual.
Boot that machine with PartedMagic Live CD.
Resize down the partition with parted.

Put drive in as a secondary drive in windows or Linux,
and resize using parted, gparted, or windows disk manager.

share|improve this answer
I think that this is the easiest way to do it. –  Sekhemty May 8 '13 at 20:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.