linux自带硬盘检测命令smartctl

来源:互联网 发布:网络计算器在线使用 编辑:程序博客网 时间:2024/05/01 03:06

http://lymrg.blog.51cto.com/1551327/490556

dmesg来显示系统的启动信息 -s设置缓冲区大小 -n设置启动信息级别 日志信息存储在
/var/log/dmesg中

1、smartctl -a 检查该设备是否已经打开SMART技术。

2、smartctl -s on 如果没有打开SMART技术,使用该命令打开SMART技术。

3、smartctl -t short 后台检测硬盘,消耗时间短;

smartctl -t long 后台检测硬盘,消耗时间长;

smartctl -C -t short 前台检测硬盘,消耗时间短;
 

smartctl -C -t long 前台检测硬盘,消耗时间长。

其实就是利用硬盘SMART的自检程序。

4、smartctl -X 中断后台检测硬盘。

5、smartctl -l selftest 显示硬盘检测日志。

6、smartctl -l error 显示硬盘错误汇总。
 

本文出自 “成长全记录” 博客,请务必保留此出处http://lymrg.blog.51cto.com/1551327/490556


原创粉丝点击