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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s