S.M.A.R.T error USB SATA disk

When I checked the SMART status of the USB disk, I encountered an error:

/dev/sdc: Unknown USB bridge [0x152d:0x0580 (0x103)]
Please specify device type with the -d option.

But when I run the command sudo smartctl -a /dev/sdc -d sat I receive the correct SMART values.

I tried editing the file /usr/lib/python3/dist-packages/middlewared/common/smart/smartctl.py, but I didn’t succeed.

and I tried /etc/default/grub.d/truenas.cfg add option usb_storage.quirks=0x152d:0x0580: to GRUB_CMDLINE_LINUX=, but I didn’t achieve a successful result.

Truenas Version: 25.04-RC.1

You could try putting -d sat in the SMART extra options box on the Edit screen for this device:

There is no “SMART extra option”. Maybe it needs to be activated somehow?

The SMART Extra Options went away when I filed a ticket stating it didn’t work and asked for advice on how to make it work.

Yes, this is normal smartctl operation when it comes to USB connected drives. Smartctl does not know what the interface is so you get to manually configure it.

If you run smartctl --scan you will get a list of your drives and the interfaces smartctl thinks they should be.

I have expanded my little script called Drive_Selftest to now check for this and try various other values before giving up. It seems to work well, BUT it is not fully beta tested and I did have one single unfavorable report where it failed to access one drive that should have been accessible and I need to find a fix. This can take weeks as it is up to the other person to validate I fixed it and didn’t break anything in the process.

What was your goal? I’m asking because it sounds like a lot of changes are coming with TrueNAS 25.10.0 with respect to SMART. I hope this puts my scripts out of business but it will be a while until that happens.

1 Like

My goal is to be able to monitor disk status through the standard TruNAS interface. To do this, I want to add the “-d sat” parameter to smartctl for a USB connected disk, but I don’t know how to do it.

Unfortunately as far as I am aware, you cannot do this. I believe the SMART Options was originally intended for that type of operation however it was never implemented and for years, never used, thus iXsystems is removing it since it was never actually operational. This is based from a Jira ticket I filed and was recently closed. I too wanted to use -d sat or whatever was required to make the interface work.

But I absolutely understand what and why you want it. TrueNAS 25.10 GoldEye is expected to do more. I just installed the nightly and honestly, I’m way too soon. The system works but the new SMART enhancements are either not there or I cannot located them. Scrutiny is also expected to be installed and that may fix everything. Watch the latest TrueNAS Tech Talk, it is discussed in that episode.

You may need to wait a while. I am also under the impression that if you install Scrutiny as @pmh has done, maybe it will provide you this data in a nice GUI format. It is not TrueNAS native but maybe that will be okay for you.

I tried installing Scrutiny, but there is no SMART information for the desired disk there either. Probably the information gathering mechanism of Scrutiny and TrueNAS is the same, they both access smartctl. Scrutiny only serves to visualize the information without offering a new mechanism to collect SMART information.

Maybe this problem will be solved in newer versions of TrueNAS. I’ll wait.

You can run the collector for Scrutiny in a cron job outside of the app and provide additional parameters or configuration. Check the Scrutiny docs on github for hub & spoke operation.

1 Like