Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been trying to find a way to get terminal to display results of a SMART status check in the terminal for a recovery drive I use.

The cmd diskutil info or diskutil info -plist / only say whether the drive is "Verified" or not.

I'm looking for a script (or a nudge in the right direction in terms of BSD cmds) that will spit out the information on sectors of the drive... Pending, Allocated, all that stuff.

Any ideas?

share|improve this question
    
Using diskutil info disk0 will display the physical volume info if you are using a logical volume. – jsejcksn Nov 4 '15 at 8:22
up vote 5 down vote accepted

All Disk Utility and diskutil ever show is “Not Supported”, “Verified”, or “Failing”; it is a simple summary of the SMART status.

The usual command-line tool for getting detailed SMART information is smartctl from the smartmontools suite. smartctl can display the SMART values and attributes for supported drives (i.e. internal drives, SMART does not seem to be supported over the generic USB and Firefire disk protocols). Smartmontools does not come bundled with Mac OS X, but it is available in MacPorts (package info), Homebrew (package info), and Fink (package info).

The GUI application SMARTReporter seems mostly to be a wrapper around smartctl.
A web search will probably turn up other GUIs.

share|improve this answer
    
The link to the "smartmontools" suite was exactly what I needed, thanks! – Jonathan Aug 30 '11 at 14:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .