linux系统查看硬盘的使用时间:
) M' w0 ~8 \0 pCentos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME
- ]+ E4 J \/ o* k: P& `* w - Raw_Read_Error_Rate$ C5 j/ \& [0 R
- Spin_Up_Time
, v5 a q5 x: w; V - Start_Stop_Count
- s2 v4 h: z, \1 @1 A$ r. A - Reallocated_Sector_Ct
. T$ l5 m. S9 m! q5 h - Seek_Error_Rate, q x0 k( f# `6 h
- Power_On_Hours4 Y, g. Z; k1 J5 R/ _- y
- Spin_Retry_Count/ c9 g, w& z9 {+ Q) O. z
- Calibration_Retry_Count- f4 y: R! S6 u6 J, ^0 \
- Power_Cycle_Count; x+ Y, L- ?: ]$ L$ R% W$ ?
- G-Sense_Error_RatePower-Off_Retract_Count, M6 x1 w0 K" v( I
- Load_Cycle_Count# @& v" v3 ]) G) I
- Temperature_Celsius
1 |* [/ z/ L& Y7 C& n - Reallocated_Event_Count1 p8 f# r- h* H: Q3 N4 n! G
- Current_Pending_Sector
* g/ m" ^ e! X2 \5 m - Offline_Uncorrectable
" k, Q1 L6 n8 z7 a - UDMA_CRC_Error_Count
0 T1 i c( O( Q" Q' A- I4 W - Multi_Zone_Error_Rate J6 ~* a3 \2 x. [" Q# K, |5 A
复制代码- Power_On_Hours:是硬盘使用的总时间' B/ g7 p" @: A7 L4 ?6 x
- Load_Cycle_Count:是加载循环计数
& n/ v6 }, e6 c9 g - Temperature_Celsius:硬盘的英文温度. F0 ^1 e9 O: z3 t2 ]
- 直接输入下列命令,查询你所关心的:: `+ b; C. d4 M: T8 ]
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 4 l* H K+ P5 y9 u& C7 ~" i+ ?1 N
& |" C& h) k/ f5 [: z
|