[smartmontools-support] Cannot read SMART data on Raspberry Pi, All good on Windows using different tools
Ertan Küçükoğlu
ertan at cronosmedikal.com
Wed May 29 13:50:31 CEST 2019
>For USB connected SATA disks, smartctl should normally detect the USB Id
>under Linux. This apparently does not work on this system.
>
>The detection heuristics for /dev/sdX works as follows: Starting with
>directory symlinked by /sys/block/sdX/device, parent directories are
>searched for idVendor, idProduct and bcdDevice files. A typical result is:
>
>$ ls -1 /sys/block/sda/device/../../../../{bcd,id}*
>/sys/block/sda/device/../../../../bcdDevice
>/sys/block/sda/device/../../../../idProduct
>/sys/block/sda/device/../../../../idVendor
>
>If found, the USB Id is read from these files. Do such files exist on
>your system? Try
>
>$ find /sys -name idVendor
Below output of above two commands on my system
root at raspberrypi:~# ls -1 /sys/block/sda/device/../../../../{bcd,id}*
/sys/block/sda/device/../../../../bcdDevice
/sys/block/sda/device/../../../../idProduct
/sys/block/sda/device/../../../../idVendor
root at raspberrypi:~# find /sys -name idVendor
/sys/devices/platform/soc/3f980000.usb/usb1/idVendor
/sys/devices/platform/soc/3f980000.usb/usb1/1-1/idVendor
/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/idVendor
/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.3/idVendor
/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.1/idVendor
/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/idVendor
root at raspberrypi:~#
What's inside these files are as below
root at raspberrypi:~# cat /sys/devices/platform/soc/3f980000.usb/usb1/idVendor
1d6b
root at raspberrypi:~# cat /sys/devices/platform/soc/3f980000.usb/usb1/1-1/idVendor
0424
root at raspberrypi:~# cat /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/idVendor
0424
root at raspberrypi:~# cat /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.3/idVendor
046d
root at raspberrypi:~# cat /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.1/idVendor
0424
root at raspberrypi:~# cat /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/idVendor
0850
root at raspberrypi:~#
My understanding I do have mentioned files in my system.
More information about the Smartmontools-support
mailing list