Re: mount: could not find any free loop device



On Wed, Jun 27, 2007 at 12:36:28AM +0200, Andras Simon wrote:
On 6/27/07, Andras Simon <szajmi@xxxxxxxxx> wrote:
I'm trying to

mount -o loop,offset=32256 /usr/local/kvm-images/WinXP.raw /mnt/

as I've done successfully several times before, but now I get

mount: could not find any free loop device

What can possibly use loop devices? There are eight processes called
loop0 through loop7, all started by kthread. But I've no idea what
they do and if it's them who are using the loop devices.

This is on Fedora 7.

losetup -a shows

/dev/loop0: [080c]:14073859 (/usr/local/kvm-images/WinXP.raw), offset 32256
/dev/loop1: [080c]:14073859 (/usr/local/kvm-images/WinXP.raw), offset 32256
/dev/loop2: [080c]:14073859 (/usr/local/kvm-images/WinXP.raw), offset 32256
/dev/loop3: [080c]:14073859 (/usr/local/kvm-images/WinXP.raw), offset 32256
/dev/loop4: [080c]:14073859 (/usr/local/kvm-images/WinXP.raw), offset 32256
/dev/loop5: [080c]:14073859 (/usr/local/kvm-images/WinXP.raw), offset 32256
/dev/loop6: [080c]:14073859 (/usr/local/kvm-images/WinXP.raw), offset 32256
/dev/loop7: [080c]:14073859 (/usr/local/kvm-images/WinXP.raw), offset 32256

and

losetup -d /dev/loop0

etc. gets rid of them, mount works again. What is still a mystery is
why all these loop devices were set up.


Do you use kvm? The setup scripts could be buggy and forgetting to
remove the device.

--
lfr
0/0

Attachment: pgpuj1uJy9ozb.pgp
Description: PGP signature

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Relevant Pages

  • Re: Loopback as user
    ... >> I think you have to change the permission on the loop devices, ... I would like do without getting root once. ... they could create a user-writable block dev for ... /etc/fstab), as otherwise a user could mount over /, or mount a volume ...
    (comp.os.linux.misc)
  • Re: mount: could not find any free loop device
    ... > mount: could not find any free loop device ... > they do and if it's them who are using the loop devices. ...
    (Fedora)
  • Re: loop devices removable
    ... modified) pmount to mount them. ... I'm wondering if fuse would be suited better. ...
    (Linux-Kernel)
  • bug in 2.6.22-rc1: loop devices limited to one single device
    ... The number of available loop devices is reduced from 8 (conventional ... "mount: could not find any free loop device" ... Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail ...
    (Linux-Kernel)
  • Re: mount: could not find any free loop device
    ... On 6/27/07, Andras Simon wrote: ... could not find any free loop device ... they do and if it's them who are using the loop devices. ... mount works again. ...
    (Fedora)