Restore/Extract clonezilla Images without clonezilla

Today I needed to access the contents of a HD image I made earlier with clonezilla. Since I was only interested in accessing some files within the image (and not in restoring it back to a HD), I was looking for a way to extract the clonezilla image into something I could mount form my Linux box. After some “googeling”, I figured out how this could be done.

Make sure, to have “partclone” installed, on debian/ubuntu:

sudo apt-get install partclone

Now, change to the directory where your clonezilla stuff is located (this is the directory with a lot of files starting with the name of the partition you cloned, e.g. sda1, and ending with aa, ab, a…). Form here (as root) use this command to restore the clonezilla image into a single file image:

cat sda1.ntfs-ptcl-img.gz.* | gzip -d -c | partclone.restore -C -s - -O /tmp/sda1.img

This takes some time, but finally you can mount the single file image like so:

mount -o loop -t ntfs /tmp/sda1.img /mnt

Leave a Reply

You must be logged in to post a comment.