$ sudo apt-get install smartmontools
edit "/var/lib/smartmontools/drivedb/drivedb.h" and add the following text:
{ "USB: ; ASMedia", // Geekworm X829
"0x174c:0x0829",
"",
"",
"-d sat"
},
$ sudo smartctl --xall /dev/sda
$ sudo smartctl --health /dev/sda
$ sudo smartctl --smart=on --offlineauto=on --saveauto=on /dev/sda
$ sudo smartctl --smart=off --offlineauto=off --saveauto=off /dev/sda
$ sudo smartctl -i -d sat /dev/sda
$ sudo smartctl -t long -d sat /dev/sda -T permissive
then it will say something like:
Testing has begun.
Please wait 10 minutes for test to complete.
Test will complete after Mon May 10 06:35:39 2021
after its completion,
$ sudo smartctl -l selftest -d sat /dev/sda -T permissive