[linux-lvm] Re: Re: Re: Loopback mount a disk image with lvm

Milan Broz mbroz at redhat.com
Mon Jun 9 13:51:48 UTC 2008


Girish V wrote:
> Incidentally, how do I free the loop (/dev/loop0) associated with
> disk.img. I tried "sudo losetup -d /dev/loop0", but I get the error
> message "ioctl: LOOP_CLR_FD: Device or resource busy".
> 
> I tried looking at mount, ps, top etc - but the disk.img associated
> with loop0, was not being used.
> 
> Any ideas?

kpartx -d /dev/loop0

to remove partitions mappings?

Milan




More information about the linux-lvm mailing list