LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 10-21-2005, 11:22 PM   #1
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
why do i have to modprobe some modules, but not others?


i compiled a new kernel recently and for some reason i installed the iso filesystem support module(for reading cdroms) as a module. i figured the "Automatic kernel module loading" that i had enabled would take care of it, but when i put the cdrom in and tried to mount it, i couldnt. i had to modprobe the driver before i could mount a cdrom. what i dont understand is my usb thumb drive, for example relies on a bunch of scsi and usb-mass-storage drives and they get loaded up as soon as i stick it in.
 
Old 10-22-2005, 01:55 AM   #2
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
OK, I'll bite on this one. There are two ways to do this. You can do a module or compile it into the kernel itself. Personally, I hate modules, I compile everything in that I can. My sensors and nvidia drivers are all I have as modules.

Here is the screen:

Code:
  │ │                           <M> Winbond W83781D, W83782D, W83783S, W83627HF, Asus AS99127F                             │ │
  │ │                           < > Winbond W83L785TS-S                                                                    │ │
  │ │                           <M> Winbond W83627HF, W83627THF, W83637HF, W83697HF                                        │ │

Note the "M" in there, that means it will make it as a module and you either have to load it manually or tell it to load it when booting.

Another example:

Code:
  │ │                                     <*> ISA Bus support                                                              │ │
  │ │                                     <*> Nvidia Nforce2                                                               │ │
The "*" means it will be compiled into the kernel, NOT a module. It also means that if you want to change it, you will have to recompile a new kernel and reboot.

Now to the problem you are having. If you want the module to load automatically when you boot, just add it to the file in /etc/modules.autoload.d/kernel-2.6. That assumes you are using a 2.6 kernel. If you are using a 2.4 then add it to kernel-2.4 file instead. It should load the module during the boot process the next time.

That help any?

 
Old 10-22-2005, 03:33 AM   #3
hypexr
Member
 
Registered: Oct 2003
Location: USA Fresno Callifornia
Distribution: Gentoo (workstation), ArchLinux (file/mail server), Freebsd (web server), Ubuntu (laptop)
Posts: 115

Rep: Reputation: 16
When your usb is getting plugged in a service called hotplug is getting invoked. This is different than the autoloading of kernel modules although conceptually they seem related.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
modprobe: FATAL: Could not load /lib/modules/.../modules.dep Ankardo Debian 9 02-01-2011 05:09 PM
Update-modules: No longer managing /lib/modules/modprobe.conf? geekzen Debian 0 04-03-2004 06:49 PM
modprobe cant find modules but they are in /lib/modules/'uname blanny Linux - General 15 09-10-2003 11:05 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 01:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration