Is there a program which can display the power on hours of a hard disk from a *nix shell? I'm rewriting a server benchmark program, and this would be a useful value to compare.
Linux – Display Power on hours of hard disk from shell
hard drivelinuxshell
Related Topic
- Linux – Make a hard disk sleep and only wake up when needed
- Linux – High Server Crash Rates During Leap Second Day
- How many hours of SMART power on hours use should a new hard drive have
- Error 54046 occurred at disk power-on lifetime
- FreeBSD Hard Disk Management – How to Disable Hard Disk Spin Down or Head Parking in FreeBSD
Best Answer
smartctl
from the smartmontools package can display this information, provided the OS has "raw" access to the device. If you are using a hardware RAID, this information is typically not available without array-specific drivers and userland tools.I'll leave it as an exercise for the reader to employ standard unix text processing tools to filter out the information you need.