`

linux下硬盘检测工具

阅读更多

linux下硬盘检测工具: smartmontools

工具主页: http://smartmontools.sourceforge.net/

Smartmontools for SCSI硬盘: http://smartmontools.sourceforge.net/smartmontools_scsi.html

smartctl命令参数列表:

The following options are currently available for SCSI disks and tape drives unless otherwise noted:

  • -a | --all : equivalent to the combination -i -H -A -l error -l selftest options invoked in that order.

  • -A | --attributes : outputs the current device temperature, trip temperature, the number of elements in the grown defect list (GLIST) and data from the start-stop log page. Outputs some vendor specific information if available.

  • -C | --captive : used in conjunction with -t short or -t long options to do short or long self tests in the foreground. [Has no effect on tape drives.]

  • -d TYPE | --device=TYPE where TYPE is "ata", "scsi", "sat", "marvell", "3ware,N", "hpt,L/N[,M]" or "cciss,N". Overrides utility's guess about the class of the device which is based on the form of the nominated device's name.

  • -h | --help : outputs lengthy usage message and exits without any other action.

  • -H | --health : outputs single device health metric determined by the device manufacturer. This will be "OK" or a failure message.

  • -i | --info : outputs device identification information (derived from a SCSI INQUIRY command) and whether the device supports SMART (and temperature warnings) and if those facilities are currently enabled. The type of transport (e.g. FC or SAS) is also reported, if available. Some users have reported disks that report the wrong transport.

  • -l TYPE | --log=TYPE where TYPE is either "background", "selftest" or "error". Decodes are outputs the requested log. Note that --all does not include --log=background .

  • -q TYPE | --quietmode=TYPE where TYPE is either "silent" or "errorsonly". When the type is silent then nothing is output to the console but the exit status is set (so it is suitable for scripts). For "errorsonly" only errors are output to the console. The exit status is always set. [See the smartctl man page.]

  • -r TYPE | --report=TYPE where TYPE is either "ioctl[,<n>]" or "scsiioctl[,<n>]". Turns on low level debugging of issued commands and responses. These commands are issued through a system command called an "ioctl" in Unix. The debug can be for all issued commands (i.e. "ioctl") or only SCSI commands ("scsiioctl"). Optionally the TYPE can have a comma and a number post pended to increase the volume of debug. See this section for more details.

  • -s VALUE | --smart=VALUE where VALUE is either "on" or "off". Enables or disables SMART monitoring (and temperature warnings).

  • -S VALUE | --saveauto=VALUE where VALUE is either "on" or "off". Controls whether the error log values are preserved across device power cycles.

  • -t TEST | --test=TEST where TEST is either "offline", "short" or "long". Despite its name "offline" is a short foreground test that all SCSI devices should support. A "short" self test is typically 2 minutes or less. A "long" self test will be considerably longer than 2 minutes, depending on the size of the media. The estimated time that a "long" self test will take is printed after the "selftest" log (i.e. with '-l selftest' or '-a')

  • -V | --version : outputs the smartctl version number (including the cvs version of all its source files) and build information then exits without any other action.

  • -X | --abort : will terminate a background short or long self test. Usually the self test log notes that a self test has been aborted. [Has no effect on tape drives.]

简单用法:
1、smartctl -a  <device>         检查该设备是否已经打开SMART技术。
2、smartctl -s on <device>    如果没有打开SMART技术,使用该命令打开SMART技术。
3、smartctl -t short <device>    后台检测硬盘,消耗时间短;
      smartctl -t long <device>      后台检测硬盘,消耗时间长;
      smartctl -C -t short <device> 前台检测硬盘,消耗时间短;
      smartctl -C -t long <device>  前台检测硬盘,消耗时间长。
其实就是利用硬盘SMART的自检程序。
4、smartctl -X <device>  中断后台检测硬盘。
5、smartctl -l selftest <device>  显示硬盘检测日志。
6、smartctl -l error <device> 显示硬盘错误汇总。

分享到:
评论

相关推荐

    Linux系统中hdparm硬盘检测工具的使用.docx

    Linux系统中hdparm硬盘检测工具的使用.docx

    一个小巧的硬盘温度检测工具

    一个小巧的硬盘温度检测工具。 一个小巧的硬盘温度检测工具

    linux系统硬盘检测软件

    通过此软件可以查看linux系统的硬盘健康使用情况,很实用的一款软件。

    自己写的硬盘检测工具

    自己写的硬盘检测工具,检测硬盘的速度和读写的错误率

    希捷官方硬盘检测工具

    希捷硬盘检测工具,在DOS环境下运行 查找fdauto.bat,回车后按R 然后就可以进入希捷硬盘测试工具就可以检测了

    硬盘寿命评估工具

    一个简单实用的硬盘寿命评估工具

    硬盘健康检测工具(HDSentinel)v0.8Linux服务器版

    因为硬盘承载着我们的重要数据,所以时常查看硬盘的健康状况是很有必要的。要达成此目的,你可以使用 HDSentinel 这个命令行程序。HDSentinel 支持 IDE、S-ATA(SATA II)、SCSI、USB 等类型的硬盘,利用它你可以...

    Intel SSD Data Center Tool(ISDCT英特尔硬盘管理工具) 3.0.10.400 官方版

    Intel SSD Data Center Tool(英特尔硬盘管理工具)是英特尔硬盘的官方管理工具软件,如果用户的硬盘是英特尔的就需要下载一个这样的软件,软件能对硬盘进行检测和固件升级,有需要的可以下载使用。 截图1 软件截图1...

    netdata linux资源监控工具

    Netdata最新版是一款Linux平台的性能监测工具,Netdata最新版以web的可视化方式展示系统及应用程序的实时运行状态,包括cpu、内存、硬盘输入/输出、网络等linux性能的数据,为Linux系统,应用程序,SNMP服务等提供...

    ROS电子盘复制工具DDCOPY_1.5_liunx硬盘备份img工具

    我用ddcopy对双硬盘linux7.3对拷,拷贝时间大概花了2个半小时,硬盘大小36G,数据完整是最重要的,时间花得多些也值。  ddcopy特点: (1)彻底的硬盘拷贝 (2)坏伞区拷贝 (3)支持单硬盘容量最大2TB (4...

    ChipGeniusUSB设备芯片型号检测工具

    ChipGenius是一款USB设备芯片型号检测工具,可以自动查询U盘、MP3/MP4、读卡器、移动硬盘等一切USB设备的主控芯片型号、制造商、品牌、并提供相关资料下载地址。当然也可以查询USB设备的VID/PID信息、设备名称、接口...

    硬盘SMART检测参数详解_磁盘故障检测_SMART检测参数_SMART磁盘_

    smartmontools是 smart的的软件包程序,由 smartctl 和 smartd 两部分工具程序组成,它们一起为 Linux 平台提供对磁盘退化和故障的高级警告。

    Linux从入门到精通

    E.6.4 我有一个IDE系统, 而我不知道和DOS相比, Linux是如何设置硬盘的. 您能解释一下吗? E.6.5 我的cdu31a/33a CD-ROM不能被识别, 怎么办? E.6.6 我在笔记本电脑上安装Linux时遇到困难. E.6.7 我想把我的Red Hat...

    《Linux从入门到精通》

    E.6.4 我有一个IDE系统, 而我不知道和DOS相比, Linux是如何设置硬盘的. 您能解释一下吗? E.6.5 我的cdu31a/33a CD-ROM不能被识别, 怎么办? E.6.6 我在笔记本电脑上安装Linux时遇到困难. E.6.7 我想把我的Red Hat...

    linux教程——很使用的那种

    linux中的文件(普通文件或设备文件等)都必须有挂在点,只有挂载到一个目录下才能访问,swap分区是不需要挂载点的,在分区的时候,将文件系统类型选为swap,挂载点自动会变为灰色。一般linux中的swap大小为内存的两倍。...

    linux从入门到精通.chm

    E.6.4 我有一个IDE系统, 而我不知道和DOS相比, Linux是如何设置硬盘的. 您能解释一下吗? E.6.5 我的cdu31a/33a CD-ROM不能被识别, 怎么办? E.6.6 我在笔记本电脑上安装Linux时遇到困难. E.6.7 我想把我的Red Hat...

    2005详细介绍Linux从入门到精通

    E.6.4 我有一个IDE系统, 而我不知道和DOS相比, Linux是如何设置硬盘的. 您能解释一下吗? E.6.5 我的cdu31a/33a CD-ROM不能被识别, 怎么办? E.6.6 我在笔记本电脑上安装Linux时遇到困难. E.6.7 我想把我的Red Hat...

    RED HAT LINUX 6大全

    本书全面系统地介绍了Red Hat Linux 6。全书共分为五个部分,包括35章和四个附录。第一部分为Red Hat Linux的介绍和安装;第二部分为服务配置;第三部分为系统管理;第四部分为Linux编程;第五部分为附录。本书内容...

    nvme_cli工具是用于对nvme盘进行测试的一款通用工具

    提供了对nvme盘进行读写,查看control、namespace信息等功能。

    硬盘坏道检查指导手册

    一、目的 1.通过硬盘健康检测,评估新购买的硬盘质量是否符合预期要求。 2.通过硬盘健康检测,避免将质量不合格的硬盘部署到服务器上。 3.对新购买的硬盘质量检测流程规范化...2、Linux下使用smartctl,badblocks。

Global site tag (gtag.js) - Google Analytics