linux系统查看硬盘的使用时间:+ u1 M. j5 }8 f$ f% Z% ]) u
Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME1 h# c+ ]% x" b+ @7 ^3 U' z; e: F4 k
- Raw_Read_Error_Rate( x Q" X: e( w/ V7 ?9 y
- Spin_Up_Time
' R0 T+ D, w0 A/ d - Start_Stop_Count1 M5 E, n; X$ b4 g a
- Reallocated_Sector_Ct- c( M2 \% ^$ k# I; T: p' C
- Seek_Error_Rate; u, ~) e @6 `( s5 u0 i/ D- A
- Power_On_Hours
* }3 @1 m9 |( V. d# ^( m - Spin_Retry_Count. n0 D7 b# E$ o; w
- Calibration_Retry_Count& n: e/ s* S k% v6 |( b* q
- Power_Cycle_Count9 s) s% s+ t" q+ M, c7 q- {6 t
- G-Sense_Error_RatePower-Off_Retract_Count7 @# d7 k a e
- Load_Cycle_Count
9 f, U9 x) Q& A# a$ t - Temperature_Celsius
8 [6 @4 V6 j+ W( j) V - Reallocated_Event_Count4 j' y) D4 D+ J. f/ Y! E; G5 h3 `
- Current_Pending_Sector; p4 z8 |: n( z" ?& ~0 C% X
- Offline_Uncorrectable9 d' A: _2 G5 o$ H' d/ T
- UDMA_CRC_Error_Count7 M0 m6 f6 n0 L" x. w/ p- b
- Multi_Zone_Error_Rate
0 c" ~& _7 v( m+ x
复制代码- Power_On_Hours:是硬盘使用的总时间
7 Q- I1 b9 }; L Q9 }3 Z - Load_Cycle_Count:是加载循环计数
$ \6 x: ^( M+ ~4 h6 Z0 Q" x- d/ T - Temperature_Celsius:硬盘的英文温度0 L" `! t' r7 f4 L M6 b# ?
- 直接输入下列命令,查询你所关心的:1 P6 _6 s. i* \1 l. {% M- v" Q
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
/ ?( g2 r, y+ v& [
7 h; R& e Z! S4 J5 [8 K' X |