Skip to content

Instantly share code, notes, and snippets.

@JBlond
Created August 9, 2024 12:58
Show Gist options
  • Save JBlond/b6328b97705c808b16e5de568b7183f7 to your computer and use it in GitHub Desktop.
Save JBlond/b6328b97705c808b16e5de568b7183f7 to your computer and use it in GitHub Desktop.
smartctl check all drives
#!/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