free loop device question
Hello all
I have a question about loop device creation. On a centos 6 system, I need to mount a lot of ISO's and need extra loop devices. I want to make the devices permanent. I follow the steps described on the site listed below, and they seem to jive with what I've seen in other places. http://seriousbirder.com/blogs/linux...e-loop-device/ Do the instructions here make sense? Thanks in advance |
Yeah, why?
|
Sorry, didn't make my post very clear. I followed those instructions, and when the system is rebooted, all my loop devices are gone. I end up with the default number which isn't enough. I can recreate them fine, but it seems odd that I have to do that.
|
Member Response
Hi,
Welcome to LQ! Quote:
Quote:
|
I guess I don't know what I don't understand. The instructions are pretty plain. So I don't know how I have missed anything:
# cat /etc/rc.local #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local logger "/etc/rc.local starting tracd" #tracd -d -s -p 8000 --pidfile=/var/run/tracd.pid /var/www/trac /usr/bin/python /usr/sbin/tracd -d -s -p 8000 --auth=trac,/var/www/trac/.htpasswd,ssc-dcs2 --pidfile=/var/run/tracd.pid /var/www/trac MAKEDEV /dev/loop exit 0 my loop.conf # cat /etc/modprobe.d/loop.conf options loop max_loop=32 I can create them manually as I said, MAKEDEV -v /dev/loop etc..... But using the above configuration, when I reboot I only have 8 loop devices. Maybe it was that dam meteor, it messed everything up. |
Ok, I'll answer this myself. I had time to look at it this morning.
Putting MAKEDEV /dev/loop in the rc.local doesn't work. but, putting MAKEDEV -v /dev/loop does work. ? |
Quote:
/sbin/MAKEDEV -m 32 /dev/loop By default, MAKEDEV /dev/loop will only create the first 8 devices and since that's what you have in your rc.local, it's basically doing nothing since by default your system will create 8 to start with. Use -m ## to specify the number you need, I think the max still is 256 but if you only need 32, just create 32. |
All times are GMT -5. The time now is 05:08 AM. |