Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-15-2009, 07:10 PM
|
#1
|
Member
Registered: Feb 2009
Distribution: Slackware 13.0 (2.6.29.6-smp)
Posts: 47
Rep:
|
Finding VendorID and DeviceID of Harddrive (or, translating MS-speak)
Hello,
I'm trying to find a VendorID and DeviceID on my Harddrive that supposedly appears in the form VEN_xxxx and DEV_xxxx.
This is under the guise of installing a windows partition, and some driver or other is missing to allow a usb install--a presumably competent windows person is trying to point me to the right one but can't seem to do anything with the output of:
Code:
#lshw
*-ide:1
description: IDE interface
product: 82801FB/FW (ICH6/ICH6W) SATA Controller
vendor: Intel Corporation
physical id: 1f.2
bus info: pci@0000:00:1f.2
logical name: scsi2
version: 03
width: 32 bits
clock: 66MHz
capabilities: ide pm bus_master cap_list emulated
configuration: driver=ata_piix latency=0
*-disk:0
description: ATA Disk
product: ST340014AS
vendor: Seagate
physical id: 0.0.0
bus info: scsi@2:0.0.0
logical name: /dev/sda
version: 8.12
serial: 5MQ28YCX
size: 37GiB (40GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=d0f4738c
And I can only think of:
Code:
# cat /proc/scsi/scsi
Attached devices:
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: ST340014AS Rev: 8.12
Type: Direct-Access
Code:
# hdparm -i /dev/sda
/dev/sda:
Model=ST340014AS , FwRev=8.12 , SerialNo= 5MQ28YCX
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=unknown, BuffSize=2048kB, MaxMultSect=16, MultSect=?8?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=78125000
IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=no WriteCache=enabled
Drive conforms to: ATA/ATAPI-6 T13 1410D revision 2: ATA/ATAPI-1,2,3,4,5,6
* signifies the current active mode
It seems like this contains all necessary info on the harddrive. Is this vendorID and deviceID just translated differently in linux?
Thanks for reading.
|
|
|
10-15-2009, 09:15 PM
|
#2
|
Member
Registered: Nov 2005
Distribution: Raspbian, Debian, Ubuntu
Posts: 384
Rep:
|
I thought VEN and DEV were USB identifiers.
Try 'lsusb' on your system.
One of mine has just a usb keyboard...
Code:
[root@athlonz ~]# lsusb
Bus 002 Device 002: ID 046d:c315 Logitech, Inc. Classic New Touch Keyboard
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[root@athlonz ~]#
another has a flashdrive, usb mouse and usb keyboard...
Code:
[root@athlon ~]# lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 12f7:1e23 Memorex Products, Inc. TravelDrive 2007 Flash Drive
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 046d:c045 Logitech, Inc. Optical Mouse
Bus 003 Device 002: ID 046d:c315 Logitech, Inc. Classic New Touch Keyboard
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[root@athlon ~]#
For the flashdrive the VEN is 12f7 and the DEV is 1e23 (I think...).
I'm pretty sure if you have an external harddrive in a USB enclosure, the USB enclosure will have a Vendor and Device ID, but there won't be one for the harddrive that's enclosed (it's not a usb device).
|
|
|
10-16-2009, 09:14 AM
|
#3
|
Member
Registered: Feb 2009
Distribution: Slackware 13.0 (2.6.29.6-smp)
Posts: 47
Original Poster
Rep:
|
Thanks for the reply! You made me realize that I made a mistake in my question,
I realize now it's the Storage Controller I need to find the vendorID and deviceID for, not the harddrive itself.
Code:
sh-3.1$ /sbin/lspci -vv
00:1f.2 IDE interface: Intel Corporation 82801FB/FW (ICH6/ICH6W) SATA Controller (rev 03) (prog-if 8f [Master SecP SecO PriP PriO])
Subsystem: Dell Device 0181
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin C routed to IRQ 20
Region 0: I/O ports at fe00 [size=8]
Region 1: I/O ports at fe10 [size=4]
Region 2: I/O ports at fe20 [size=8]
Region 3: I/O ports at fe30 [size=4]
Region 4: I/O ports at fea0 [size=16]
Capabilities: <access denied>
Kernel driver in use: ata_piix
I assume Device ID is 0181??
Any thoughts about vendorID?
Last edited by noviciado; 10-16-2009 at 09:28 AM.
|
|
|
10-16-2009, 09:48 AM
|
#4
|
Member
Registered: Feb 2009
Distribution: Slackware 13.0 (2.6.29.6-smp)
Posts: 47
Original Poster
Rep:
|
I figured it out.
I just needed to use the -n flag with lspci.
Thanks for reading.
|
|
|
10-16-2009, 04:34 PM
|
#5
|
Member
Registered: Nov 2005
Distribution: Raspbian, Debian, Ubuntu
Posts: 384
Rep:
|
Ah, cool. I learned something myself. Thanks.
|
|
|
All times are GMT -5. The time now is 03:02 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|