Page 1 of 1

partclone restore image

Posted: Sun Apr 30, 2023 1:34 pm
by zemerdon
Better use the partclone utility instead:

cd /home/partimag/YOURIMAGE/

Depending on compression method used:

If the image is compressed with gzip: cat dir/hda2.ntfs-ptcl-img.gz.* | gunzip | partclone.restore --restore_raw_file -C -s - -o hda2.img

If the image is compressed with zstd: zstdcat dir/hda2.ntfs-ptcl-img.zst.* | partclone.restore --restore_raw_file -C -s - -o hda2.img

mount -o loop hda2.img /mnt -t ntfs -o ro

Note: This needs to be done as root, since partclone requires root permissions to write the image, and the mount command will likely only work as root. For zst images you'll need to install zstd (e.g. apt install zstd)