skip to content
Burak Berk Keskin
Table of Contents

Overview

In my homelab cluster running Proxmox VE, attaching external SSDs and HDDs via USB enclosures frequently surfaces an annoying telemetry issue: the Proxmox Disks web UI reports disk SMART status as UNKNOWN instead of PASSED.

Before and After SMART Status Fix

As discussed in my notes on external drive SMART monitoring, USB-to-NVMe/SATA bridge chipsets (such as Realtek RTL9210 or ASMedia) often fail standard SCSI auto-detection. When queried directly without explicit device flags, smartctl fails to negotiate the bridge:

Terminal window
$ smartctl -i /dev/sdb
/dev/sdb: Unknown USB bridge [0x0bda:0x0bda (0x2001)]
Please specify device type with the -d option.

Specifying the exact controller type (e.g., -d sntrealtek) resolves the query instantly on the CLI:

Terminal window
$ smartctl -i -d sntrealtek /dev/sdb
=== START OF INFORMATION SECTION ===
Model Number: KBG50ZNV256G KIOXIA
...

However, Proxmox VE’s disk monitoring daemon invokes /usr/sbin/smartctl under the hood without custom controller parameters. Here is how I wrapped smartctl to intercept calls for specific external devices and inject the necessary bridge flag.

Crafting the Wrapper Script

I created an interception wrapper script on the Proxmox host to inject the -d sntrealtek flag whenever the queried target matches /dev/sdb:

/root/smartctl.external
#!/usr/bin/env bash
SMARTCTL=/usr/sbin/smartctl.orig
OPTIONS=("$@")
for ((i = 1; i <= $#; ++i)); do
# Check for target disk and inject controller option
if [[ "${OPTIONS[i]}" == "/dev/sdb" ]]; then
realtek_option="-d sntrealtek"
OPTIONS=($realtek_option "${OPTIONS[@]}")
fi
done
exec "$SMARTCTL" "${OPTIONS[@]}"

Deploying the Wrapper on Proxmox

To replace the stock binary with the wrapper:

  1. Back up the original smartctl binary:
Terminal window
cp /usr/sbin/smartctl /usr/sbin/smartctl.orig
  1. Replace the binary with the wrapper and set executable permissions:
Terminal window
cp ~/smartctl.external /usr/sbin/smartctl
chmod 755 /usr/sbin/smartctl
  1. (Optional) Set the immutable attribute on the wrapper to prevent package updates from silently overwriting it:
Terminal window
chattr +i /usr/sbin/smartctl

Verifying the Fix

Testing the default invocation directly verifies that the wrapper intercepts and enriches the command:

Terminal window
smartctl -i /dev/sdb

Reloading the Disks view in the Proxmox VE web GUI updates the external disk status immediately from UNKNOWN to PASSED.

Fixed Disk Status in Proxmox UI

Clicking into the disk displays full SMART health attributes, wearout indicators, and operational temperatures normally.

Full SMART Details