LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2010, 04:44 AM   #1
linuxunix
Member
 
Registered: Mar 2010
Location: California
Distribution: Slackware
Posts: 235

Rep: Reputation: 18
How to retrieve info about drivers?


I have been using modinfo to know what drivers installed on my Linux Box.
Like:
Code:
modinfo e1000 => e1000 driver
modinfo BusLogic => BusLogic
lspci LSI=> LSI Logic
modinfo vmxnet3=> vmxnet3 driver
modinfo mp2tsas => LSI SAS
Any specific command/tool which can collect all modules and drivers installed on my Linux?
 
Old 04-28-2010, 05:17 AM   #2
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
You can find them in /usr/lib/modules.
Do note that if the "drivers" are compiled into the kernel you cannot see them in this way.
You could also check the current kernel config:
zcat /proc/config.gz
This is if config is compiled into the kernel.
 
Old 04-28-2010, 07:09 AM   #3
linuxunix
Member
 
Registered: Mar 2010
Location: California
Distribution: Slackware
Posts: 235

Original Poster
Rep: Reputation: 18
Code:
This is if config is compiled into the kernel.
How to compile that one.

For me the command threw the error:
Code:
No file or directory
 
Old 04-28-2010, 08:42 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,898
Blog Entries: 27

Rep: Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185
Hi,

How did you excute the command 'zcat /proc/config.gz'? Path problem?

I like to use from the cli 'zcat /proc/config.gz |most' whenever I need to look at the kernel modules.

Your question seems confusing? Why are you concerned with the available modules? If you want to look at the kernels modules then look at '/lib/modules' to see the modules that have been installed for use. If you use the command 'lsmod' you will see the modules that the kernel is presently using. If you want to modify the drivers that the kernel has compiled in then 'zcat /proc/config.gz |most' would be one way to see but use 'menuconfig' to modify the '.config'.

'Kernel-HOWTO' would be one place to look for information. 'Building a Linux Kernel from source' is a good resource. You should acquaint yourself with the mechanics of building a kernel before actually modifying the '.config'.

Just a few more useful links;

Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Bash Reference Manual
Advanced Bash-Scripting Guide
Linux Newbie Admin Guide
LinuxSelfHelp
Getting Started with Linux

The above links and others can be found at 'Slackware-Links'. More than just Slackware® links!
 
Old 04-28-2010, 08:42 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,898
Blog Entries: 27

Rep: Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185Reputation: 2185
<dupe>
 
Old 04-29-2010, 12:44 AM   #6
linuxunix
Member
 
Registered: Mar 2010
Location: California
Distribution: Slackware
Posts: 235

Original Poster
Rep: Reputation: 18
I dont see config.gs under /proc.
I have been trying out in RHEL and Ubuntu.
 
Old 04-29-2010, 04:51 AM   #7
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
Quote:
Originally Posted by linuxunix View Post
I dont see config.gs under /proc.
I have been trying out in RHEL and Ubuntu.
THe file is config.gz.
And as I said, if it is not compiled into the kernel you will not have it.
You can also check it in /boot/config-xxxx
(at least in rhel). This is the config where the kernel is compiled with.

Furthermore to see if a driver is installed for a hardware device you have on your machine, you should use dmesg.
This gives all messages from kernel bootup and also the detected devices and the messages thrown by the modules that they need.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
getent is unable to retrieve info from OpenLDAP mesh2005 Linux - Networking 1 11-08-2007 09:25 AM
Retrieve receiving interface info using ancillary fabdouze Programming 0 12-21-2005 03:00 PM
help trying to retrieve info from raid or another hge3 newusermike Linux - Newbie 4 07-30-2005 07:46 PM
Best way to retrieve system and hardware info vharishankar Programming 5 04-11-2005 07:29 AM
Authenticatin Service cannot retrieve authentication info sdandeker Linux - Security 3 04-03-2004 01:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration