[smartmontools-support] Cannot read SMART data on Raspberry Pi, All good on Windows using different tools

Christian Franke Christian.Franke at t-online.de
Sat Jun 15 16:56:04 CEST 2019


Ertan Küçükoğlu wrote:
>> 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.

The detection did not work with the commands from your first post as 
/dev/sda1 (the first partition) instead of /dev/sda (the disk) was used 
as device name.

None of the above idVendor values are in the current drive database. The 
output command 'smartctl -i /dev/sda' should then show the actual USB 
Id. Please try and report the result. Then we could add it to the drive 
database.

Regards,
Christian




More information about the Smartmontools-support mailing list