I'm thinking to do a script to recognize which HDDs are in use (sda, sdb, etc) and run a Smartctl on each one that's are in use, but I don't know how can I start, anyone can help me?
Script to Recognize HDDs and run Smartctl
shell script;hard disk;smartctl