pi@raspberrypi:~ $ sudo smartctl -s /dev/sda
smartctl 6.6 2017-11-05 r4594 [armv7l-linux-4.19.75-v7l+] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=======> INVALID ARGUMENT TO -s: /dev/sda
=======> VALID ARGUMENTS ARE: on, off, aam,[N|off], apm,[N|off], dsn,[on|off], lookahead,[on|off], security-freeze, standby,[N|off|now], wcache,[on|off], rcache,[on|off], wcreorder,[on|off[,p]], wcache-sct,[ata|on|off[,p]] <=======
Use smartctl -h to get a usage summary
pi@raspberrypi:~ $ sudo hdparm -C /dev/sda;date
/dev/sda:
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
drive state is: standby
Fri Nov 15 00:36:05 MSK 2019
pi@raspberrypi:~ $ sudo hdparm -y /dev/sda
/dev/sda:
issuing standby command
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
pi@raspberrypi:~ $