Solved

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

Posted on 2004-03-26
3
226 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

912 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now