Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
To make loop devices permanent on CentOS6 or latest Fedora,
op devices permanent on CentOS6 or latest Fedora, you need to enter MAKEDEV command in /etc/rc.local
rhel 6 see /etc/modprobe.d
create loop.conf
add to /etc/modprobe.d/loop.conf
options loop max_loop=64
#You can use following command to create 256 loop devices.
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.
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.
?
Tell it to create the amount of loop devices you need by doing:
/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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.