===== QNAP TR-004 & Intel NUC Skull Canyon ====
Some issues I ran into connecting the QNAP TR-004, a 4 Bay USB Type-C Direct Attached Storage device, to my Intel NUC Skull Canyon (NUC6I7KYK).
==== Thunderbolt USB-C port problem ====
The Thunderbolt USB-C port in my Intel Skull Canyon NUC6I7KYK did not work anymore. The Thunderbolt display-port function did work however. I upgraded the firmware, drivers and tried several BIOS options. In the end I got it working by switching hyper-threading off. When I activated hyper-threading again, USB-C was still working?!
==== QNAP TR-004 problem ====
When I connected the QNAP TR-004, the Thunderbolt USB-C hub activated, but the drives would not enumerate. After trying several kernel options disabling USB auto suspend did the trick.
# Edit /etc/default/grub
GRUB_CMDLINE_LINUX="usbcore.autosuspend=-1"
# Then update grub
update-grub
# And reboot
reboot
==== QNAP TR-004 No UAS ====
It seems this device does not support UAS, but uses the slower usb-storage driver.
lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
==== Monitoring S.M.A.R.T. status ====
It is possible to monitor the SMART attributes, but not the status, as can be seen in the output below.
SMART Status not supported: NO DATA ATA commands not implemented [JMB39x]
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.
# Install smarmontools
apt install smartmontools
# Comment out all DEVICESCAN lines in /etc/smartd.conf
# And add the following lines at the end of the file.
/dev/disk/by-id/usb-QNAP_TR-004_DISK00_51323134423032343233-0:0 -d jmb39x-q,0
/dev/disk/by-id/usb-QNAP_TR-004_DISK01_51323134423032343233-0:1 -d jmb39x-q,1
/dev/disk/by-id/usb-QNAP_TR-004_DISK02_51323134423032343233-0:2 -d jmb39x-q,2
/dev/disk/by-id/usb-QNAP_TR-004_DISK03_51323134423032343233-0:3 -d jmb39x-q,3
=== Example output ===
# Disks are selected by the number following 'jmb39x-q,' not the device name.
smartctl -a -d jmb39x-q,0 /dev/sdc
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.10.0-9-amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST2000DM001-1CH164
Serial Number: Z1E39VMP
LU WWN Device Id: 5 000c50 05010c30c
Firmware Version: CC26
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Sat Nov 13 21:49:58 2021 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART Status not supported: NO DATA ATA commands not implemented [JMB39x]
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 592) seconds.
Offline data collection
capabilities: (0x73) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
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: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 230) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x3085) SCT Status supported.
SMART Attributes Data Structure revision number: 10
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 101 099 006 Pre-fail Always - 3595736
3 Spin_Up_Time 0x0003 097 096 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 831
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 087 060 030 Pre-fail Always - 527156813
9 Power_On_Hours 0x0032 055 055 000 Old_age Always - 39751
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 469
183 Runtime_Bad_Block 0x0032 099 099 000 Old_age Always - 1
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 100 000 Old_age Always - 0 0 0
189 High_Fly_Writes 0x003a 095 095 000 Old_age Always - 5
190 Airflow_Temperature_Cel 0x0022 072 060 045 Old_age Always - 28 (0 14 32 0 0)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 346
193 Load_Cycle_Count 0x0032 098 098 000 Old_age Always - 5257
194 Temperature_Celsius 0x0022 028 040 000 Old_age Always - 28 (128 0 0 0 0)
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 38991h+39m+23.652s
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 20196844665
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 124172621341
SMART Error Log Version: 1
No Errors Logged
Read SMART Self-test Log failed: ATA command not implemented due to truncated response [JMB39x]
Read SMART Selective Self-test Log failed: ATA command not implemented due to truncated response [JMB39x]
{{tag>[hardware intel nuc Skull Canyon NUC6I7KYK qnap tr-004]}}