#178 closed defect (fixed)
--scan missing(forget) an usb-drive in his output
Reported by: | frankhartung | Owned by: | Christian Franke |
---|---|---|---|
Priority: | minor | Milestone: | Release 5.42 |
Component: | all | Version: | 5.40 |
Keywords: | windows | Cc: |
Description
hi,
another computer in my home office to find another bug in smartctl:
smartctl 5.41 2011-06-09 r3365 [i686-w64-mingw32-xp-sp3] (sf-win32-5.41-1)
and this machine is using windows xp as operating system.
the cmd:
smartctl --scan
give this result:
/dev/sda -d ata # /dev/sda, ATA device
/dev/sdb -d ata # /dev/sdb, ATA device
/dev/sdd -d sat # /dev/sdd [SAT], ATA device
/dev/sde -d usbjmicron # /dev/sde [USB JMicron], ATA device
sda = first internal connected sata-drive
sdb = 2nd internal connected sata-drive
sdc ?! smartctl does not print it!
sdd = usb connected western digital elements drive
sde = usb connected drive by using jmicron-chip-adapter
the in the output of smartctl missing usb drive can accessed very well with command:
smartctl -a /dev/sdc -d sat
..but if the cmds are automatic called by output from --scan this drive will be always missed!
Attachments (3)
Change History (17)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Component: | smartctl → drivedb |
---|---|
Keywords: | windows usb removed |
Milestone: | Release 5.41.1 → Release 5.42 |
Priority: | major → minor |
Type: | defect → enhancement |
Only USB devices with known type appear in device scanning.
Try "smartctl -a /dev/sdc
" without -d option.
If this reports "Unknown USB bridge [0x1058:idProduct]
" create local entry in %PROGRAMFILES%\smartmontools\bin\drivedb-add.h
file:
{ "USB: WD Elements; ", "0x1058:idProduct", "", "", "-d sat" },
If this works please report idProduct
, we will add the new entry to drivedb.h
then.
comment:3 by , 13 years ago
it reports not an idProduct :
smartctl -a /dev/sdc
smartctl 5.41 2011-06-09 r3365 [i686-w64-mingw32-xp-sp3] (sf-win32-5.41-1)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
/dev/sdc: Unable to read USB device ID
Smartctl: please specify device type with the -d option.
Use smartctl -h to get a usage summary
..but I checked the difference between the connections of the external drives:
the first wd elements is connected to an usb2.0 (on mainboard)
and the second wd elements is connected to an usb3.0 of an PCIex4-card U3S6(mg990t-c) from asus .
comment:4 by , 13 years ago
Component: | drivedb → all |
---|---|
Keywords: | windows added |
Please attach output of "smartctl -r ioctl,2 -i /dev/sdc
".
comment:5 by , 13 years ago
I have noticed that the output differs by the type of connection of the same drive.
for that reason and to give you more informations I have connected the wd elements drive to usb2.0(on mainboard), to hub that is connected to usb2.0 (on mainboard) , to usb3.0-pciex4-card . (see the name of the attachments)
by , 13 years ago
Attachment: | output_usb2direct.txt added |
---|
by , 13 years ago
Attachment: | output_usb2onhub.txt added |
---|
by , 13 years ago
Attachment: | output_usb3_pciex4card.txt added |
---|
comment:6 by , 13 years ago
Owner: | changed from | to
---|---|
Status: | new → accepted |
Type: | enhancement → defect |
Thanks for the detailed info! Looks like a subtle problem in interpretation of WMI output when multiple devices with the same internal name ("WD Ext HDD 1021 USB Device
") are connected.
follow-up: 9 comment:8 by , 13 years ago
New test release is available here. Please test if possible.
follow-up: 10 comment:9 by , 13 years ago
Replying to chrfranke:
New test release is available here. Please test if possible.
here the result of using the programm-paket from 2011-06-16 :
smartctl --scan
prints..
/dev/sda -d ata # /dev/sda, ATA device
/dev/sdb -d ata # /dev/sdb, ATA device
/dev/sdc -d sat # /dev/sdc [SAT], ATA device
/dev/sdd -d sat # /dev/sdd [SAT], ATA device
/dev/sde -d usbjmicron # /dev/sde [USB JMicron], ATA device
and their status with smartctl -a /dev/sdc -d sat (for example) works well!
follow-up: 11 comment:10 by , 13 years ago
Replying to frankhartung:
and their status with smartctl -a /dev/sdc -d sat (for example) works well!
Should also work without -d sat
. If an USB device appears in --scan
output then the USB bridge type could be auto-detected.
Thanks for testing.
comment:11 by , 13 years ago
Replying to chrfranke:
Should also work without
-d sat
. If an USB device appears in--scan
output then the USB bridge type could be auto-detected.
yes, I can confirm : this works without -d sat
too!
comment:12 by , 13 years ago
I have done an new test: connected 9 pieces of wd elements usb2.0 drives to usb-ports.
the smartctl --scan gives out:
/dev/sda -d ata # /dev/sda, ATA device
/dev/sdb -d ata # /dev/sdb, ATA device
/dev/sdc -d sat # /dev/sdc [SAT], ATA device
/dev/sdd -d sat # /dev/sdd [SAT], ATA device
/dev/sde -d sat # /dev/sde [SAT], ATA device
/dev/sdf -d sat # /dev/sdf [SAT], ATA device
/dev/sdg -d sat # /dev/sdg [SAT], ATA device
/dev/sdh -d sat # /dev/sdh [SAT], ATA device
/dev/sdi -d sat # /dev/sdi [SAT], ATA device
/dev/sdj -d sat # /dev/sdj [SAT], ATA device
and here is missed the last one! the 9th usb-connected drive.
the cmd smartctl -a /dev/sdk -d sat
works well and print out that drive information.
so I think here is still an bug!
comment:13 by , 13 years ago
This is unrelated to USB. Device scanning on Windows checks only the first 10 drives.
comment:14 by , 13 years ago
I think on servers it is not so less times that the server having more than 10 drives.
is it possible (maybe with parameter) to force a check for all existing ?!
sorry, miss some information:
the /dev/sdc -d sat is an second western digital elements drive connected by usb to the machine.