![]() ![]() This is how the GUI looks like, right click on the drive and you can find some other options in it. Here are some images that you may find handy. They also have a GUI version of this application which can be insalled by: If you would like to scan a particular drive you can do that by placing your drive name insead of /dev/sda. For more information, see the nf man page. The long test will run on every Saturday at 3:00 A.M. In this example, the short self-test will run daily at 2:00 A.M. To check for failure of any Usage Attributes (-f). To report increases in both SMART error logs (-l). If you want to add your own specifications you can do that too, here is an exampe how to do it:ĭEVICESCAN -a -H -l error -l selftest -f -s(S/./././02|L/././6/03) -m root -M exec /usr/share/smartmontools/smartd-runner The file smartd-runner performs quite a number of functions, including sending mail to the root, but it might have its own time specifications. You may remove the -M exec part if your system doesn’t have the smartd-runner file. In the above command -m root means that if an error occur’s during the scan, it will sent the root an email report, but instead the -M exec will exec commands in /usr/share/smartmontools/smartd-runner. dev/sda -m root -M exec /usr/share/smartmontools/smartd-runner If DEVICESCAN doesn’t possibly work on your system you may use /dev/sda or your hdd name instead of DEVICESCAN. Sudo nano /etc/nf (and uncomment the marked line) Now to configure how SMART will scan the disk and what actions are to be taken if SMART returns any error: This will start smartmontools everytime with the system. You can use any text editor you want, I’m using nano. To do that go ahead and do the following: So you won’t have to perform all of the above actions daily. Although the results are quite clear, but if you have any problem understanding the output of smartctl you can check the man pages if you want by typing:Īfter completing all of the above you can run smartmontools as Daemon on your system. Here is a image how the test results look like. To get your test results you will have to type: There might be chances of hard drive failure in the near future. If there are any errors while perfoming any of the above tests it means you shold get a backup of your sda as soon as possible. You will have to type in commands for the output. All of the test runs in the background so there is no way you will be able to track the progress on your screen. The long test will take more time then anything else. The above image is something taht is dislpayed after executing the command for the long test. Sudo smartctl -conveyance /dev/sda (for conveyance test) Sudo smartctl -short /dev/sda (for short test) Sudo smartctl -l long /dev/sda (for long test) ![]() You can stat with any test you feel like: Short, Long and Conveyance you also see the time that it will take to complete all three test. The tool used to test your hard drive has three types of tests to perform. Now having SMART enabled on your system, let’see how to work with it. If the output shows any error you better run a backup!!! You can check your hard drive’s status by typing: ![]() Sudo smartctl -a -d ata /dev/sda (for SATA drives) Sudo smartctl -a /dev/sda (for IDE drives) To check the complete SMART information for an IDE drive and SATA drive type: The above command will turn on the smart support, if already enabled it does nothing. The image contains information about my hdd basically. Make sure the last two lines of the output are alike. The above /sda can be replaced with your own hdd name /xyz or anything that is. Now just to check if your drive is actually SMART type: The above command will install smartmontools on your system. In many cases, these utilities will provide advanced warning of disk degradation and failure. The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (SMART) built into most modern ATA and SCSI harddisks. I will cover installation, usage on the shell and the smartmon GNOME gui in this tutorial. In this article I will give you an overveiw on the smartmontools which is a set of applications that can test hard drives, automatically notify you when the failure rate rises and read the harddisk SMART statistics to detect failures early. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |