Solved

How to make sure that a specific module is already loaded into the kertrel

Posted on 2004-08-02
7
202 Views
Last Modified: 2013-12-15
Hi,
I have a Linux redhat 9 machine and it is required from me to install some modules.

Before I start the installation, how can I make sure that a specific model (mod_ssl, tun, ...etc) are already loaded into the kernel??


Thanks in advance for your help

Cheers
Bassam

0
Comment
Question by:Bassam72
7 Comments
 
LVL 45

Expert Comment

by:sunnycoder
ID: 11691855
Hi Bassam72,

modprobe -c

Sunnycoder
0
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 250 total points
ID: 11692615
modprobe -c only shows the modprobe configuration - not whether a module has actually loaded.

lsmod is the one you want.
0
 

Author Comment

by:Bassam72
ID: 11700147
Ok thanks, now, how can I load a specific module in the kernel ? for example I want to load the module "tun", is there a way to do that?


Regards
Bassam
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 11700678
If it is in the default directories.

insmod tun

man insmod for more information
0
 
LVL 6

Expert Comment

by:de2Zotjes
ID: 11708798
The easy way to load is using modprobe:

modprobe <module>

This will resolve module dependecies and load the modules you need.

Viewing all loaded modules is done by

lsmod


Hope this helps
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

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.…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

813 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

14 Experts available now in Live!

Get 1:1 Help Now