道者编程

schedutils检查硬盘

一:安装

(1)centos和fedora上安装

# yum install kernel-utils
  (2)Debian/Ubuntu 下安装

# apt-get install smartmontools
 

二:smartmontools 先检查一下硬盘是否具有 SMART 特性,输入命令:

# smartctl -s on /dev/sda
 === START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.


三:检查,输入命令:

# smartctl -H -d ata /dev/sda
 

smartctl version 5.38 [i686-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
Please note the following marginal Attributes:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
184 Unknown_Attribute       0x0032   099   099   099    Old_age   Always   FAILING_NOW 1
 
如果SMART overall-health self-assessment test result: PASSED ,测试结果“PASSED”,表明测试通过,该硬盘目前处于健康状态
这个只是一个大概的检测结果而已,最好的方法,还是要做好备份!


最新评论:
我要评论:

看不清楚