Skip to content
Newer
Older
100644 61 lines (40 sloc) 1.44 KB
b13ed51 @dagwieers Changing Depo into mrepo.
authored
1 Loop devices
2 ============
3
42f7eef @dagwieers Improved text about kernels with loop module compiled-in (Scott Worth…
authored
4 If you see "mount: could not find any free loop device" you have
5 to increase the number of loop devices of the loop module.
6
7
b13ed51 @dagwieers Changing Depo into mrepo.
authored
8 Increasing the number of loop devices
9 -------------------------------------
42f7eef @dagwieers Improved text about kernels with loop module compiled-in (Scott Worth…
authored
10 Unfortunately some distributions (eg. SLES9 or RHEL6) has the loop module
c1a075b @solj Fixes for some minor spelling errors
solj authored
11 compiled as aprt of the kernel, therefore you have to add 'max_loop=64' to
42f7eef @dagwieers Improved text about kernels with loop module compiled-in (Scott Worth…
authored
12 the kernel parameters directly and you require a reboot.
13
14 In case the loop module is a loadable module, you can simply add the
15 following to /etc/modprobe.conf on a 2.6 kernel (or /etc/modules.conf on
b13ed51 @dagwieers Changing Depo into mrepo.
authored
16 a 2.4 kernel).
17
18 ----
19 options loop max_loop=64
20 ----
21
22 To make this active, unmount all loop-mounts and then remove the loop
23 module from the kernel:
24
25 ----
26 rmmod loop
27 ----
28
29 Or alternatively, reboot your system :)
30
31
32 Verify the maximum number of loop devices
33 -----------------------------------------
34 You can verify the new maximum number of loop devices by doing:
35
36 dmesg | grep loop:
37
38 You should see something similar to:
39
40 Aug 9 16:36:20 emyn kernel: loop: loaded (max 256 devices)
41
42
43 Creating extra loop device entries
44 ----------------------------------
45 Also make sure you have enough devices available. You can
46 check how many you have by doing:
47
48 ls -d /dev/loop*
49
50 An easy way to create more, is by doing:
51
52 for i in $(seq 0 255); do
53 mknod -m0660 /dev/loop$i b 7 $i
54 chown root.disk /dev/loop$i
55 done
56
57 You can have up to 256 loop devices mounted.
58
59 ---
c1a075b @solj Fixes for some minor spelling errors
solj authored
60 Please send me improvements to this document.
Something went wrong with that request. Please try again.