7

Samsung Portable SSD T7 doesn't seem to work well with Linux tools. The drive is recognized by the OS and basic functions work fine.

However, hdparm won't report anything about the drive: SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Neither will smartctl: /dev/sda: Unknown USB bridge [0x04e8:0x4001 (0x100)] Only if i specify the device type as suggested it shows something, but the output is incomplete and i can't see any SMART values:

# smartctl -a -d scsi /dev/sda
smartctl 7.2 2021-01-17 r5171 [x86_64-linux-5.11.14-100.fc32.x86_64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION === Vendor: Samsung Product: PSSD T7 Revision: 0 Compliance: SPC-4 User Capacity: 500.107.862.016 bytes [500 GB] Logical block size: 512 bytes LU is fully provisioned Rotation Rate: Solid State Device Logical Unit id: 0x5000000000000001 Serial number: <edited out> Device type: disk Local Time is: Fri May 14 11:48:08 2021 CEST SMART support is: Available - device has SMART capability. SMART support is: Enabled Temperature Warning: Disabled or Not Supported

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

Error Counter logging not supported

Device does not support Self Test logging

  1. Does anyone know what i can do to be able to interact with the drive?
  2. Is using the drive sensible in the long run? I know Linux is not officially supported by this drive and i won't be able to use hardware encryption or update the firmware from a Linux OS, but the unavailability of SMART data concerns me.
yakom
  • 345

2 Answers2

5

Actually scratch my comment.

Apparently the drive has an NVMe drive inside. There's currently no ATA PASSTHROUGH equivalent command for them in any of the SCSI standards. Therefore, regardless of how much hdparm / smartctl supports NVMe drive, when it's in an USB enclosure you can at best get generic SCSI support (i.e. NVMe commands that can be directly translated/mapped from SCSI commands).

In fact unlike the case of (S)ATA drives, NVMe-to-SCSI translation is currently (or, was) only maintained as a reference by the NVM Express Work Group (Also known as NVM Express Inc., apparently), while SAT is a proper SCSI standard maintained by the INCITS T10 committee.

Tom Yan
  • 10,996
2

This issue has been fixed with pull request #102. The update to drivedb, tells smartctl to use -d sntasmedia; If your drivedb is current, it will now 'just work', if backrev, manually add the -d sntasmedia argument. You can update the drivedb independently of smartmontools by using the update-smart-drivedb command.

Example output:

# smartctl --version
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.0-3-amd64] (local build)
Copyright (C) 2002-22, 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 https://www.gnu.org for further details.

smartmontools release 7.3 dated 2022-02-28 at 16:33:40 UTC smartmontools SVN rev 5338 dated 2022-02-28 at 16:34:26 smartmontools build host: x86_64-pc-linux-gnu smartmontools build with: C++11, GCC 12.2.0 smartmontools configure arguments: [hidden in reproducible builds] reproducible build SOURCE_DATE_EPOCH: 1665910132 (2022-10-16 01:48:52)

sudo smartctl -x -q noserial /dev/sdd

smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.0-3-amd64] (local build) Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION === Model Number: Samsung Portable SSD T7 Touch Firmware Version: FXG42P2Q PCI Vendor/Subsystem ID: 0x144d IEEE OUI Identifier: 0x002538 Total NVM Capacity: 1,000,204,886,016 [1.00 TB] Unallocated NVM Capacity: 0 Controller ID: 5 NVMe Version: 1.3 Number of Namespaces: 1 Namespace 1 Size/Capacity: 1,000,204,886,016 [1.00 TB] Namespace 1 Utilization: 109,867,008 [109 MB] Namespace 1 Formatted LBA Size: 512 Local Time is: Thu Feb 16 13:11:16 2023 PST Firmware Updates (0x16): 3 Slots, no Reset required Optional Admin Commands (0x0007): Security Format Frmw_DL Optional NVM Commands (0x001f): Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat Log Page Attributes (0x03): S/H_per_NS Cmd_Eff_Lg Maximum Data Transfer Size: 512 Pages Warning Comp. Temp. Threshold: 54 Celsius Critical Comp. Temp. Threshold: 56 Celsius

Supported Power States St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat 0 + 4.83W - - 0 0 0 0 0 0 1 + 3.54W - - 1 1 1 1 0 0 2 + 3.04W - - 2 2 2 2 0 0 3 - 0.0500W - - 3 3 3 3 26000 1000

Supported LBA Sizes (NSID 0x1) Id Fmt Data Metadt Rel_Perf 0 + 512 0 0

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

SMART/Health Information (NVMe Log 0x02) Critical Warning: 0x00 Temperature: 23 Celsius Available Spare: 100% Available Spare Threshold: 10% Percentage Used: 0% Data Units Read: 30,173 [15.4 GB] Data Units Written: 1 [512 KB] Host Read Commands: 141,544 Host Write Commands: 9 Controller Busy Time: 0 Power Cycles: 2 Power On Hours: 1,031 Unsafe Shutdowns: 1 Media and Data Integrity Errors: 0 Error Information Log Entries: 0 Warning Comp. Temperature Time: 0 Critical Comp. Temperature Time: 0 Temperature Sensor 1: 23 Celsius Temperature Sensor 2: 22 Celsius

Warning: NVMe Get Log truncated to 0x200 bytes, 0x200 bytes zero filled Error Information (NVMe Log 0x01, 16 of 64 entries) No Errors Logged

Tom Yan
  • 10,996
Ryan
  • 38
  • 3