Opened 4 months ago

Closed 4 months ago

#1581 closed defect (invalid)

smartctl never completes when all information is requested from a 4K Native WD drive over USB

Reported by: Eaton Zveare Owned by:
Priority: minor Milestone:
Component: smartctl Version: 7.3
Keywords: ata usb Cc:

Description

When the drive is configured 512e, there is no problem.
When the drive is configured 4K Native, running "smartctl --xall pd1" results in an infinite loading condition and the only way to stop it is to unplug the drive. This only happens over USB and works fine over a direct SATA connection. It's worth noting I have tested a lot of drives over USB and this is the only time I have seen this issue.

The drive was originally 512e, but was changed to 4K Native using this tool: https://github.com/pig1800/WD4kConverter

Disk model: WDC WD4005FZBX-00K5WB0 (WD Black 4 TB 3.5")
USB docking station: Sabrent DS-UTC1

I believe the chipset on the docking station is the ASMedia ASM235CM.

When the drive is unplugged, smartctl immediately returns the attached information (there are many errors).

The LED activity light on the docking station blinks the whole time and never stops until it's powered off.

My theory is that the the USB chip can't handle one of the commands you are sending. It's a bit odd it took a sector size change to expose the issue, though.

Attachments (4)

smartctl Output.txt (2.4 KB) - added by Eaton Zveare 4 months ago.
1.txt (10.5 KB) - added by Eaton Zveare 4 months ago.
Log of first command
2.txt (278 bytes) - added by Eaton Zveare 4 months ago.
Log of second command
2_new.txt (19.9 KB) - added by Eaton Zveare 4 months ago.
Log of second command (for real)

Download all attachments as: .zip

Change History (14)

Changed 4 months ago by Eaton Zveare

Attachment: smartctl Output.txt added

comment:1 Changed 4 months ago by Christian Franke

Is there any evidence that Sabrent or ASMedia advertise full 4Kn support for this USB->SATA bridge?

The modes 512n, 512e (LPS) or 4Kn (LLS) make no difference for smartctl operation. The ATA commands IDENTIFY, SMART READ DATA, SMART READ LOG and READ LOG EXT always use the traditional 512 byte sector size. The LLS (Long Logical Sector) feature set only affects regular R/W commands. See for example Table 5 of T13/2015-D Revision 7 (ATA ACS-2).

Please provide the output of the following commands as attachments and indicate which of the commands hangs until the device is disconnected:

smartctl -r ioctl,2 -i ...
smartctl -r ioctl,2 -i -A ...

PS: Please do not set the Milestone in future submissions.

Changed 4 months ago by Eaton Zveare

Attachment: 1.txt added

Log of first command

Changed 4 months ago by Eaton Zveare

Attachment: 2.txt added

Log of second command

comment:2 Changed 4 months ago by Eaton Zveare

Attached. Both commands execute without causing a hang.

comment:3 Changed 4 months ago by Eaton Zveare

And to answer your question, I do not know if they advertise support for 4K Native. Everything works fine though (reads, writes, etc) - everything except for obtaining all information using smartctl.

comment:4 Changed 4 months ago by Christian Franke

Log of second command

PD1: Unable to detect device type

Please retry with pd1 as device name.

Changed 4 months ago by Eaton Zveare

Attachment: 2_new.txt added

Log of second command (for real)

comment:5 Changed 4 months ago by Eaton Zveare

Not sure what happened there, oops.
It's attached. Still did not hang.

comment:6 Changed 4 months ago by Christian Franke

The results suggest that the SMART WRITE LOG command does not work with this USB-bridge, at least with 4Kn drives.

The command:

smartctl -x ...

is the same as:

smartctl -i -g all -g wcreorder -H -c -A -f brief -l xerror,error -l xselftest,selftest -l selective -l directory -l scttemp -l scterc -l devstat -l defects -l sataphy ...

If this reduced option set works, the guess might be correct:

smartctl -i -g all -H -c -A -f brief -l xerror,error -l xselftest,selftest -l selective -l directory -l devstat -l defects -l sataphy ...

comment:7 Changed 4 months ago by Eaton Zveare

Both of those commands hang, unfortunately. Let me know if you want the output, or have another reduced option to try.

comment:8 Changed 4 months ago by Christian Franke

Further diagnostics would require trial and error with commands subsets. Possibly not worth the effort because this is likely a bug in the firmware of the USB-bridge which cannot be fixed by smartctl.

Does smartctl -x work if a 512n/512e drive is connected to this docking station?

comment:9 Changed 4 months ago by Eaton Zveare

Yes. That command only hangs on the 4K Native drive.

comment:10 Changed 4 months ago by Christian Franke

Keywords: ata usb added
Milestone: undecided
Resolution: invalid
Status: newclosed

This is a likely a bug in the firmware of the USB bridge in conjunction with 4Kn drives. This cannot be fixed by smartctl.

Note: See TracTickets for help on using tickets.