Bug#785251: kpartx: unmapping with image files

westlake westlake2012 at videotron.ca
Wed May 13 20:36:57 UTC 2015

Package: kpartx
Version: 0.5.0-6
Severity: normal

kpartx -a <path to raw image file> adds /dev/mapper/<loop0pN> entries 
successfully, however kpartx -d <path to raw image file> doesn't appear 
to do anything as mappings still show up in /dev/mapper and losetup

in order to delete mappings, one has to do kpartx -d /dev/loopN then 
apply losetup -d /dev/loopN

More information about the pkg-lvm-maintainers mailing list