linux系统查看硬盘的使用时间:
9 x/ j* @5 H0 u; ]1 F% BCentos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME2 r' R7 M& q# l( r2 e1 L; b- f
- Raw_Read_Error_Rate3 t9 u# @ D9 Q5 F- b
- Spin_Up_Time
9 ~( B1 e; d& C* L+ w% u; i - Start_Stop_Count# F' c e4 m( d
- Reallocated_Sector_Ct
$ R' c7 q4 V2 }8 @; M - Seek_Error_Rate
0 A+ |" \* b5 `% e5 M - Power_On_Hours6 r% Z" H, n) }+ Y3 n
- Spin_Retry_Count
9 x! L n! v5 e5 _0 A! i$ R - Calibration_Retry_Count
( g7 A. U% P" z7 j7 C# B% b" r - Power_Cycle_Count
' q* S' y; _1 @- ]" J! ?8 a& x - G-Sense_Error_RatePower-Off_Retract_Count( d" q& w8 ]# B' O. s/ D
- Load_Cycle_Count
8 Y F' `$ e# y( ~" Q - Temperature_Celsius
, p# I+ m6 k) O: b/ r2 |6 B - Reallocated_Event_Count( g! l4 W8 g2 T2 V, P. w* J! a# {
- Current_Pending_Sector
# I5 V; G% b% p, S' ? - Offline_Uncorrectable5 z) _" Z1 y) u q* D9 ~
- UDMA_CRC_Error_Count1 J, b+ O- Q5 u5 M( v4 m
- Multi_Zone_Error_Rate
2 S3 R0 J7 s! F6 ~/ ]6 `5 i4 \: H) I
复制代码- Power_On_Hours:是硬盘使用的总时间8 ]! @/ n p4 {
- Load_Cycle_Count:是加载循环计数9 x+ c* M; h5 k$ `5 V6 F/ U, F+ m$ [
- Temperature_Celsius:硬盘的英文温度. K: j+ x c! x
- 直接输入下列命令,查询你所关心的:2 s+ [. _& y2 C
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 # f4 h5 y: [; D1 f$ x
( t# _* f8 Z k0 Z( Z+ x |