contents of /etc/modules
Where do I find documentation on /etc/modules?
Specifically, I found a post that said to add "option" as a line in this file. I cannot find any details about a module called "option" and my efforts to web search swim in an ocean of search results using the word "option". The command modprobe --list tells me which modules are available (already built) for my current kernel. How do I discover what any given something.ko file does? The command modinfo whatever gives a geek dump, but is hardly descriptive or informative outside of kernel developer land. Please help, ~~~ 0;-Dan |
Did you try Googling the following keywords?
Quote:
And with 600+ posts you still don't know that /etc/modules has nothing to do with the desktops? |
Quote:
Quote:
Thanks for your time, ~~~ 0;-Dan |
The is, of course, no module called "option." I suspect that you have misunderstood what you read, which you have reported as "add "option" as a line in this file." The post should, most likely, have said something like "Add the option in the /etc/modules.d/<module>.conf file," where "<module>" is the name of the kernel module for which you were to set the option.
The "geek-speak" you see when you do a modinfo <module> is, among other things, a list of the options you can set and the type of argument that each option accepts. See man modprobe.conf for details of how the options are specified. Here is the section for that file about setting options: Code:
options modulename option... |
Quote:
Quote:
and also for future use find time to scroll down this page and check out all the available options: http://www.linuxquestions.org/questions/ |
Moved: This thread is more suitable in Linux Kernel and has been moved accordingly to help your thread/question get the exposure it deserves.
|
Take a look at the "modinfo" program. It lists what options a particular module supports.
Code:
/sbin/modinfo acpi_cpufreq Code:
Module parameters can be specified in /etc/modprobe.conf.local, e.g. as: Or you can google for it, but it may be for a different kernel version. |
Quote:
Code:
modprobe --list | grep -5 option Now what, ~~~ 0;-/ Dan |
Quote:
Code:
prompt$ modinfo option |
O.K., I stand corrected. :redface:
So, according to the modinfo you posted, that's a USB Driver for GSM modems, so, if you have a GSM modem plugged into one of your USB ports, you want the "option" module loaded. (I still think that's a weird module name. :) ) Try the command su -c 'modprobe option' and tell us if that works. (Note that the driver is specific for the Ubuntu 2.6.32-30-generic-pae kernel. The uname -r command should tell you if that's the kernel you have.) If the modprobe command works, "option.ko" kernel module should be automatically loaded whenever you boot. Oh, also from the modinfo output you posted, it look like the option driver has only option you can set: "debug," to print debugging messages. <edit> P.S. - This is not a response to the question you asked: "Where do I find documentation on /etc/modules?" If you had asked "How do I install the option module in the kernel?" or, at least, given us the URL of the post to which you referred when you started this thread, or even told us that you were trying to get a USB modem working, our responses would, I think, have much more closely related to what you needed to know. Note that Ubuntu does not use the (depreciated) /etc/modules.conf file for listing modules to be installed in the kernel. </edit> |
Quote:
http://ubuntuforums.org/showthread.php?t=1581804 ~~~ 0;-Dan PS/ Thanks to moderators for moving the thread. |
Quote:
I then tried this: Code:
prompt$ sudo modprobe -l | grep option Quote:
{soapbox} I appreciate the attempt to segregate those system start-up and configuration details that happen all the time (usually in /usr/lib somewhere) from per-system local "requests" to alter this standard behavior (typically /etc/somewhere). However, all of this is changing so much and so fast, and sadly is often different from distro to distro that much confusion and parochialism are often an unintended result. {/soapbox} ~~~ 0;-Dan |
A few of comments:
The depreciation of the /etc/modules.conf file is part of a general Linux community consensus that each application or program should have its own configuration file or directory, and separable parts of that configuration should be in different files. This separates the configuration task into independent "objects" that can be changed (or not changed) independently of other parts of the configuration task. For example, instead of a single /etc/modules.conf file for all the modules being loaded (which need configuration settings), a /etc/modules.d directory is used which contains files for each module needing some special handling. (By default, Ubuntu populates that directory with kernel modules that have been "blacklisted," which a modules that you should not use. (Usually because they will cause your system fo crash.)) |
All times are GMT -5. The time now is 05:44 AM. |