1

I am using kpartx to map the paritions of an image file to device mapper. kpartx maps the image to one of the free loop devices, for example, /dev/loop0

Is there a way to query what image is mapped to which device?

for example a command that takes in /dev/loop0 for instance and return the path for the image

1 Answers1

1

The information is available with /sbin/losetup -a.