[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to get the life time of a given disk ?



Andrew Sackville-West wrote:
On Sun, Jan 27, 2008 at 03:28:26AM +0200, Jabka Atu wrote:
Hello,..


I would like to get the life time of hard disk (how much he worked in
hours or speens or whatever)


i tried using hdparam but it didn't show this info.



try smartctl

smartctl -a /dev/hdb

....

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE
UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   200   200   051    Pre-fail
  Always       -       0
  3 Spin_Up_Time            0x0007   101   092   021    Pre-fail
  Always       -       2316
  4 Start_Stop_Count        0x0032   098   098   040    Old_age
  Always       -       2014
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail
  Always       -       0
  7 Seek_Error_Rate         0x000b   200   200   051    Pre-fail
  Always       -       0
  9 Power_On_Hours          0x0032   056   056   000    Old_age
  Always       -       32709
-----------------------^^^^^

mine's been on for over 3 years!!

not all disks record this info though...


My maxtor_6y080p0:
9 Power_On_Minutes 0x0032 217 217 000 Old_age Always - 595h+50m
And my st380011a:
9 Power_On_Hours 0x0032 092 092 000 Old_age Always - 7111

But the st380011a is younger than the maxtor_6y080p0 so that number of 595h is wrong. I noticed that the temperature that it reports is too low also. YMMV.

And smartctl cannot be used with some disks: I have two disks that I use with an USB enclosure and smartctl gets:

Smartctl: Device Read Identity Failed (not an ATA/ATAPI device)

although they are a PATA and a SATA disk


Hugo






















Reply to: