linux系统查看硬盘的使用时间:6 Q# l, @ N* X" @, }. M7 y4 [# r* {
Centos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME+ f* f+ `3 h. I
- Raw_Read_Error_Rate; N+ L; w1 g* H) j, j; S9 z
- Spin_Up_Time
" {% Z4 M/ k# A5 Y2 H* T - Start_Stop_Count, N# K# n4 b3 B5 s$ T9 [7 u% D
- Reallocated_Sector_Ct
: m- J' `+ _4 s" O* x - Seek_Error_Rate
' G) R! C+ _, K! f: I - Power_On_Hours
2 \% u( T) n0 j6 @7 x - Spin_Retry_Count
6 O- |. Q: G0 M9 Y - Calibration_Retry_Count
/ g5 ^6 V; T1 s: _8 Y9 f s - Power_Cycle_Count
+ n0 d# A2 W& V3 n0 Q - G-Sense_Error_RatePower-Off_Retract_Count: c3 R% M5 I0 M! B! B
- Load_Cycle_Count
u/ B0 G' j. n* ` y1 M - Temperature_Celsius
+ U. y2 | d. p0 _2 p0 e. W - Reallocated_Event_Count" O" ^+ V6 p' r" ]- ~9 O
- Current_Pending_Sector9 A7 d* U# y$ \( s# t2 P
- Offline_Uncorrectable& J1 I& n. \& f) x2 ]. m J# @+ R
- UDMA_CRC_Error_Count q& e8 }' c5 `" h% y
- Multi_Zone_Error_Rate
- t% ]7 t$ {/ R+ e' b/ R
复制代码- Power_On_Hours:是硬盘使用的总时间& w' [0 x' B$ s. I
- Load_Cycle_Count:是加载循环计数
0 C9 a# v) f( {) J! Y Q ^2 H - Temperature_Celsius:硬盘的英文温度* i ]7 L% g) k I# W- b" F: z
- 直接输入下列命令,查询你所关心的:: b9 f$ ^! b# d! A6 p
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 3 ~8 k8 x5 O8 G0 T3 N- E
- M* M' G4 K* m" p0 ? |