Restore a single partition from a Clonezilla disk image

backupclonezillacloningrestore

I was thinking of performing a Clonezilla backup and was wondering what backup mode to choose. Generally speaking, Clonezilla offers the following backup options:

  • savedisk: Save a full disk image
  • saveparts: Save images of specific partitions

Correspondingly there are two restore modes:

  • restoredisk: Restores full disk image
  • restoreparts: Restores partition images

What I am looking for is a hybrid of these two options. I would like to be able to both restore specific partitions and restore my full hard drive in case of a total failure. Does Clonezilla support this restoration pathway out of the box?

So far I haven't been able to find any official documentation regarding this. The only reference I did find was a mailing list discussion from 2010 which pointed to imgconvert, a custom script which can supposedly convert disk images to partition images. Unfortuantely I have no idea if this script still works. After all it's 5 years old.

That's why I wanted to ask here if anyone had any experience with this use case of Clonezilla and could vouch for this solution (or a different one, for that matter).

Best Answer

Yes, just use for restore image from Clonezilla:

cat sda5.ext3-ptcl-img.gz.a* | gunzip -c | partclone.restore -d -s - -o /dev/sda5
Related Question