linux系统查看硬盘的使用时间:
/ w. ^. S" n3 O4 ^' P* }2 pCentos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME7 U. a. i+ M; T& Q/ V& N( f0 x
- Raw_Read_Error_Rate
6 P1 C, z H L" c. } - Spin_Up_Time
/ d" [7 t0 T9 l* p V5 Z& E- ^ - Start_Stop_Count/ A" p, x) E, J' g; z& b, C
- Reallocated_Sector_Ct
, _* E( i- F# v( x0 l - Seek_Error_Rate* b6 n b# O0 t9 R
- Power_On_Hours% P; [" J% X% D/ j3 A
- Spin_Retry_Count* F6 O. a2 H _& p" S& J* [
- Calibration_Retry_Count g6 B" @) e V; d0 E# W& Y" `
- Power_Cycle_Count4 _' F3 }; x. j( H/ q! Q! s; y" t
- G-Sense_Error_RatePower-Off_Retract_Count i1 E+ [" ~( L$ L" k5 V' j
- Load_Cycle_Count. O' [& j* F8 I D
- Temperature_Celsius
7 ? A: X5 F' a - Reallocated_Event_Count
# h# v0 q1 G, a, `9 t7 i+ N - Current_Pending_Sector$ x$ j4 l+ O8 S% n x% l; T; L' K
- Offline_Uncorrectable, a+ x0 ^; \5 K8 }. X4 [& Q9 u
- UDMA_CRC_Error_Count/ C( h: z4 z( T* R) [9 ?9 p P; n9 S. v( m
- Multi_Zone_Error_Rate$ z4 W7 H3 Q9 V6 f; J
复制代码- Power_On_Hours:是硬盘使用的总时间
2 p, G+ z" f5 [8 H6 }7 J, q - Load_Cycle_Count:是加载循环计数
( ~! d. C- `& Y5 Y0 P9 @ - Temperature_Celsius:硬盘的英文温度6 z: P: S5 L7 E' S
- 直接输入下列命令,查询你所关心的:
* @) J; t6 k) F/ C - sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 W% r4 \ E' B( m4 ?
( Y) B4 D1 d- t
|