User Tools

Site Tools


computing:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
computing:start [2022/07/26 20:22] oemb1905computing:start [2022/07/30 23:50] oemb1905
Line 1: Line 1:
-  -------------------------------------------+-------------------------------------------
   * **smartmontools**    * **smartmontools** 
   * **Jonathan Haack**   * **Jonathan Haack**
Line 11: Line 11:
 ------------------------------------------- -------------------------------------------
  
-This tutorial is a collection of syntax and tips for using smart tools on Debian. The following command runs a short test. Change the verb after the ''-t'' flag to ''long'' in order to run a long test.+This tutorial is a collection of syntax and tips for using smart tools on Debian. The following command runs a short test. Change the verb after the ''-t'' flag to ''long'' in order to run a long test. You can optionally add the ''-C'' flag to run the test in the foreground.
      
   smartctl -t short /dev/disk   smartctl -t short /dev/disk
 +  smartctl -t short -C /dev/disk
 +
 +To check a drive for what it supports or does not, use the ''-i'' flag for information about the drive.
 +
 +  sudo smartctl -i /dev/disk
      
 +If time is an issue, use the ''-c'' flag to check how long the test will take.
 +
 +  sudo smartctl -c /dev/disk
 +  
 +To see the results of a test you ran in background mode, use the ''-a'' flag to see all the historical records on the drive in question, including the test results.
 +
 +  sudo smartctl -a /dev/sdc
 +  
 +To only look at the test results, use the following syntax:
 +
 +  smartctl -l selftest /dev/disk
 +
  --- //[[jonathan@haacksnetworking.org|oemb1905]] 2022/07/26 14:19//  --- //[[jonathan@haacksnetworking.org|oemb1905]] 2022/07/26 14:19//