linux系统查看硬盘的使用时间:) E1 {1 g& S) J( h" r% N2 c
Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME8 r; l1 s3 [1 ~, x" X
- Raw_Read_Error_Rate
! X9 s& n' x5 d* T/ f( Z - Spin_Up_Time) J- X* F3 ^8 v5 t4 G: ~
- Start_Stop_Count
8 w! d j2 H) R; [3 I - Reallocated_Sector_Ct
5 F1 D6 j0 D$ ~. `. P - Seek_Error_Rate
6 x* }% D8 x. `* d - Power_On_Hours! l7 p; i# h1 f: g/ h
- Spin_Retry_Count
2 J' o! [; \' s$ i# c) J, ~3 G" \ - Calibration_Retry_Count
$ W) I8 M* J5 P8 Q J% o; R2 @- l - Power_Cycle_Count
5 F' d& E$ M) C$ d! Z, o - G-Sense_Error_RatePower-Off_Retract_Count
. o" F# b% ^! P% Y" X - Load_Cycle_Count# r1 X+ `( N* q, s
- Temperature_Celsius
+ }+ f1 @% j7 D3 p3 N - Reallocated_Event_Count
* m, `8 n3 `, | - Current_Pending_Sector
2 c' Q7 k! C9 v - Offline_Uncorrectable, w4 v1 p7 o& c2 `8 o# @0 F
- UDMA_CRC_Error_Count
% y( Z& ?, U6 F6 p - Multi_Zone_Error_Rate
( D8 P n0 Y( ~8 y, `- T I
复制代码- Power_On_Hours:是硬盘使用的总时间
- j7 U4 ^/ b, C - Load_Cycle_Count:是加载循环计数# O! L7 P* ?$ l3 d9 O
- Temperature_Celsius:硬盘的英文温度
6 S* g% Q( S1 [+ P - 直接输入下列命令,查询你所关心的:8 y; l+ D7 ]( v) Y% K; o5 \2 k
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 ! f& T! {, [. o9 r: X! c
( @' z& e+ x# y
|