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

One thought on “Mrepo (mount: could not find any free loop device)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.