Created
August 9, 2024 12:58
-
-
Save JBlond/b6328b97705c808b16e5de568b7183f7 to your computer and use it in GitHub Desktop.
smartctl check all drives
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
#!/bin/bash | |
for i in {a..r}; do | |
echo "Disk sd$i" $SN $MD | |
smartctl -H /dev/sd$i | grep -v "smartctl " | grep -v "Copyright " | grep -v "=== START" | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment