linux系统查看硬盘的使用时间:8 p5 g/ T9 {( s6 e5 U# e
Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
, n5 T, k' u( O' A' ]* d7 T - Raw_Read_Error_Rate2 j5 J& O7 |9 Y" o
- Spin_Up_Time& f! [" G$ b+ S, j2 Q; v9 K
- Start_Stop_Count
. N9 K! m' x; s% y G& J; k- D - Reallocated_Sector_Ct5 U( W/ k/ Y+ O2 l
- Seek_Error_Rate
+ h8 P& r& X, r% Q/ v0 V - Power_On_Hours
9 V5 q* D5 Y" g2 C+ | - Spin_Retry_Count& q5 H- q1 [# x+ B" d
- Calibration_Retry_Count
% U" V: u% j9 l! a5 k: p - Power_Cycle_Count5 E) A% F$ ]% d4 J3 r3 @! [8 V
- G-Sense_Error_RatePower-Off_Retract_Count
& i3 c8 X# L2 a# t) N3 S5 k* S - Load_Cycle_Count
' Z3 b4 t# S' S, K" n: a: X - Temperature_Celsius
, r1 S8 [8 J" a# j6 k$ i% `* z7 H - Reallocated_Event_Count9 W$ b: Y+ ~; S
- Current_Pending_Sector3 `5 N u1 s! n$ T: H' w0 f
- Offline_Uncorrectable) } X; d% M0 E
- UDMA_CRC_Error_Count
. {4 N+ i- {/ Y- `: z - Multi_Zone_Error_Rate7 Z2 O) s, {; _, ~) \
复制代码- Power_On_Hours:是硬盘使用的总时间! |* B; S: _1 O5 } b
- Load_Cycle_Count:是加载循环计数
; N3 e3 o2 M4 r6 [6 K1 I% b - Temperature_Celsius:硬盘的英文温度/ r) b/ S% w# t
- 直接输入下列命令,查询你所关心的:/ r$ I w$ P: @) |
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 2 [$ I1 {" X* d
9 r$ ?# f) I$ {5 G
|