Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 205 Bytes

selfcheck-disk-health.md

File metadata and controls

9 lines (8 loc) · 205 Bytes

self check disk health

for i in a b c d e f; do
	smartctl -q silent -a /dev/sd$i; excode=$?; if (($excode & 8)); then
		echo "disk [/dev/sd$i] failing; verify smartctl -a /dev/sd$i"
	fi;
done