Created
May 15, 2017 19:42
-
-
Save flying-sheep/01a1b9afa29cec395fa2cc00567d2476 to your computer and use it in GitHub Desktop.
Checks if your disks are in standby or not
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for disk in /dev/sd?; do | |
| if sudo smartctl -q silent -i -n standby "$disk"; then | |
| echo "$disk active" | |
| else | |
| echo "$disk standby" | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment