partclone restore image

Post Reply
zemerdon
Site Admin
Posts: 310
Joined: Mon Jan 23, 2023 8:13 pm

partclone restore image

Post 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)
Post Reply