debian查看硬盘使用时间

发布于 2016-08-11  131 次阅读


服务器如果是debian系统,可以用以下方法查看硬盘的使用时间,从而来判断硬盘的寿命

安装smartmontoos

view sourceprint?

1 apt-get install smartmontools

然后运行

1 smartctl  -A /dev/sda

硬盘使用时间

其中,Power_On_Hours就是硬盘的使用时间了。