Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#105 Some drives are located as SCSI instead of USB or SATA

open
None
5
2009-07-21
2008-06-01
Anders Haggstrom
No

My USB-pendrive is listed under "SCSI-devices" instead of the more logical "USB-devices" and my SATA-drives are located under "SCSI" instead of "IDE" (should be renamed to "ATA" in my oppinion). I would like phpsysinfo to poll "lshw" to identify devices,

My USB-drive is found as "/dev/sde" and is a scsi-emulated drive as many others but it could be identifyed as USB by the following command if phpsysinfo verify the line "driver=".

###
$ lshw
... snip ...
*-scsi
physical id: 8
bus info: usb@2:7
logical name: scsi6
capabilities: emulated scsi-host
configuration: driver=usb-storage
*-disk
description: SCSI Disk
product: USB2FlashStorage
vendor: Ut163
physical id: 0.0.0
bus info: scsi@6:0.0.0
logical name: /dev/sde
version: 0.00
size: 963MiB (1010MB)
capabilities: removable
configuration: ansiversion=2
*-medium
physical id: 0
logical name: /dev/sde
size: 963MiB (1010MB)
capabilities: partitioned partitioned:dos
configuration: signature=0006d995
... snip ...
###

pros:
* lshw can be run without root-privilieges
* phpsysinfo only need to poll lshw instead of lspci, lsusb, lsscsi etc and that will minimize the overhead.
* phpsysinfo will be able to specify more details of the devices than done today (3.0rc5).

cons:
* all distros maby does not have lshw installed
* lshw is linux-specific

Discussion

  • Logged In: YES
    user_id=107564
    Originator: YES

    A more detaild explanation of my idé about the namechange.

    I would like "IDE devices" to be renamed to "ATA devices" and that category should include both PATA (IDE) and SATA.
    If so there will be three device-lists:
    1) "ATA devices"
    2) "SCSI devices"
    3) "USB devices"

    And maby a fourth one? "PCI devices" (for add-in cards etc. PCI, PCI-X, PCIe)?

     
  • Logged In: YES
    user_id=107564
    Originator: YES

    One more related idea. If a sublist is empty it should be invisible, not click able with a text "none" in my opinion.

     
  • Michael Cramer
    Michael Cramer
    2009-07-21

    • assigned_to: nobody --> bigmichi1
     
  • Michael Cramer
    Michael Cramer
    2009-07-21

    there is a big difference when running lshw with root account and with normal user account, not sure if thats what we want, because information are really different when running whith specific users