Mount Partclone Image

Today I needed to extract some files from a backup I created using Clonezilla. It’s an ext4 partition compressed with bzip2, here are the commands I used.

cat sda1.ext4-ptcl-img.bz2.* | bzip2 -d -c | partclone.ext4 -C -r -W -s - -O sda1.img
mount -o loop -t ext4 sda1.img /mnt