linux系统查看硬盘的使用时间:+ D6 s9 i2 G+ i4 k
Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME6 I7 ? J! s, `0 E& W1 N% b
- Raw_Read_Error_Rate) D; P8 b/ P( U+ Q! c4 W
- Spin_Up_Time
4 C$ g) l/ K& w# } - Start_Stop_Count
1 B4 T$ N/ M1 [3 P( ] - Reallocated_Sector_Ct
. L4 q) S0 j0 z; Q - Seek_Error_Rate( t) }( J g! C5 `8 F+ A
- Power_On_Hours
5 s' M$ o0 q1 z: X# g. j4 x - Spin_Retry_Count
! o# n; w" K1 g0 f1 S* {8 Q - Calibration_Retry_Count
7 o& p; n% d- } - Power_Cycle_Count! \ a4 y. I5 {* E& H$ q
- G-Sense_Error_RatePower-Off_Retract_Count5 j4 ~% V+ v+ p
- Load_Cycle_Count7 V: h) v* r% c9 i5 @9 N, @+ _8 G
- Temperature_Celsius
+ g& h( {5 \4 E: } - Reallocated_Event_Count' ^& q1 [! E' `0 e. Z
- Current_Pending_Sector$ c7 L/ E5 J( v) v, A$ m
- Offline_Uncorrectable
8 A% u. j4 D) F! } - UDMA_CRC_Error_Count
5 U8 B: ^6 T$ e. n - Multi_Zone_Error_Rate
% R. _( {/ j9 z: q1 Q
复制代码- Power_On_Hours:是硬盘使用的总时间0 ?+ w- x- R$ @7 c3 n) G
- Load_Cycle_Count:是加载循环计数# E9 D" K* A- A8 J
- Temperature_Celsius:硬盘的英文温度
) ], j2 O. p: ]: c+ B% h! B9 M - 直接输入下列命令,查询你所关心的:. h# ~; Q9 C* ^, k- e+ h1 p8 Y9 c
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 4 u7 M1 [" i9 f" n% N
% p# N! ?6 c% W |