From a82d0bc3457572ca9620e36fd367fa74feb95395 Mon Sep 17 00:00:00 2001 From: 12b Date: Fri, 15 Jan 2021 23:31:20 +0100 Subject: [PATCH] smartctl -x instead of --all --- bin/run-full-benchmark.sh | 7 +++++-- bin/run-quick-benchmark.sh | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/bin/run-full-benchmark.sh b/bin/run-full-benchmark.sh index e325df1..3404425 100755 --- a/bin/run-full-benchmark.sh +++ b/bin/run-full-benchmark.sh @@ -58,8 +58,11 @@ for d in $BLOCK_DEVICES do echo "# block device /dev/$d => hdparm -Iv #" | tee -a $LOGFILE sudo hdparm -Iv /dev/$d 2>&1 | tee -a $LOGFILE - echo "# block device /dev/$d => smartctl --all #" | tee -a $LOGFILE - sudo smartctl --all /dev/$d +done +for d in $BLOCK_DEVICES +do + echo "# block device /dev/$d => smartctl -x #" | tee -a $LOGFILE + sudo smartctl -x /dev/$d done echo ' ' | tee -a $LOGFILE diff --git a/bin/run-quick-benchmark.sh b/bin/run-quick-benchmark.sh index 3dc7a51..cbbccf2 100755 --- a/bin/run-quick-benchmark.sh +++ b/bin/run-quick-benchmark.sh @@ -53,8 +53,11 @@ for d in $BLOCK_DEVICES do echo "# block device /dev/$d => hdparm -Iv #" | tee -a $LOGFILE sudo hdparm -Iv /dev/$d 2>&1 | tee -a $LOGFILE - echo "# block device /dev/$d => smartctl --all #" | tee -a $LOGFILE - sudo smartctl --all /dev/$d +done +for d in $BLOCK_DEVICES +do + echo "# block device /dev/$d => smartctl -x #" | tee -a $LOGFILE + sudo smartctl -x /dev/$d done echo ' ' | tee -a $LOGFILE