Mrepo (mount: could not find any free loop device)

When attempting to mount my loopback isos in CentOS5 via mrepo I ran into the following error

mrepo –remount                                           
mount: could not find any free loop device                                     
mount: could not find any free loop device                                     
mount: could not find any free loop device

Apparently there is a default limit of 8 for the number of loopback devices that you can mount, however this can be changed by adding the following to /etc/modprobe.conf. Below I am changing the default of 8 to 64.

options loop max_loop=64

Then umount your currently mounted isos

mrepo –umount

Then unload and reload the loop module

rmmod loop && modprobe loop

Then mount your isos again

mrepo –remount

Comments

One response to “Mrepo (mount: could not find any free loop device)”

  1. momkvi Avatar
    momkvi

    Thanks Fatmin! You’re the best! This fixed my problem. You are awesome!
    You are sexy.

Leave a Reply

Discover more from Chris Paquin

Subscribe now to keep reading and get access to the full archive.

Continue reading