linux系统查看硬盘的使用时间:6 i% d9 o6 y# a" i4 }$ A
Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
1 u* h) t, u5 ^6 @6 P w - Raw_Read_Error_Rate! H) u) ~- ~, t' N( }
- Spin_Up_Time
! a. b" N1 q% w - Start_Stop_Count: a! r$ w+ ^ W+ s
- Reallocated_Sector_Ct
0 A/ I- V* a* m/ s, O% @/ O - Seek_Error_Rate
7 A- H2 M& |' n6 l - Power_On_Hours
8 w V q) h/ ?& B$ E2 g# _ - Spin_Retry_Count
5 A$ Q& I' j& O9 H. g6 j! d' J" P( F - Calibration_Retry_Count3 n' k4 w/ }) \+ q# p
- Power_Cycle_Count
: w' O! i# t& F2 ^. q - G-Sense_Error_RatePower-Off_Retract_Count- `# Q s) n, o0 a! R( h* I
- Load_Cycle_Count! v# S3 ?" t, E# h. J) ?: o- D/ v# C3 p
- Temperature_Celsius
2 @( {+ U4 ]# ~ - Reallocated_Event_Count/ G; G& ?; T5 B5 u, J) s8 Z6 u
- Current_Pending_Sector
* C5 x# E7 U3 u' ~: _; }' D - Offline_Uncorrectable. d* f S3 i; V4 A
- UDMA_CRC_Error_Count# ?) y7 z2 S, q% J
- Multi_Zone_Error_Rate
0 N$ e/ Z2 M4 h+ `( B
复制代码- Power_On_Hours:是硬盘使用的总时间
4 ^* K1 d9 I7 p - Load_Cycle_Count:是加载循环计数
( j' u; V" P& G S U' d2 l0 P0 x. H - Temperature_Celsius:硬盘的英文温度
) Y$ g3 @+ L4 C' u% u3 H - 直接输入下列命令,查询你所关心的:
' J& @+ u. \# ?$ C+ z) z - sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 7 J$ t; Z O) o, U
9 S$ N; J. G# X6 |5 ~. o |