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 显示硬盘错误汇总。
转载于:https://blog.51cto.com/lymrg/490556