Solved

How do i load a module to the kernel on the fly?  What is the command?

Posted on 2004-03-26
3
229 Views
Last Modified: 2013-12-16
How do i load a module to the kernel on the fly?  What is the command?

I want to load something while the machine is running without rebooting.

Please post the command and an example.

Thanks in advance.
0
Comment
Question by:garyhalbert
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 125 total points
ID: 10690806
modprobe is the command you are looking for.

EXAMPLES

modprobe -t net
    Load one of the modules that are stored in the directory tagged "net". Each module are tried until one succeeds.
modprobe -a -t boot
    All modules that are stored in directories tagged "boot" will be loaded.
modprobe slip
    This will attempt to load the module slhc.o if it was not previously loaded, since the slip module needs the functionality in the slhc module. This dependency will be described in the file modules.dep that was created automatically by depmod.
modprobe -r slip
    This will unload the slip module. It will also unload the slhc module automatically, unless it is used by some other module as well (e.g. ppp).
0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10690813
man modprobe should help.
0
 

Author Comment

by:garyhalbert
ID: 10693450
Are there any other commands that can load modules?

what does insmod do?
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question