linux系统查看硬盘的使用时间:
, m# T) X/ D- `/ w5 oCentos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
B& [( c7 F6 S. N! ~1 z. Q# Y% {1 ^ - Raw_Read_Error_Rate, i8 I% e1 {. G' `! k0 C
- Spin_Up_Time9 Z7 Y# I* u: K+ M) ]0 C
- Start_Stop_Count
8 Y' O) t8 ~4 M; j2 W( h - Reallocated_Sector_Ct9 d; W5 w1 Y' t
- Seek_Error_Rate
$ I0 O/ v$ m' E% X3 L8 j8 r - Power_On_Hours, l- k8 ~2 P8 s* ~
- Spin_Retry_Count
( \0 ?# R' ?5 x* z - Calibration_Retry_Count
$ G/ |/ x9 m; t ^; Y2 g" r8 ^ - Power_Cycle_Count
3 ~4 h Z! n2 U4 F% m6 v7 y - G-Sense_Error_RatePower-Off_Retract_Count
4 ~- T' E* d, t" L# _9 F2 m. @( H - Load_Cycle_Count
( _- l" ?& W0 |" d; Y - Temperature_Celsius2 C: j) v. o+ W
- Reallocated_Event_Count
5 M, ^1 |3 H" w% a7 a - Current_Pending_Sector) _6 O% @2 d# R1 K. V: t! w+ _
- Offline_Uncorrectable$ _& F' H' k) f5 [3 Y
- UDMA_CRC_Error_Count1 \8 M5 O0 c, |1 M$ E" Z
- Multi_Zone_Error_Rate
0 }. M) B1 i" u/ [. z6 `
复制代码- Power_On_Hours:是硬盘使用的总时间2 E, t- R7 ?, ~/ }8 P! w5 p* j5 L5 m
- Load_Cycle_Count:是加载循环计数5 M' s1 i- t7 A. A) Q9 I
- Temperature_Celsius:硬盘的英文温度
+ P) O1 z0 C+ z# S7 n+ j- u - 直接输入下列命令,查询你所关心的:; `: _+ v! x, N% Z4 r
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
/ I8 |; R9 w8 c! c8 o
8 c# p. s+ q6 Y) p$ E9 R. X Q |