Kpartx
From DWIKI
FAQ
Map devices of disk
kpartx -av /some/disk
and you'll find them in /dev/mapper
What loopback devices are in use?
losetup
Release loopback device
First try
kpartx -d
then
losetup -d /dev/loop1
kpartx -av /some/disk
and you'll find them in /dev/mapper
losetup
First try
kpartx -d
then
losetup -d /dev/loop1