Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

There is how the book I'm reading describe the insmod utility:

The program loads the module code and data into the kernel, which, in turn, performs a function similar to that of ld, in that it links any unresolved symbol in the module to the symbol table of the kernel. Unlike the linker, however, the kernel doesn’t modify the module’s disk file, but rather an in-memory copy.

It looks like it won't persist since it's in-memory, but I'm not sure.

share|improve this question
add comment

2 Answers

No, they won't. After rebooting, you begin from scratch.

Normally, for modules that you want loaded after every reboot, there's a configuration file listing modules to be auto-loaded at boot time.

Look at /etc/modules.

man modules:

NAME
   /etc/modules - kernel modules to load at boot time

DESCRIPTION
   The  /etc/modules file contains the names of kernel modules that are to
   be loaded at boot time, one per line. Arguments can  be  given  in  the
   same line as the module name. Lines beginning with a '#' are ignored.
share|improve this answer
add comment

Modules manually loaded using insmod do not persist when your system is rebooted (for that behavior see the manpage for modules.confmodules, which essentially runs insmod automatically on reboot, but with a bit more intelligence).

ed: modules, not modules.conf (the latter is useful if you're writing a custom module with dependencies)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.