2 examples for losetup
# Mount an image of a whole disk created with dd # -P finds the partitions losetup -P /dev/loop0 /path/to/super/cool/image.img
# Create loop devices automatically from a complete disk image losetup -Pf /path/to/disk_image.img
# Mount an image of a whole disk created with dd # -P finds the partitions losetup -P /dev/loop0 /path/to/super/cool/image.img
# Create loop devices automatically from a complete disk image losetup -Pf /path/to/disk_image.img