4
votes
1answer
2k views

losetup -d giving : device busy

I am mounting a KVM disk (LVM) following these commands : # losetup /dev/loop0 foo.img # kpartx -av /dev/loop0 # mount /dev/mapper/loop0p1 /mnt # unmount /mnt # kpartx -dv /dev/loop0 # losetup -d ...