Linux increase number of loop filesystems allowed to be mounted simultaneously

Posted on in Categories Linux, Linux distribution last updated August 29, 2007

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:

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

=> 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.

How to: Mount an ISO image under Linux

Posted on in Categories Debian Linux, File system, Howto, Linux, RedHat/Fedora Linux, Suse Linux, Sys admin, Tips, Ubuntu Linux last updated March 29, 2004

An ISO image is an archive file (disk image) of an optical disc using a conventional ISO (International Organization for Standardization) format. ISO image files typically have a file extension of .ISO. The name “ISO” is taken from the ISO 9660 file system used with CD-ROM media, but an ISO image can also contain UDF file system because UDF is backward-compatible to ISO 9660.

You can mount an ISO images via the loop device under Linux. It is possible to specify transfer functions (for encryption/decryption or other purposes) using loop device.

But, how do you mount an ISO image under Linux? You need to use mount command as follows: