现在的位置: 首页 > 综合 > 正文

smartctl工具检测磁盘

2012年01月22日 ⁄ 综合 ⁄ 共 500字 ⁄ 字号 评论关闭

最近怀疑磁道有损坏,用smartctl检测硬盘,方法如下,操作系统是ubuntu10.04:

安装smartctl:
开始以为是apt-get install smartctl,没作用。
应该是:apt-get install smartmontools

查看smartctl服务是否启动:
smartctl -i /dev/sda1
如果出现
SMART support is: Available - device has SMART capability
SMART support is: Enabled
说明硬盘支持smartctl。

检测硬盘:
smartctl -t long /dev/sda1
长时间检查,应该是比较细的检测吧,要花多少时间,标准输出会告知。

查看检测报告:
smartctl -l selftest /dev/sda1

查看错误报告:
smartctl -l error /dev/sda1

放弃检测:
smartctl -X /dev/sda1

参考url:http://wiki.51osos.com/index.php?title=Smartctl&redirect=no

如若转载,请说明出处! http://blog.csdn.net/xukunddp

抱歉!评论已关闭.