[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

max loop devices problem



Hello,

Before all, I'm new, so excuse my possible mailinglisting errors.

I'm trying to mount more than 8 loop file systems, and I can't. I have
followed a thread in this mailinglist telling how to do that, but It
has not work to me.

First, information of my system:
---------------------------------------------------------
# cat /etc/debian_version
testing/unstable

# uname -a
Linux xxxxx 2.6.16-2-686 #1 Sat Jul 15 21:59:21 UTC 2006 i686 GNU/Linux

# lsmod |grep loop
loop                   14472  16

# cat /proc/cmdline
root=/dev/hda1 ro max_loop=64
---------------------------------------------------------

Here I post what I'm doing:
---------------------------------------------------------
# ls /dev/loop*
/dev/loop0  /dev/loop1  /dev/loop2  /dev/loop3  /dev/loop4  /dev/loop5
/dev/loop6  /dev/loop7

/dev/loop:
.  ..  0

# for i in $(seq 8 63) ; do mknod /dev/loop$i b 7 $i ; done
# ls /dev/loop*
/dev/loop0   /dev/loop14  /dev/loop2   /dev/loop25  /dev/loop30
/dev/loop36  /dev/loop41  /dev/loop47  /dev/loop52  /dev/loop58
/dev/loop63
/dev/loop1   /dev/loop15  /dev/loop20  /dev/loop26  /dev/loop31
/dev/loop37  /dev/loop42  /dev/loop48  /dev/loop53  /dev/loop59
/dev/loop7
/dev/loop10  /dev/loop16  /dev/loop21  /dev/loop27  /dev/loop32
/dev/loop38  /dev/loop43  /dev/loop49  /dev/loop54  /dev/loop6
/dev/loop8
/dev/loop11  /dev/loop17  /dev/loop22  /dev/loop28  /dev/loop33
/dev/loop39  /dev/loop44  /dev/loop5   /dev/loop55  /dev/loop60
/dev/loop9
/dev/loop12  /dev/loop18  /dev/loop23  /dev/loop29  /dev/loop34
/dev/loop4   /dev/loop45  /dev/loop50  /dev/loop56  /dev/loop61
/dev/loop13  /dev/loop19  /dev/loop24  /dev/loop3   /dev/loop35
/dev/loop40  /dev/loop46  /dev/loop51  /dev/loop57  /dev/loop62

/dev/loop:
.  ..  0

# chown root.disk /dev/loop*
# chmod 660 /dev/loop*

# ls -l /dev/loop29
brw-rw---- 1 root disk 7, 29 2006-12-03 14:25 /dev/loop29

# ls -l /dev/loop2
brw-rw---- 1 root disk 7, 2 2006-12-03 13:34 /dev/loop2

# mount |grep loop
/home/disk-img/prova1.com-web on /home/vdomains/prova1.com/web type
ext3 (rw,loop=/dev/loop0,usrquota,grpquota)
/home/disk-img/prova1.com-mail on /home/vdomains/prova1.com/vusers
type ext3 (rw,loop=/dev/loop1,usrquota,grpquota)
/home/disk-img/prova2.com-web on /home/vdomains/prova2.com/web type
ext3 (rw,loop=/dev/loop2)
/home/disk-img/prova2.com-mail on /home/vdomains/prova2.com/vusers
type ext3 (rw,loop=/dev/loop3)
/home/disk-img/prova3.com-web on /home/vdomains/prova3.com/web type
ext3 (rw,loop=/dev/loop4)
/home/disk-img/prova3.com-mail on /home/vdomains/prova3.com/vusers
type ext3 (rw,loop=/dev/loop5)
/home/disk-img/prova4.com-web on /home/vdomains/prova4.com/web type
ext3 (rw,loop=/dev/loop6)
/home/disk-img/prova4.com-mail on /home/vdomains/prova4.com/vusers
type ext3 (rw,loop=/dev/loop7)
---------------------------------------------------------

Here the problems:
---------------------------------------------------------
# mount -o loop /home/disk-img/prova5.com-web /home/vdomains/prova5.com/web/
mount: could not find any free loop device

# mount -o loop=/dev/loop29 /home/disk-img/prova5.com-web
/home/vdomains/prova5.com/web/
/dev/loop29: No existe tal dispositivo o dirección

(error message in English could be: "Device not found")

# ls -l /dev/loop29
brw-rw---- 1 root disk 7, 29 2006-12-03 14:25 /dev/loop29

# losetup -f
losetup: could not find any free loop device

# losetup /dev/loop29
loop: can't open device /dev/loop29: No existe tal dispositivo o dirección

# losetup /dev/loop2
/dev/loop2: [0309]:16290 (/home/disk-img/prova2.com-web)

---------------------------------------------------------

I don't know what I'm doing wrong.
Maybe I have to do something in the /dev/loop/ directory? (now is
there only a device called "0" (number zero)):

# ls -l /dev/loop/0
brw------- 1 root root 7, 0 2006-12-03 13:34 /dev/loop/0

# losetup /dev/loop/0
/dev/loop/0: [0309]:16295 (/home/disk-img/prova1.com-web)

I have viewed that if I restart the computer, all the created devices
(from 8 to 63) has disappeared and I have to creat them again...

I will be very pleasured to you If somebody could explain me what I'm
doing wrong.
Thanks.

Pere Manils



Reply to: