Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sfphoto

macrumors 6502a
Original poster
Jun 10, 2010
503
41
Anyone know of a way to find hours of usage for a Mac?
 
The best way of finding that out is by querying the hard drive's SMART data and look for power on hours. This will not be accurate if the hard drive has been replaced during the machine's life.
 
In Terminal, typing uptime and pressing return will show you the Mac's uptime (time since powering on) and average loads.
 
Alternatively if you don't mind building it you can use smartctl for free from here http://www.smartmontools.org/wiki/Download

Code:
adams-mbp:~ adam$ /usr/local/sbin/smartctl /dev/disk0 -a

smartctl 6.3 2014-07-26 r3976 [x86_64-apple-darwin14.1.0] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
.
.
.
SMART Attributes Data Structure revision number: 4
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   100   100   000    Pre-fail  Always       -       0
  5 Reallocated_Sector_Ct   0x000f   100   100   000    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       3210
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       5884
169 Unknown_Attribute       0x0032   100   100   010    Old_age   Always       -       820512818912
173 Wear_Leveling_Count     0x0032   195   195   100    Old_age   Always       -       12895912004
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       113
194 Temperature_Celsius     0x0022   066   066   000    Old_age   Always       -       34 (0 149 0 14 0)
197 Current_Pending_Sector  0x0032   000   000   000    Old_age   Always       -       0
199 UDMA_CRC_Error_Count    0x003e   100   100   000    Old_age   Always       -       0
240 Unknown_SSD_Attribute   0x0000   000   000   000    Old_age   Offline      -       0
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.