From 9b805e49441dc65c0ddbe01d4eeb8190d8fc21a6 Mon Sep 17 00:00:00 2001 From: Cyteen Date: Thu, 9 Nov 2017 16:48:03 +0000 Subject: [PATCH] Changed the to so that the drives are enumberated properly. --- 020_smartmon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/020_smartmon.sh b/020_smartmon.sh index d0b5feb..75a6520 100644 --- a/020_smartmon.sh +++ b/020_smartmon.sh @@ -30,7 +30,7 @@ EMAIL=root # You must initiate the first selective self test manually (-t select,0-${SIZE}) so smartd will know the slice size to test each day. # To setup a full test of a 1TB disk within 20 days (one 50GB span each day), run this command once: SIZE=99999999 -for i in $(smartctl --scan-open | awk {'print $2'}); +for i in $(smartctl --scan-open | awk {'print $1'}); do echo ${i}; smartctl -t select,0-${SIZE} ${i}