smartctl fails, do you have a workaround

Asked by peterzay

SanDisk 1TB Extreme PRO Portable SSD SDSSDE81-1T00-G25 fails on smartctl as follows:

xxx@yyy:~$ sudo smartctl -a /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.19.0-32-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sda: Unknown USB bridge [0x0781:0x55af (0x1085)]
Please specify device type with the -d option.

Use smartctl -h to get a usage summary

When I specify the -d option:

xxx@yyy:~$ sudo smartctl -a -d nvme /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.19.0-32-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

Read NVMe Identify Controller failed: NVME_IOCTL_ADMIN_CMD: Invalid argument

Here is the output of help for -d:

  -d TYPE, --device=TYPE
         Specify device type to one of:
         ata, scsi[+TYPE], nvme[,NSID], sat[,auto][,N][+TYPE], usbcypress[,X], usbjmicron[,p][,x][,N], usbprolific, usbsunplus, sntjmicron[,NSID], sntrealtek, intelliprop,N[+TYPE], jmb39x[-q],N[,sLBA][,force][+TYPE], jms56x,N[,sLBA][,force][+TYPE], marvell, areca,N/E, 3ware,N, hpt,L/M/N, megaraid,N, aacraid,H,L,ID, cciss,N, auto, test

Is there a workaround for this failure of smartctl?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
peterzay
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Basic information that is required for answering any question:
Which Ubuntu release are you running?
What exactly do you want to do?

Required additional information in this case:
Why do you think that you need to run the smartctl command?

I do not see your device in the list https://www.smartmontools.org/wiki/Supported_USB-Devices
The "most similar" device there is SanDisk Extreme USB 3.0 0x0781:0x5580 (0.10) requiring "-d sat".
No idea whether that works also for your disk.

If such device is not supported by smartmontools, then Ubuntu cannot provide any workaround.
You better look for answers at https://www.smartmontools.org/wiki/TocSupport and https://www.smartmontools.org/wiki/TracSupport

Revision history for this message
peterzay (peterzay) said :
#2

Ubuntu 22.04.1 LTS

>What exactly do you want to do?
Test the status of a recently acquired device.

>Why do you think that you need to run the smartctl command?
You will recall I have had problems with new Sandisk products in the past.

Here is the "-d sat" output:

xxx@yyy:~$ sudo smartctl -a -d sat /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.19.0-32-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

Read Device Identity failed: scsi error unsupported scsi opcode

A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.