Linux increase number of loop filesystems allowed to be mounted simultaneously

You can mount DVD / CD iso images using loop module under Linux (Sun Solaris UNIX user can try out lofiadm command) . It would be good idea to increase the number of loop filesystems allowed to be mounted simultaneously by adding the following line to /etc/modprobe.conf file:

ADVERTISEMENTS

Task: Set maximum number of loop devices

Open Linux kernel module configuration file using text editor:
# vi /etc/modprobe.conf

Append loop module configuration parameter:
options loop max_loop=256

Where,
=> loop : module name

=> max_loop=256: Maximum number of loop devices (1-256)

This is useful on dedicated installation server. For example internally we have over 5 Linux distro ISO downloaded with new and old version number. We use iso for HTTP or FTP installation over LAN. By increasing limit to max you can avoid problems.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source & DevOps topics via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
1 comment… add one
  • fraterneo Apr 25, 2013 @ 4:34

    Hello. This site is a great source for help in Linux issues. Thanks for all your work.

    Right now I am trying to edit the file /etc/modprobe.conf under Fuduntu (Fedora based distro) but it does no exists and modinfo loop says ERROR: Module loop not found.

    Please, help me.

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.