feat(snippets): start noting down smartctl commands

This commit is contained in:
Michele Cereda
2024-12-20 20:52:13 +01:00
parent 25b949d21f
commit 5b8a9f6e03

15
snippets/smartctl.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env sh
# start tests
sudo smartctl -t 'long' '/dev/sda'
sudo smartctl --type 'short' '/dev/nvme0'
# show devices' SMART health status
sudo smartctl -H '/dev/sda'
sudo smartctl --health '/dev/nvme0'
# print self-tests' results
sudo smartctl -l 'selftest' '/dev/nvme0'
# print results for self-tests and attribute errors
smartctl --attributes --log='selftest' --quietmode='errorsonly' '/dev/sda'