Please note the following marginal Attributes: Warning: This result is based on an Attribute check. SMART overall-health self-assessment test result: PASSED :~# smartctl -a -d ata /dev/sdb // For SATA drive Example:5 Display Overall health of the Disk :~# smartctl -H /dev/sdbĬopyright (C) 2002-13, Bruce Allen, Christian Franke, = START OF READ SMART DATA SECTION = Example:4 Display Detailed Smart info for the disk :~# smartctl -a /dev/sdb // For IDE drive Use option -s with argument 'on' to enable it. Example:3 Disable Smart Capability for the disk :~# smartctl -s off /dev/sdb Last Two lines in above output shows that SMART capability is enable for the device.Įxample:2 Enable Smart Capability for the disk :~# smartctl -s on /dev/sdbĬopyright (C) 2002-13, Bruce Allen, Christian Franke, = START OF ENABLE/DISABLE COMMANDS SECTION = SMART support is: Available - device has SMART capability. User Capacity: 320,072,933,376 bytes ĭevice is: In smartctl database ĪTA Version is: ATA8-ACS T13/1699-D revision 4 Smartctl 6.2 r3841 (local build)Ĭopyright (C) 2002-13, Bruce Allen, Christian Franke, = START OF INFORMATION SECTION = In this tutorial, we covered a very important topic concerning disk drive health diagnostics, you can reach us via the feedback section below to share your thoughts or ask any questions and remember to always stay connected to Tecmint.Installation of Smartcl in Ubuntu $ sudo apt-get install smartmontools Installation of Smartcl in Redhat / CentOS # yum install smartmontoolsįor Ubuntu $ sudo /etc/init.d/smartmontools startįor CentOS & RHEL # service smartd start chkconfig smartd on Example:1 Check Whether Smart Capability is enabled or not for the disk :~# smartctl -i /dev/sdb The result above indicates that your hard disk is healthy, and may not experience hardware failures any soon.įor an overview of disk information, use the -a or -all option to print out all SMART information concerning a disk and -x or -xall which displays all SMART and non-SMART information about a disk. Now execute the smartctrl command and name your specific device as an argument as in the following command, the flag -H or -health is included to display the SMART overall health self-assessment test result. You can look through its man page or help page as follows: $ man smartctl Once the installation is complete, use smartctl which controls the S.M.A.R.T system integrated into a disk. You can install smartmontools by running the command below: - On Debian/Ubuntu based systems. This method is more reliable and efficient for modern disks (ATA/SATA and SCSI/SAS hard drives and solid-state drives) which ship in with a S.M.A.R.T (Self-Monitoring, Analysis and Reporting Technology) system that helps detect, report and possibly log their health status, so that you can figure out any impending hardware failures. Scan Bad Sectors on Linux Disk Using Smartmontools $ sudo e2fsck -l badsectors.txt /dev/sda10 Specifically for ext2/ext3/ext4 file-systems. The -l option tells the command to add the block numbers listed in the file specified by filename ( badsectors.txt) to the list of bad blocks. You will need to employ e2fsck (for ext2/ext3/ext4 file systems) or fsck command with the badsectors.txt file and the device file as in the command below. In case you discover any bad sectors on your disk drive, unmount the disk and instruct the operating system not to write to the reported sectors as follows. In addition, the results of the operation are stored in the file badsectors.txt by means of output redirection. In the command above, badblocks is scanning device /dev/sda10 (remember to specify your actual device) with the -v enabling it to display details of the operation. Then scan your Linux disk drive to check for bad sectors/blocks by typing: $ sudo badblocks -v /dev/sda10 > badsectors.txt The device can be a hard disk or an external disk drive, represented by a file such as /dev/sdc.įirstly, use the fdisk command with superuser privileges to display information about all your disk drives or flash memory plus their partitions: $ sudo fdisk -l A badblocks program enables users to scan a device for bad sectors or blocks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |