linux系统查看硬盘的使用时间:
* H3 X0 I& `# U: q* j5 p" GCentos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME/ i/ \2 \) I+ G9 t2 E
- Raw_Read_Error_Rate
: O$ i P- k" j$ K6 |( v4 i - Spin_Up_Time
0 n' S: c# ~8 R# S# s: G9 H( J - Start_Stop_Count
c' H; u. X4 L" Q2 [3 V - Reallocated_Sector_Ct
5 U Q |8 O, b# Q" M- U7 H - Seek_Error_Rate
- _2 [& ]1 b9 p+ J% j o - Power_On_Hours, p5 c0 m8 T, Q. E2 D; ]0 `/ r
- Spin_Retry_Count
# `1 }: f+ r2 Z% T* e. L6 x - Calibration_Retry_Count4 e) i {8 `8 Y+ N
- Power_Cycle_Count
+ [3 @; v% r& C( a% C& } - G-Sense_Error_RatePower-Off_Retract_Count
# Z1 o0 t. h! S+ T% k/ |8 A - Load_Cycle_Count+ s9 o& ~: m3 _ }3 s1 A0 u" k: L! z
- Temperature_Celsius
$ p0 s2 i8 D6 K& ^2 ^5 d - Reallocated_Event_Count6 B& e" F3 v( k; {
- Current_Pending_Sector8 C; |5 T0 W9 X4 [% t! @- G8 l
- Offline_Uncorrectable$ z* g6 K/ Z( L
- UDMA_CRC_Error_Count9 P6 i6 M/ o- I0 e0 B
- Multi_Zone_Error_Rate/ j3 n, d7 C$ W/ l2 M
复制代码- Power_On_Hours:是硬盘使用的总时间4 U3 {. B8 b* t* Q9 P: S8 G3 X
- Load_Cycle_Count:是加载循环计数
+ _' b" q/ l0 y8 h) N3 b - Temperature_Celsius:硬盘的英文温度4 x+ O, @) q2 r% u3 h p* ^
- 直接输入下列命令,查询你所关心的:
* U( _' z8 I/ D- d# } - sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 6 @0 f! m3 ^; f! Q2 Y& K) E
( ?. l2 H3 a7 T& E- ]7 u1 C
|