Re: loading modules?

From: John-Paul Stewart (jpstewart_at_sympatico.ca)
Date: 09/07/03


Date: Sun, 07 Sep 2003 14:11:25 -0400

Dave Brown wrote:
>
> In article <bjcduk$l30$1@bagan.srce.hr>, Sandro Mangovski wrote:
> > Add your module to /etc/modules. For example my /etc/modules looks like
> > this:
> >
> > # /etc/modules: kernel modules to load at boot time.
> > #
> > # This file should contain the names of kernel modules that are
> > # to be loaded at boot time, one per line. Comments begin with
> > # a "#", and everything on the line after them are ignored.
> >
> > af_packet
> > ...
>
> What distribution does this? (I don't know of one that has such a file,
> /etc/modules, but it would not be helpful for RedHat, or SuSE. I presume
> that the startup scripts for this setup would go thru the file and
> 'modprobe' them.

That's a Debian file. On startup, one of the init scripts
(/etc/init.d/modutils to be specific) will 'modprobe' every module named
in /etc/modules.

> As I understand it, this is not the kernel's method for loading modules,
> which uses /etc/modules.conf to associate logical devices to modules.

That's still used, too, for the usual purpose. /etc/modules is just a
list of names to 'modprobe' at boot time. Nowhere in /etc/modules.conf
can you specify that modules are to be loaded at boot time. (You can
hope that kmod will load them automatically, but that's not the same
thing.)



Relevant Pages

  • Re: modprobe options not recognized at startup [almost SOLVED]
    ... loaded with its correct options in first instance, ... usb-storage module, I force the removal of the scsi_mod module ... modprobe for scsi_mod, this time with the desired options. ... boot time, but as I just need it to work at boot time on my ...
    (comp.os.linux.setup)
  • modprobe at boot time
    ... alias vlan 8021q ... at boot time. ... first time i set up a vlan, i get lots of extra messages that i ... don't get if i do a modprobe first. ...
    (comp.os.linux.setup)
  • RE: startup options
    ... I believe all the startup scripts are in /etc/init.d ... Instead of removing them try just removing the execute attribute from the ... chmod -x <filename> ... what file controls what programs are started up at boot time. ...
    (Debian-User)
  • devfs oops on module missing
    ... With 2.6.0-test3 and 2.6.0-test2, devfs mounting at boot time, ... reject to load. ... modprobe: FATAL: Error inserting floppy ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • RE: amavisd-port
    ... This port has installed the following startup scripts which may cause ... these network services to be started at boot time. ... To unsubscribe, ...
    (freebsd-questions)