Long scripts should be maintained elsewhere. Reason: The wiki is not a code development platform. ![]() # smartctl -a /dev/ device Generate table with attributes of all disks You can also view a list of recent test results and detailed information about a device: If this happens get your data off the disk and to someplace safe as soon as you can." "If the device reports failing health status, this means either that the device has already failed, or that it is predicting its own failure within the next 24 hours. You can view a device's overall health with the -H flag. # smartctl -t conveyance /dev/ device View test results Use -t/ -test= test_name flag to run a test: The -c/ -capabilities flag prints which tests a device supports and the approximate execution time of each test. Conveyance: identifies if damage incurred during transportation of the device.Extended or Long: the test is the same as the short check but with no time limit and with complete disk surface examination,.Short: runs tests that have a high probability of detecting device problems,.There are three types of self-tests that a device can execute (all are safe to user data): For example, specifying -device=ata tells smartctl that the device type is ATA, and this prevents smartctl from issuing SCSI commands to that device. ![]() If SMART is available but not enabled, you can enable it: # smartctl -info /dev/sda | grep 'SMART support is:' SMART support is: Available - device has SMART capability. The -i/ -info option prints a variety of information about a device, including whether SMART is available and enabled: Smartctl is a command-line tool that "controls the Self-Monitoring, Analysis and Reporting Technology (SMART) system built into most ATA/SATA and SCSI/SAS hard drives and solid-state drives." That done, you can manually #Run a test and #View test results, or you can use #smartd to automatically run tests and email notifications. You can use #smartctl to check for and enable SMART support. ![]() SMART support must be available and enabled on each storage device to effectively use these tools. Install the smartmontools package to use these tools. The smartmontools package contains two utility programs for analyzing and monitoring storage devices: smartctl and smartd.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |