007revad / Synology_SMART_info

Show Synology smart test progress or smart health and attributes
MIT License
24 stars 2 forks source link

Is it possible to support USB external HDD? #7

Closed timmyhbk closed 3 months ago

timmyhbk commented 3 months ago

Is there any chance that the script will be able to support USB external HDD? I originally used smartctl -a -d sat /dev/usb1 to check. But it seems to be not working in the new version of DSM.

Thanks!

007revad commented 3 months ago

For the USB drives I previously tried smartctl didn't work. These were:

I just checked my script and I already included support for USB drives, I disabled for some reason. Lines 474 to 478 are commented out. I just removed the # in front of those lines and tested with I just an old 2.5 inch Samsung S2 Portable 3 drive and smartctl worked. I also tried connecting the cable from the USB drive to an unpowered USB hub and the drive didn't even power up.

The only issue is it shows as the same Drive number of the previous drive, instead of showing as USB 1. That should an easy fix.

image

I also need to figure how to avoid USB flash drives as they just cause 6 lines of error messages.

image

timmyhbk commented 3 months ago

I also removed the comments from scripts 474 through 478.

I found that only the external HDD that I am mainly using (Seagate Expansion HDD) are not displayed. A few other external SSDs/HDDs did display correctly.

It seems to be a problem with my device, thank you.

2024-07-21 184124