LinuxQuestions.org
Register a domain and help support LQ
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 08-17-2008, 08:12 AM   #1
ncs
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
How to see what driver is used for a device


How can I tell which driver is being used to support a specific device ?.
I'm using the latest version of Ubuntu (desktop) on an MSI board which uses the AMD SB700 chipset and I want to find out what driver is being used for the SATA controller.
The ultimate aim is to try and get VMWare's ESXi 3.5 working on this system, it wont install at the moment because it doesn't recognise the disk controller, but Ubuntu does recognise it. I thought if I knew what driver Ubuntu was using I might see that ESXi had the same driver.

Last edited by ncs; 08-17-2008 at 08:23 AM. Reason: amd sata
 
Old 08-17-2008, 08:31 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
/sbin/lsmod will give you the list of all the kernel modules that have been loaded, it might give you some indication.
 
Old 08-17-2008, 09:04 AM   #3
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,078

Rep: Reputation: 195Reputation: 195
Try lshw. If it's not installed it's probably in your distro's repos. It can output as HTML which I find is often the easiest way to read it's output.

Needs to be run as root so on Ubuntu
Code:
$  sudo lshw -html > /tmp/lshw.html && firefox /tmp/lshw.html
Look through the output and I find

id:
storage
description: SATA controller
product: JMicron 20360/20363 AHCI Controller
vendor: JMicron Technologies, Inc.
physical id:
0
bus info:
pci@0000:03:00.0
version: 03
width: 32 bits
clock: 33MHz
capabilities: storage pm pciexpress ahci_1.0 bus_master cap_list
configuration:
driver = ahci
latency = 0
module = ahci
 
Old 08-17-2008, 02:36 PM   #4
ncs
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by arizonagroovejet View Post
Try lshw. If it's not installed it's probably in your distro's repos. It can output as HTML which I find is often the easiest way to read it's output.

Needs to be run as root so on Ubuntu
Code:
$  sudo lshw -html > /tmp/lshw.html && firefox /tmp/lshw.html
Look through the output and I find

id:
storage
description: SATA controller
product: JMicron 20360/20363 AHCI Controller
vendor: JMicron Technologies, Inc.
physical id:
0
bus info:
pci@0000:03:00.0
version: 03
width: 32 bits
clock: 33MHz
capabilities: storage pm pciexpress ahci_1.0 bus_master cap_list
configuration:
driver = ahci
latency = 0
module = ahci
Thanks for this..seems the controller is seen as a AHCI device...hopefully the AHCI driver that ESXi contains will work with the controller on my mobo. Just need to edit a config file, reburn the CD and keep my fingers crossed.
 
  


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
device driver help linlax Linux - Newbie 2 07-11-2008 05:30 AM
Multiple Device driver from single device driver???? rickhg12hs Linux - Kernel 3 05-25-2008 01:11 AM
how to use a device driver guptarai Programming 2 10-15-2007 10:56 PM
Device driver from 2.4 to 2.6 setu_garg Programming 1 09-16-2005 12:27 PM
Device Driver deveshs Programming 1 04-27-2005 12:53 AM


All times are GMT -5. The time now is 04:29 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