TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:3733] modules won't load automatically (fwd)



Modules that aren't automagically loaded (scsi, network, sound, etc) are
generally called from /etc/conf.modules.  Chances are that this was
somehow overwritten or is no longer queried as the machine comes up.  A
RedHat 5.2 system (or anything using modprobe) requires /etc/conf.modules
to contain information about the sound and ethernet cards, for example.
I'm assuming you made modules and made modules_install, and they're now in
/lib/modules/preferred which is actually a link to 
/lib/modules/kernel-version underneath which are the compiled modules for
network, filesystems, scsi disks, soundcards, etc. If there is no
conf.modules and the appropriate path to the modules isn't set,
modprobe assumes that the path is /lib/modules/`uname -r`  The format for
the conf.modules files is pretty simple.  Here's what mine looks like (I
am running a highly-modularized 2.1.131):
  # I can't boot without this guy.
  alias scsi_hostadapter aic7xxx
  # I don't like appletalk and ipx.
  alias net-pf-4 off
  alias net-pf-5 off
  alias eth0 eepro100
  # I want full-duplex 100mbps!
  options eepro100 options=0x30
  # How else to hear mp3's?
  alias sound sb
  options -k sb io=0x220 irq=5 dma=1
  alias midi opl3
  options -k opl3 io=0x388

Also, consult the man pages for depmod and modprobe for more help with the
conf.modules files.

Peter Lukas

On Mon, 25 Jan 1999, Ben Luey wrote:

> > > 
> > > I have redhat 5.2 and kernel 2.2.0pre6. My modules aren't loading as need
> > > ed. My soundcard wouldn't work for a while but when I ran sndconfig it
> > > started working. I now think that sndconfig manually loaded the module and
> > > that is why it wouldn't work.
> > > 
> > > ncpfs wouldn't work until I ran "modprobe ncpfs.o", same with autofs.o and
> > > I'm having problems with mounting vfat disks now (is there a modules
> > > besides vfat.o and fat.o  that I need). What can I do so the kernel will
> > > load and unload modules as needed?
> > > 
> > Have you tried running 'depmod -a' ?  That will set up your module dependencies.
> 
> I did and I think that part is working fine because "modprobe something.o"
> doesn't ask me where the module is, it just loads it. Hmmmm....
> 
> 
> 
> Ben Luey
> lueyb@carleton.edu
> ICQ: 19144397
> 
> We have no discipline in this bureaucracy. We never fire anybody. We never
> reprimand anybody. We never demote anybody. We always promote the 
> sons-of-bitches that kick us in the ass.      -- Richard Nixon
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> Try our website: http://tclug.real-time.com
> 
>