smartctl -x instead of --all

This commit is contained in:
12b 2021-01-15 23:31:20 +01:00
parent d0a1ede3e9
commit a82d0bc345
2 changed files with 10 additions and 4 deletions

View file

@ -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

View file

@ -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