Can someone please tell me where you specify the modules to be loaded at boot-time. I've been reading the module How-To and browsing the /etc directory, but I can't seem to find such a configuration file.
Hi,
P> Can someone please tell me where you specify the modules to be loaded at
P> boot-time. I've been reading the module How-To and browsing the /etc
P> directory, but I can't seem to find such a configuration file.
/etc/modules.conf (or conf.modules)
Bye.
Hi I know about the file /etc/modules.conf, but it didn't look to me like it was what I was looking for. All it contains, mostly, are lines like this: alias sound-service-0-0 snd-mixer-oss Is this how you actually tell Linux to load a module? What do you write in /etc/modules.conf to load loop_fish2.o? On Sunday 16 March 2003 14:55, da_bug@gmx.net wrote:
Hi,
P> Can someone please tell me where you specify the modules to be loaded at P> boot-time. I've been reading the module How-To and browsing the /etc P> directory, but I can't seem to find such a configuration file.
/etc/modules.conf (or conf.modules)
Bye.
Hi,
P> Is this how you actually tell Linux to load a module? What do you write
P> in /etc/modules.conf to load loop_fish2.o?
hm, I only load standard-modules like ethernet or something with
modules.conf, if I want to load special stuff (like your module)
I do this in the init-scripts (/etc/init.d/rcX.d/...)
Just do a 'modprobe loop_fish2' there and you are done...
Perhaps anyone of the others here knows if there is a generic
way for loading "non-standard"-modules in modules.conf?
Bye.
da_bug@gmx.net wrote:
Hi,
P> Is this how you actually tell Linux to load a module? What do you write P> in /etc/modules.conf to load loop_fish2.o? hm, I only load standard-modules like ethernet or something with modules.conf, if I want to load special stuff (like your module) I do this in the init-scripts (/etc/init.d/rcX.d/...) Just do a 'modprobe loop_fish2' there and you are done...
Perhaps anyone of the others here knows if there is a generic way for loading "non-standard"-modules in modules.conf?
Well you can add entries in /etc/modules.conf for them if you know what to put in the file. But that just lets kmod automatically load them as they are needed. You probably want to put the actual commands in /etc/init.d/boot.local if you don't know what to put in modules.conf. Mark
On Sunday 16 March 2003 16:13, Mark Hounschell wrote: [snip]
them as they are needed. You probably want to put the actual commands in /etc/init.d/boot.local if you don't know what to put in modules.conf.
Mark
Yes, that was exactly the sort of file I was looking for and it does the job. Didn't want to mess with the automatically created configuration files (SuSEconfig and all that). Thanks for all help, everyone.
-----Original Message-----
From: Pantaleimon
Can someone please tell me where you specify the modules to be loaded at boot-time. I've been reading the module How-To and browsing the /etc directory, but I can't seem to find such a configuration file.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
You will find the file as follows vi /etc/sysconfig/kernel Make your changes and then: mk_initrd lilo (or make any required grub changes. Ken
the addition of modules does not seem to be clear. if we are to add a line to /etc/sysconfig/kernel, why does modules.conf exist? I am concerned that if I make a booboo in the kernel file, I will screw up my boot, whereas if I make a booboo in the modules.conf file, and run depmod, I just get some errors. Am i on track? Qs: 1) what is the sequence of events that effect modules? (samples) 2) exactly what commands neet to be in: /etc/sysconfig/kerner /etc/modules.conf I am trying to load loadules for a parrelel ort 1gb sparq drive (parride,epat and pd) On Sunday 16 March 2003 07:19, Ken Schneider wrote:
-----Original Message----- From: Pantaleimon
To: suse-linux-e@suse.com Date: Sun, 16 Mar 2003 14:46:49 +0100 Subject: [SLE] Loading modules Can someone please tell me where you specify the modules to be loaded at boot-time. I've been reading the module How-To and browsing the /etc directory, but I can't seem to find such a configuration file.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
You will find the file as follows
vi /etc/sysconfig/kernel
Make your changes and then:
mk_initrd lilo (or make any required grub changes.
Ken
-- John Sowden American Sentry Systems. Inc. 1221 Andersen Drive San Rafael, CA 94901 U.L. Listed Central Station Alarm Service Serving the San Francisco Bay Area Since 1967 jsowden@americansentry.net http://www.americansentry.net
John Sowden wrote:
the addition of modules does not seem to be clear. if we are to add a line to /etc/sysconfig/kernel, why does modules.conf exist? I am concerned that if I make a booboo in the kernel file, I will screw up my boot, whereas if I make a booboo in the modules.conf file, and run depmod, I just get some errors. Am i on track?
Qs: 1) what is the sequence of events that effect modules? (samples) 2) exactly what commands neet to be in: /etc/sysconfig/kerner /etc/modules.conf
/etc/sysconfig/kernel is only to tell mk_initrd which modules you need in your initrd file for the boot process. /etc/modules.conf describes the modules and module dependencies to the kernels module loader "kmod". man modprobe.... put your commands in /etc/init.d/boot.local and leave modules.conf alone if possible. That way you can't hurt anything. Mark
On Sunday 16 March 2003 13:36 pm, John Sowden wrote:
the addition of modules does not seem to be clear. if we are to add a line to /etc/sysconfig/kernel, why does modules.conf exist? I am concerned that if I make a booboo in the kernel file, I will screw up my boot, whereas if I make a booboo in the modules.conf file, and run depmod, I just get some errors. Am i on track?
The way I understand it... (and this will give others something to shoot at) is: 1) The entries in /etc/sysconfig/kernel are those modules to be placed in /boot/initrd for the initrd loaded. Initrd is used to place modules that NEED TO BE AVAILABLE during the boot process. So for example, if you have scsi drives on your system, then you will need a scsi driver available during the initial moments of the boot process. If the scsi code isn't compiled into the kernel but is loaded as a module, then that module needs to be place into /boot/initrd to be available at boot time. 2) The modules.conf describes more about HOW a module is loaded rather than WHEN (but it might do both for some modules) It can be used to provide an alias name for a module or options that need to go with a module. So when a module does get loaded (after boot time) more information can be supplied for that module. I think the above is basically correct (especially part 1).
Qs: 1) what is the sequence of events that effect modules? (samples) 2) exactly what commands neet to be in: /etc/sysconfig/kerner /etc/modules.conf
I am trying to load loadules for a parrelel ort 1gb sparq drive (parride,epat and pd)
On Sunday 16 March 2003 07:19, Ken Schneider wrote:
-----Original Message----- From: Pantaleimon
To: suse-linux-e@suse.com Date: Sun, 16 Mar 2003 14:46:49 +0100 Subject: [SLE] Loading modules Can someone please tell me where you specify the modules to be loaded at boot-time. I've been reading the module How-To and browsing the /etc directory, but I can't seem to find such a configuration file.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
You will find the file as follows
vi /etc/sysconfig/kernel
Make your changes and then:
mk_initrd lilo (or make any required grub changes.
Ken
-- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 03/16/03 13:49 + +----------------------------------------------------------------------------+ "Let us so endeavor to live, that when we come to die, even the undertaker will be sorry." - Mark Twain.
On Sun, 16 Mar 2003 10:36:30 -0800
John Sowden
the addition of modules does not seem to be clear. if we are to add a line to /etc/sysconfig/kernel, why does modules.conf exist?
The .conf "says" configuration. The modules.conf file is to specify options when a modules gets loaded, not to load the module. Although an option to 1 module can be to load another module.
I am concerned that if I make a booboo in the kernel file, I will screw up my boot, whereas if I make a booboo in the modules.conf file, and run depmod, I just get some errors. Am i on track?
Qs: 1) what is the sequence of events that effect modules? (samples)
Usually when an application needs a module, which is not already loaded, the kernel module loader automatically loads it, and checks modules.conf to see what options you specified for that module. So either load the module yourself , by putting something in boot.local or some init file to call an app which needs the module. Or play with it yourself. insmod some-module will try to load the module. modprobe some-module will try to load the module with some extra checking for module dependencies. Usually use modprobe. rmmod will remove modules, but you must remove them in a specific order of dependencies. So try try insmod loop-fish2 then do lsmod and see it there. Then rmmod loop-fish2 (might not have the module name right) -- use Perl; #powerful programmable prestidigitation
participants (7)
-
Bruce Marshall
-
da_bug@gmx.net
-
John Sowden
-
Ken Schneider
-
Mark Hounschell
-
Pantaleimon
-
zentara