Want to mount a KVM image? losetup /dev/loop0 foo.img kpartx -av /dev/loop0 mount /dev/mapper/loop0p1 /mnt ... unmount /mnt kpartx -dv /dev/loop0 losetup -d /dev/loop0 via 1. More