S.M.A.R.T.: Difference between revisions

 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
* Add <code>-d sat</code>
* Add <code>-d sat</code>


====Seagate USB Hard Drives====
For Seagate USB hard drives, it will run in uas mode and smart won't work.   
For Seagate USB hard drives, it will run in uas mode and smart won't work.   
See [https://askubuntu.com/questions/637450/cannot-perform-smart-data-and-self-test-on-external-hard-drive https://askubuntu.com/questions/637450/cannot-perform-smart-data-and-self-test-on-external-hard-drive].   
See [https://askubuntu.com/questions/637450/cannot-perform-smart-data-and-self-test-on-external-hard-drive https://askubuntu.com/questions/637450/cannot-perform-smart-data-and-self-test-on-external-hard-drive].   
Line 15: Line 16:
# Run <code>sudo update-initramfs -u</code>
# Run <code>sudo update-initramfs -u</code>
# Reboot
# Reboot
====Long Smart Tests====
When running long smart tests, you will want to continuously poll the device so it does not go to sleep.
<syntaxhighlight lang="bash">
DEVICE=/dev/sda
sudo smartctl -t long $DEVICE
sudo watch -d--cumulative -n 10 smartctl -l selftest $DEVICE
</syntaxhighlight>


===Remote monitoring===
===Remote monitoring===
Line 36: Line 45:
* <code>-M daily</code> sends daily reminders for failures
* <code>-M daily</code> sends daily reminders for failures
* <code>-s (S/../../6/01)</code> runs a short test every saturday at 1AM.
* <code>-s (S/../../6/01)</code> runs a short test every saturday at 1AM.
===Tests===
<pre>
sudo smartctl -t <short|long|conveyance|select> <drive>
</pre>
* <code>conveyance</code> is good to test after any physical movement of the drive.


==gsmartcontrol==
==gsmartcontrol==
gsmartcontrol is a GUI frontend for smartctl
gsmartcontrol is a GUI frontend for smartctl