mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
feat(snippets): start noting down smartctl commands
This commit is contained in:
15
snippets/smartctl.sh
Normal file
15
snippets/smartctl.sh
Normal 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'
|
||||
Reference in New Issue
Block a user