https://askubuntu.com/questions/69363/mount-single-partition-from-image-of-entire-disk-device#69447
fdisk -lu image.file
losetup -o size_from_above /dev/loop0 image.file e2fsck -f /dev/loop0 mount /dev/loop0 /mnt dd if=/dev/zero of=/mnt/deleteme rm /mnt/deleteme umount /mnt losetup -d /dev/loop0 xz -v image.file