SUSE Support

Here When You Need Us

Mount more than 8 loopback devices

This document (3143620) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 10
SUSE Linux Enterprise Desktop 10
SUSE Linux Enterprise Server 9

Situation

/dev/loop8: No such device
Unable to mount more than 8 loopback devices
Mount more than 8 loopback devices

Resolution

There are three steps you need to take to use additional loop devices:

1. Configure the additional loop devices in the kernel
For SLES9:
Append "max_loop=[X]" (minus the quote marks) to the boot line, where [X] is the number of devices you want enabled. You can use up to 255, and remember is numbered starting with 0.
You will probably want to modify your boot loader configuration to append the max_loop parameter automatically.

For SLES10/SLED10
Create /etc/modprobe.d/loop and add the following line to the file:
options loop max_loop=[X]

2. Create the additional loop devices
Use the mknod command to create additional loop devices. For example, if you wanted to use an additional 12 devices, for a total of 20, then you could do the following:

for NODE in $(seq 8 19)
do
mknod -m 660 /dev/loop$NODE b 7 $NODE
done
chown root:disk /dev/loop*

3. Reboot to activate the additional loop devices

Additional Information

The kernel built by SUSE has loopback support built in. However, the default is to have 8 devices enabled, /dev/loop0 - /dev/loop7. If you want to use more than those 8 loop devices, you will need to use the max_loop kernel parameter in SLES9 or the module options parameter in SLES10:

Formerly known as TID# 10100867

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:3143620
  • Creation Date: 29-Nov-2006
  • Modified Date:04-Mar-2021
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.