Opened 4 years ago

Last modified 4 years ago

#1342 new defect

Prolific PL2507 (0x067b:0x2507)

Reported by: floogy Owned by:
Priority: minor Milestone: undecided
Component: all Version: 7.1
Keywords: Cc:

Description (last modified by Christian Franke)

Hi, I got an old "Lidl Targa" external USB Drive with a [usbjmicron] Prolific PL2507 (0x067b:0x2507) USB to IDE bridge and an 400GB SAMSUNG HD400LD HDD.

smartctl doesn't work very good on this one, despitze I found some reports it should, but maybe I got a different combination or configuration?

sat, auto gives better output than usbjmicron,0, but no smartoutput either.

-d sat,auto (full see at the end of the report)

[...]
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
>> Terminate command early due to bad response to IEC mode page

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
unable to fetch IEC (SMART) mode page [scsi response fails sanity test]

=== START OF READ SMART DATA SECTION ===
Current Drive Temperature:     0 C
Drive Trip Temperature:        0 C

Error Counter logging not supported

scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
Device does not support Self Test logging

-d test

~$ sudo smartctl -a -T verypermissive --smart=on -d test  /dev/sdk
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-29-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sdk [USB JMicron]: Device of type '**usbjmicron**' [ATA] detected
/dev/sdk [USB JMicron]: Device of type 'usbjmicron' [ATA] opened

but usbmicron gives garbage (see bottom of this report)

Thank you in advance.

floogy

informations and tests

~$ uname -a
Linux ubuntu-SSD1 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04 LTS
Release:	20.04
Codename:	focal

~$ dpkg -l smartmontools | grep ^ii
ii  smartmontools  7.1-1build1  amd64        control and monitor storage systems using S.M.A.R.T.
~$ apt policy  smartmontools 
smartmontools:
  Installiert:           7.1-1build1
  Installationskandidat: 7.1-1build1
  Versionstabelle:
 *** 7.1-1build1 500
        500 http://de.archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status


$ smartctl -V
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-29-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

smartctl comes with ABSOLUTELY NO WARRANTY. This is free
software, and you are welcome to redistribute it under
the terms of the GNU General Public License; either
version 2, or (at your option) any later version.
See http://www.gnu.org for further details.

smartmontools release 7.1 dated 2019-12-30 at 15:00:11 UTC
smartmontools SVN rev 5022 dated 2019-12-30 at 15:00:49
smartmontools build host: x86_64-pc-linux-gnu
smartmontools build with: C++14, GCC 9.3.0
smartmontools configure arguments: '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--prefix=/usr' '--sysconfdir=/etc' '--mandir=/usr/share/man' '--with-initscriptdir=no' '--docdir=/usr/share/doc/smartmontools' '--with-attributelog=/var/lib/smartmontools/attrlog.' '--with-drivedbdir=/var/lib/smartmontools/drivedb' '--with-exampledir=/usr/share/doc/smartmontools/examples/' '--with-savestates=/var/lib/smartmontools/smartd.' '--with-smartdplugindir=/etc/smartmontools/smartd_warning.d' '--with-smartdscriptdir=/usr/share/smartmontools' '--with-systemdenvfile=/etc/default/smartmontools' '--with-systemdsystemunitdir=/lib/systemd/system' '--with-libsystemd=auto' '--with-selinux' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/build/smartmontools-ZttrSr/smartmontools-7.1=. -fstack-protector-strong -Wformat -Werror=format-security -fsigned-char -Wall -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/smartmontools-ZttrSr/smartmontools-7.1=. -fstack-protector-strong -Wformat -Werror=format-security -fsigned-char -Wall -O2'


[...]
[59856.544333] perf: interrupt took too long (4962 > 4958), lowering kernel.perf_event_max_sample_rate to 40250
[67159.354847] usb 1-1.5.4: USB disconnect, device number 9
[67221.892015] usb 1-1.5.4: new high-speed USB device number 10 using ehci-pci
[67221.922552] usb 1-1.5.4: New USB device found, idVendor=067b, idProduct=2507, bcdDevice= 1.00
[67221.922555] usb 1-1.5.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[67221.922558] usb 1-1.5.4: Product: Mass Storage Device
[67221.922559] usb 1-1.5.4: Manufacturer: Prolific Technology Inc.
[67221.923069] usb-storage 1-1.5.4:1.0: USB Mass Storage device detected
[67221.923327] usb-storage 1-1.5.4:1.0: Quirks match for vid 067b pid 2507: 110
[67221.925284] scsi host10: usb-storage 1-1.5.4:1.0
[67222.936804] scsi 10:0:0:0: Direct-Access     SAMSUNG  HD400LD          WQ10 PQ: 0 ANSI: 0
[67222.937235] sd 10:0:0:0: Attached scsi generic sg10 type 0
[67222.938035] sd 10:0:0:0: [sdk] Adjusting the sector count from its reported value: 781422769
[67222.938041] sd 10:0:0:0: [sdk] 781422768 512-byte logical blocks: (400 GB/373 GiB)
[67222.939145] sd 10:0:0:0: [sdk] Write Protect is off
[67222.939147] sd 10:0:0:0: [sdk] Mode Sense: 03 00 00 00
[67222.940262] sd 10:0:0:0: [sdk] No Caching mode page found
[67222.940268] sd 10:0:0:0: [sdk] Assuming drive cache: write through
[67222.961280] sd 10:0:0:0: [sdk] Adjusting the sector count from its reported value: 781422769
[67222.984199]  sdk: sdk1 sdk2
[67222.985501] sd 10:0:0:0: [sdk] Adjusting the sector count from its reported value: 781422769
[67222.987775] sd 10:0:0:0: [sdk] Attached SCSI disk
[67223.350177] BTRFS warning (device sdj1): duplicate device fsid:devid for 898c8973-ae88-454d-b76b-c540660909d1:1 old:/dev/sdj1 new:/dev/sdk1
[67223.492522] BTRFS warning (device sdj1): duplicate device fsid:devid for 898c8973-ae88-454d-b76b-c540660909d1:1 old:/dev/sdj1 new:/dev/sdk1


floogy@ubuntu-SSD1:~$ lsusb | grep Prolific
Bus 001 Device 010: ID 067b:2507 Prolific Technology, Inc. PL2507 Hi-speed USB to IDE bridge controller

floogy@ubuntu-SSD1:~$ lsusb -d 67b:2507
Bus 001 Device 010: ID 067b:2507 Prolific Technology, Inc. PL2507 Hi-speed USB to IDE bridge controller
floogy@ubuntu-SSD1:~$ lsusb -v -d 67b:2507

Bus 001 Device 010: ID 067b:2507 Prolific Technology, Inc. PL2507 Hi-speed USB to IDE bridge controller
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x067b Prolific Technology, Inc.
  idProduct          0x2507 PL2507 Hi-speed USB to IDE bridge controller
  bcdDevice            1.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0020
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
floogy@ubuntu-SSD1:~$ 


floogy@ubuntu-SSD1:~$ sudo smartctl -a -T verypermissive --smart=on -d sat,auto  /dev/sdk
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-29-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               SAMSUNG
Product:              HD400LD
Revision:             WQ10
User Capacity:        400.088.457.728 bytes [400 GB]
Logical block size:   512 bytes
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
>> Terminate command early due to bad response to IEC mode page

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
unable to fetch IEC (SMART) mode page [scsi response fails sanity test]

=== START OF READ SMART DATA SECTION ===
Current Drive Temperature:     0 C
Drive Trip Temperature:        0 C

Error Counter logging not supported

scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
Device does not support Self Test logging
floogy@ubuntu-SSD1:~$ 

floogy@ubuntu-SSD1:~$ sudo smartctl -a -T verypermissive --smart=on -d test  /dev/sdk
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-29-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sdk [USB JMicron]: Device of type 'usbjmicron' [ATA] detected
/dev/sdk [USB JMicron]: Device of type 'usbjmicron' [ATA] opened


auto gives garbage
floogy@ubuntu-SSD1:~$ sudo smartctl -a -T verypermissive --smart=on -d auto  /dev/sdk
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-29-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

Read Device Identity failed: scsi error unsupported scsi opcode

=== START OF INFORMATION SECTION ===
Device Model:     �u�ګ��_�Qz�����#��ـ:����3�D@����qm
Serial Number:    @�����s�����I�V9
LU WWN Device Id: 8 28d498 0ce5074bf
Firmware Version: ���<���W
User Capacity:    1.697.303.176.704 bytes [1,69 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    7168 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-4 (unknown minor revision code: 0xdf73)
Transport Type:   Unknown (0x93a4)
Local Time is:    Sun Jun 14 03:42:51 2020 CEST
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported.
SMART support is: Unknown - Try option -s with argument 'on' to enable it.
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enable failed: scsi error unsupported scsi opcode

Read SMART Data failed: scsi error unsupported scsi opcode


=== START OF READ SMART DATA SECTION ===
SMART Status command failed: scsi error unsupported scsi opcode
SMART overall-health self-assessment test result: UNKNOWN!
SMART Status, Attributes and Thresholds cannot be read.

Read SMART Error Log failed: scsi error unsupported scsi opcode

Read SMART Self-test Log failed: scsi error unsupported scsi opcode

Selective Self-tests/Logging not supported

floogy@ubuntu-SSD1:~$ 

_______________________________________________________________________________________


floogy@ubuntu-SSD1:~$ sudo smartctl -T verypermissive -x -d usbjmicron,x,0 /dev/sdk
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-29-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

Read Device Identity failed: scsi error unsupported scsi opcode

=== START OF INFORMATION SECTION ===
Device Model:     ׋[˟/����3o���k�%
Serial Number:    ���u*��,K�B�0���
Firmware Version: E�)���^
User Capacity:    1.408.203.512.832 bytes [1,40 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    59160 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS >5 (14) (unknown minor revision code: 0xc997)
Transport Type:   Unknown (0x8be5)
Local Time is:    Sun Jun 14 04:09:31 2020 CEST
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported.
SMART support is: Unknown - Try option -s with argument 'on' to enable it.AAM feature is:   Unavailable
APM feature is:   Unavailable
Rd look-ahead is: Unavailable
Write cache is:   Unavailable
DSN feature is:   Unavailable
ATA Security is:  Disabled, frozen [SEC2]
Wt Cache Reorder: Unavailable

Read SMART Data failed: scsi error unsupported scsi opcode

=== START OF READ SMART DATA SECTION ===
SMART Status command failed: scsi error unsupported scsi opcode
SMART overall-health self-assessment test result: UNKNOWN!
SMART Status, Attributes and Thresholds cannot be read.

Read SMART Log Directory failed: scsi error unsupported scsi opcode

ATA_READ_LOG_EXT (addr=0x00:0x00, page=0, n=1) failed: scsi error unsupported scsi opcode
Read GP Log Directory failed

SMART Extended Comprehensive Error Log (GP Log 0x03) not supported

Read SMART Error Log failed: scsi error unsupported scsi opcode

SMART Extended Self-test Log (GP Log 0x07) not supported

Read SMART Self-test Log failed: scsi error unsupported scsi opcode

Selective Self-tests/Logging not supported

SCT Commands not supported

Device Statistics (GP/SMART Log 0x04) not supported

Pending Defects log (GP Log 0x0c) not supported

SATA Phy Event Counters (GP Log 0x11) not supported

floogy@ubuntu-SSD1:~$ 


references

Smartmontools USB Device Support
Profilic 0x067b
(No Name) Prolific PL2507 0x067b:0x2507 ? -d usbjmicron,x Linux Ondrej Zary, also ​ML-Archive
https://www.smartmontools.org/wiki/Supported_USB-Devices#idVendor0x0500

[smartmontools-support] Recognizing Samsung HD400LD USB drive
From: bege <bege10@t-...> - 2016-10-19 12:15:25
https://sourceforge.net/p/smartmontools/mailman/message/35437231/

[smartmontools-support] Prolific PL2507 USB Device
From: James Olson <big_spender12@ly...> - 2012-04-27 00:56:50
Please move the Prolific PL2507 (0x067b:0x25070 USB Device from the Unsupported Devices section to the Supported Devices section of the Supported USB Devices page. It uses the jmicron protocol and works with the "smartctl -d usbjmicron,0" command. Note that you must supply the ,0 for the Port or you will get a failure with a "No device connected" message.
https://sourceforge.net/p/smartmontools/mailman/smartmontools-support/thread/1779131327.21974.1335487159222.JavaMail.mail@webmail15/

Change History (5)

comment:1 by floogy, 4 years ago

Okay, I found, that the HDD is an PATA drive, but somehow the bridge doesn't work fine together with that drive.

On the net I found an example, that smartmontools works with that drive (not mine):

smartctl version 5.38 [i686-mingw32-xp-sp3] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family: SAMSUNG SpinPoint T133 series
Device Model: SAMSUNG HD400LD
Serial Number: S0AXJ1BP401103
Firmware Version: WQ100-14
User Capacity: 400,087,375,360 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: ATA/ATAPI-7 T13 1532D revision 4a
Local Time is: Mon Apr 27 13:40:44 2009 WEDT
SMART support is: Available - device has SMART capability.
Enabled status cached by OS, trying SMART RETURN STATUS cmd.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 121) The previous self-test completed having
the read element of the test failed.
Total time to complete Offline
data collection: (7616) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 129) minutes.
SCT capabilities: (0x003f) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 100 100 051 Pre-fail Always - 17
3 Spin_Up_Time 0x0007 100 100 015 Pre-fail Always - 7808
4 Start_Stop_Count 0x0032 088 088 000 Old_age Always - 12124
5 Reallocated_Sector_Ct 0x0033 253 253 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 253 253 051 Pre-fail Always - 0
8 Seek_Time_Performance 0x0025 253 253 015 Pre-fail Offline - 0
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 4946
10 Spin_Retry_Count 0x0033 253 253 051 Pre-fail Always - 0
11 Calibration_Retry_Count 0x0012 253 253 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 099 099 000 Old_age Always - 1538
190 Airflow_Temperature_Cel 0x0022 048 041 000 Old_age Always - 52
194 Temperature_Celsius 0x0022 082 061 000 Old_age Always - 52
195 Hardware_ECC_Recovered 0x001a 100 100 000 Old_age Always - 342149059
196 Reallocated_Event_Count 0x0032 253 253 000 Old_age Always - 0
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 4
198 Offline_Uncorrectable 0x0030 253 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x000a 100 100 000 Old_age Always - 0
201 Soft_Read_Error_Rate 0x000a 100 100 000 Old_age Always - 4

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed: read failure 90% 4946 416486679
# 2 Short offline Completed: read failure 90% 4946 416486679

SMART Selective Self-Test Log Data Structure Revision Number (0) should be 1
SMART Selective self-test log data structure revision number 0
Warning: ATA Specification requires selective self-test log data structure revision number = 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

https://www.computerbase.de/forum/threads/samsung-hd-fehlermeldung-bedeutet-das-was.580039/#post-5962050

floogy@ubuntu-SSD1:~$ LANG=en sudo smartctl -P showall |grep -A5 '0x067b:0x2507'
USB Vendor:Product: 0x067b:0x2507
USB bcdDevice:      .*
USB Device:         [unknown]
USB Bridge:         Prolific PL2507
USB Type            usbjmicron,0

floogy@ubuntu-SSD1:~$ LANG=en sudo smartctl -q noserial -T verypermissive -a --smart=on -d usbjmicron,0 /dev/sdk
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-29-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

Read Device Identity failed: scsi error unsupported scsi opcode

=== START OF INFORMATION SECTION ===
Device Model:     ���J&eR�am�T˼Mʪ���!�W��}����N��
                                                 ��n���
Firmware Version: �dUY)
                       26
User Capacity:    465,361,995,776 bytes [465 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    22820 rpm
Form Factor:      < 1.8 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS >5 (14) (unknown minor revision code: 0x8a4c)
Transport Type:   Unknown (0x9234)
Local Time is:    Sun Jun 14 23:48:45 2020 CEST
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported.
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enable failed: scsi error unsupported scsi opcode

Read SMART Data failed: scsi error unsupported scsi opcode


=== START OF READ SMART DATA SECTION ===
SMART Status command failed: scsi error unsupported scsi opcode
SMART overall-health self-assessment test result: UNKNOWN!
SMART Status, Attributes and Thresholds cannot be read.

Read SMART Error Log failed: scsi error unsupported scsi opcode

Read SMART Self-test Log failed: scsi error unsupported scsi opcode

Read SMART Selective Self-test Log failed: scsi error unsupported scsi opcode

floogy@ubuntu-SSD1:~$ LANG=en sudo smartctl  --scan-open 
/dev/sda -d sat # /dev/sda [SAT], ATA device
/dev/sdb -d sat # /dev/sdb [SAT], ATA device
/dev/sdc -d sat # /dev/sdc [SAT], ATA device
/dev/sdi -d sat # /dev/sdi [SAT], ATA device
/dev/sdk -d usbjmicron # /dev/sdk [USB JMicron], ATA device
floogy@ubuntu-SSD1:~$ LANG=en sudo smartctl -q noserial -T verypermissive -a --smart=on -d usbjmicron /dev/sdk
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-29-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

Smartctl open device: /dev/sdk [USB JMicron] failed: scsi error unsupported scsi opcode
floogy@ubuntu-SSD1:~$ LANG=en sudo smartctl -q noserial -T verypermissive -a --smart=on -d sat,auto /dev/sdk
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-29-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               SAMSUNG
Product:              HD400LD
Revision:             WQ10
User Capacity:        400,088,457,728 bytes [400 GB]
Logical block size:   512 bytes
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
>> Terminate command early due to bad response to IEC mode page

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
unable to fetch IEC (SMART) mode page [scsi response fails sanity test]

=== START OF READ SMART DATA SECTION ===
Current Drive Temperature:     0 C
Drive Trip Temperature:        0 C

Error Counter logging not supported

scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
Device does not support Self Test logging

comment:2 by Christian Franke, 4 years ago

Description: modified (diff)

comment:3 by Christian Franke, 4 years ago

Milestone: undecided

The drive model does not matter but the USB bridge firmware version possibly does.

Please try -d usbjmicron,p or -d usbprolific. See smartctl man page and USB wiki page.

If none of these work, there is no known way to fix this.

comment:4 by floogy, 4 years ago

Thank you for clearifying. I saw that drive on the net with a firmware >wq100 instead of wq10, but I don't know exactly, if that firmware is of that bridge or the drive itself.

So there will be no way to proof if the drive is still sane.

I used badblocks, but btrfs and zfs are giving errors (the reason why i wanted to look into the smart log). I didn't find any tool under Windows to do so.

Thanks a lot!
floogy

badblocks

~$ time sudo badblocks -nsv /dev/sdd -o badblocks_sdd_HD400LD_$(date +%F_%H.%M).log
Es wird nach defekten Blöcken im zerstörungsfreien Lesen+Schreiben-Modus gesucht
Von Block 0 bis 390711383
Es wird nach defekten Blöcken gesucht (zerstörungsfreier Lesen+Schreiben-Modus)
Es wird mit zufälligen Mustern getestet: erledigt                                                 
Durchgang beendet, 0 defekte Blöcke gefunden. (0/0/0 Fehler)

real	890m50,503s
user	2m36,280s
sys	11m21,413s

ZFS and BTRFS messages

[...]
	NAME                               STATE     READ WRITE CKSUM
	zfspool                            ONLINE       0     0     0
	  usb-SAMSUNG_HD400LD-0:0-part2    ONLINE       4     1     1
[...]
errors: No known data errors

~$ dmesg | tail
[  129.619430] BTRFS info (device sdd1): checking UUID tree
[  162.803534] BTRFS critical (device sdd1): corrupt leaf: root=1 block=709319843840 slot=8, invalid root item size, have 239 expect 439
[  345.873205] BTRFS critical (device sdd1): corrupt leaf: root=1 block=709341556736 slot=8, invalid root item size, have 239 expect 439
[ 2067.651534] perf: interrupt took too long (2502 > 2500), lowering kernel.perf_event_max_sample_rate to 79750
[12069.203374] BTRFS info (device sdd1): disk space caching is enabled
[12069.298395] BTRFS critical (device sdd1): corrupt leaf: root=1 block=709341556736 slot=8, invalid root item size, have 239 expect 439
[12069.448463] BTRFS info (device sdd1): bdev /dev/sdd1 errs: wr 57, rd 0, flush 0, corrupt 4, gen 0
[12069.448466] BTRFS info (device sdd1): bdev /dev/sdc1 errs: wr 0, rd 7, flush 0, corrupt 1, gen 0
[31125.027138] perf: interrupt took too long (3128 > 3127), lowering kernel.perf_event_max_sample_rate to 63750
[35941.907866] BTRFS critical (device sdd1): corrupt leaf: root=1 block=709342617600 slot=8, invalid root item size, have 239 expect 439

-d usbprolific and -d usbjmicron,p

smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-37-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               SAMSUNG
Product:              HD400LD
Revision:             WQ10
User Capacity:        400.088.457.728 bytes [400 GB]
Logical block size:   512 bytes
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
>> Terminate command early due to bad response to IEC mode page

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
unable to fetch IEC (SMART) mode page [scsi response fails sanity test]

=== START OF READ SMART DATA SECTION ===
Current Drive Temperature:     0 C
Drive Trip Temperature:        0 C

Error Counter logging not supported

scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
Device does not support Self Test logging
gerhard@ubuntu-SSD1:~$ sudo smartctl -q noserial -T verypermissive --smart=on -a -d usbjmicron,p /dev/sdd
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-37-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

Read Device Identity failed: scsi error unsupported scsi opcode

=== START OF INFORMATION SECTION ===
Device Model:     x�[[Uv�υO�� R�xS�B��޷v���(��@F��
Firmware Version: 3!��qU�
Rotation Rate:    24071 rpm
Form Factor:      < 1.8 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS >5 (14) (unknown minor revision code: 0xa441)
Transport Type:   Unknown (0xa146)
Local Time is:    Mon Jun 15 21:48:23 2020 CEST
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 85-87 don't show if SMART is enabled.
                  Checking to be sure by trying SMART RETURN STATUS command.
SMART support is: Available - device has SMART capability.

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enable failed: scsi error unsupported scsi opcode

Read SMART Data failed: scsi error unsupported scsi opcode


=== START OF READ SMART DATA SECTION ===
SMART Status command failed: scsi error unsupported scsi opcode
SMART overall-health self-assessment test result: UNKNOWN!
SMART Status, Attributes and Thresholds cannot be read.

Read SMART Error Log failed: scsi error unsupported scsi opcode

Read SMART Self-test Log failed: scsi error unsupported scsi opcode

Selective Self-tests/Logging not supported

floogy@ubuntu-SSD1:~$ sudo smartctl -q noserial -T verypermissive --smart=on -a -d usbprolific /dev/sdd
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-37-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

Read Device Identity failed: scsi error unsupported scsi opcode

=== START OF INFORMATION SECTION ===
Device Model:     y<k�[��1b�E����-4�rļO�K�����y2���
Firmware Version: (n���a�
Rotation Rate:    30579 rpm
Form Factor:      CFast
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   Unknown(0xa14b) (unknown minor revision code: 0x07d3)
Transport Type:   Unknown (0x589f)
Local Time is:    Mon Jun 15 21:48:39 2020 CEST
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported.
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 85-87 don't show if SMART is enabled.
                  Checking to be sure by trying SMART RETURN STATUS command.
SMART support is: Unknown - Try option -s with argument 'on' to enable it.
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enable failed: scsi error unsupported scsi opcode

Read SMART Data failed: scsi error unsupported scsi opcode


=== START OF READ SMART DATA SECTION ===
SMART Status command failed: scsi error unsupported scsi opcode
SMART overall-health self-assessment test result: UNKNOWN!
SMART Status, Attributes and Thresholds cannot be read.

Read SMART Error Log failed: scsi error unsupported scsi opcode

Read SMART Self-test Log failed: scsi error unsupported scsi opcode

Selective Self-tests/Logging not supported


in reply to:  4 comment:5 by Christian Franke, 4 years ago

Thank you for clearifying. I saw that drive on the net with a firmware >wq100 instead of wq10, but I don't know exactly, if that firmware is of that bridge or the drive itself.

The Firmware Version: line always reports the drive firmware version. The bridge firmware version is reported in lsusb output as bcdDevice:

  idVendor           0x067b Prolific Technology, Inc.
  idProduct          0x2507 PL2507 Hi-speed USB to IDE bridge controller
  bcdDevice            1.00

This suggests that this is a very old firmware version which may not properly support ATA pass-through.

If none of the -d usb* options work properly, the last chance is -d sat.

Note that -d sat,auto is useless for USB bridges. It has the same effect as -d scsi which does not support ATA SMART.

Note: See TracTickets for help on using tickets.