linux系统查看硬盘的使用时间:
- P3 ^6 G. Z; g" `9 S; W! @ YCentos:- yum -y install smartmontools
复制代码 Ubuntu/Debian:- apt-get install smartmontools
复制代码- ATTRIBUTE_NAME/ U, o* Y( r' @1 ^- r
- Raw_Read_Error_Rate1 a, n5 N6 U; K# {- l n) g
- Spin_Up_Time
6 N- W) U B6 w5 H5 ~: h9 r - Start_Stop_Count
5 X% l% X7 r X. w - Reallocated_Sector_Ct
; w5 c/ I, r5 r/ D - Seek_Error_Rate$ S) _( [% d( J n: x, C
- Power_On_Hours
4 S7 m$ N* K3 @- y) z - Spin_Retry_Count' f2 B8 u! Q& k4 a" K
- Calibration_Retry_Count
5 X$ v4 l- B3 M$ }' H! d/ J& y - Power_Cycle_Count
) ^/ c1 Y9 D' V% s4 a3 S - G-Sense_Error_RatePower-Off_Retract_Count
, ~) {2 u5 S5 A. M( } - Load_Cycle_Count$ B3 l: u* T( ^ e
- Temperature_Celsius
* g. } y0 t7 a8 |, G/ q5 l2 R0 B y - Reallocated_Event_Count
, s$ O1 N Z" ], U, A6 w - Current_Pending_Sector. f+ Y0 W: x& `( v/ j/ L. q6 C
- Offline_Uncorrectable( e; f l& J z) s; N" U
- UDMA_CRC_Error_Count
2 ~5 c$ j/ y2 ~ - Multi_Zone_Error_Rate
, ~. B0 |& V; |
复制代码- Power_On_Hours:是硬盘使用的总时间
4 [* d# c! P, B2 G0 J - Load_Cycle_Count:是加载循环计数
. V# w6 f' k' h7 k( R, ]# ] - Temperature_Celsius:硬盘的英文温度: ~- S! k9 o0 h+ R, Z, s
- 直接输入下列命令,查询你所关心的:0 U- G" z" u9 @8 d- u2 _+ g
- sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码 - i+ e- L& |$ a. U
G; ^8 E+ d8 [( K |