0

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.

1 Answer 1

2

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.

5
  • Running it on my drive brings up Device does not support SMART Commented Oct 20, 2013 at 3:55
  • What type of drive is this and how is it connected to your system? Commented Oct 20, 2013 at 3:59
  • If you have a RAID controller you can try MegaCLI Commented Oct 20, 2013 at 6:16
  • It is 2x 1TB SATA2 drives connected to PERC H200 hardware RAID 1. It is part of a leased dedicated server. Commented Oct 20, 2013 at 8:40
  • PERC H200 is from DELL so you can use their OMSA tools linux.dell.com/wiki/index.php/Repository/OMSA Commented Oct 20, 2013 at 10:01

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.