LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 10-15-2009, 07:10 PM   #1
noviciado
Member
 
Registered: Feb 2009
Distribution: Slackware 13.0 (2.6.29.6-smp)
Posts: 47

Rep: Reputation: 15
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.
 
Old 10-15-2009, 09:15 PM   #2
tommylovell
Member
 
Registered: Nov 2005
Distribution: Raspbian, Debian, Ubuntu
Posts: 384

Rep: Reputation: 103Reputation: 103
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).
 
Old 10-16-2009, 09:14 AM   #3
noviciado
Member
 
Registered: Feb 2009
Distribution: Slackware 13.0 (2.6.29.6-smp)
Posts: 47

Original Poster
Rep: Reputation: 15
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.
 
Old 10-16-2009, 09:48 AM   #4
noviciado
Member
 
Registered: Feb 2009
Distribution: Slackware 13.0 (2.6.29.6-smp)
Posts: 47

Original Poster
Rep: Reputation: 15
I figured it out.
I just needed to use the -n flag with lspci.
Thanks for reading.
 
Old 10-16-2009, 04:34 PM   #5
tommylovell
Member
 
Registered: Nov 2005
Distribution: Raspbian, Debian, Ubuntu
Posts: 384

Rep: Reputation: 103Reputation: 103
Ah, cool. I learned something myself. Thanks.
 
  


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
Problem Finding HardDrive with fdisk InJesus Slackware 5 03-14-2007 06:40 PM
networking addr translating mwagz Linux - Networking 1 01-20-2007 04:01 AM
Translating UML --> Java Fredstar Programming 2 04-02-2006 10:39 AM
windows translating Zhou Yi Linux - Software 16 12-15-2004 09:50 PM
Translating gamehack Linux - General 1 12-25-2003 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:02 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
Open Source Consulting | Domain Registration