07 03 2020

前文说到,入手了个玩客云,顺带拼夕夕上买了个320G的笔记本硬盘,虽然六十块钱,老板说是全新的。

带着审判精神,当然要想办法检测下,但是硬盘已经被我装上宝塔了。。。不要用win系统来检测了。


那么工具来了


smartmontools

windows系统里有很多好用的软件可以查看硬盘的总使用时长,Linux下也有类似的工具smartmontools。

S.M.A.R.T. (Self-Monitoring, Analysis and Reporting Technology; often written as SMART)

现在的硬盘基本都支持SMART

对于Debian,Ubuntu系统:


apt-get install smartmontools


其他系统的库里也有smartmontools。


使用如下命令查看硬盘挂载在哪个目录下


df -h


比如说我的硬盘挂载在/dev/sda,使用如下命令查看。


smartctl --all /dev/sda


发现并没有读到我们想要的信息,我们需要把SMART 打开,使用如下命令:


smartctl -s on --all /dev/sda


可以使用管道直接看到上电使用时间:


smartctl -s on --all /dev/sda | grep Power_On_Hours


好吧,因为是USB读取的硬盘,需要按下面命令执行:


smartctl -d sat --all /dev/sda


在输出结果中找到Vendor Specific SMART Attributes with Thresholds:下面

有一个Power_On_Hours,数字是2,代表使用时间2小时!

  1. 上一篇:安卓机安装体验ubuntu系统
  2. 下一篇:debian9独服安装promox系统开小鸡记录
发表评论