My fairly young MacBook Pro started randomly hanging, not coming out of sleep, and being generally disagreeable a couple days ago, and it turned out to be a bad hard disk.
What’s disconcerting is that Disk Utility.app didn’t see any problem with the disk. I had to install smartmontools to find the error.
After installing MacPorts, install smartmontools:
sudo port install smartmontools
Then tell the drive to do a long self-check in the background:
sudo smartctl -t long /dev/disk0
Note that this check may take an hour to run, but it’s done in the background, so you can continue to use your computer while it does its little dance on the catwalk.
Check the status of the test with:
sudo smartctl -c /dev/disk0
I was unlucky:
... Self-test execution status: ( 121) The previous self-test completed having the read element of the test failed. ...
See The macosxhints forums for more discussion about this issue.
Related posts:
- Free and Easy Encrypted Storage for Mac OS X and MobileMe or DropBox
Online storage services like iDisk (part of MobileMe) or DropBox are very convenient for sharing and backing up files–but when you put files into the cloud you’re assuming that: those...... - Installing git with MacPorts
The Good: MacPorts makes git, the new source version control system hotness, available to Mac users. The Bad: MacPorts sometimes has attitude, and poops out trying to compile or install...... - Apache2, PHP, and MySQL on Mac OS X using MacPorts
1. Install MacPorts Follow the instructions here: http://www.macports.org/install.php. 2. Install apache2 sudo port install apache2 Note that the macports instructions suggest installing the launchctl script now, but we’ll do that...... - Tunnelblick crash recovery
I’ve found that waking my mac from suspend in a different network than it went to sleep in can crash tunnelblick, or cause tunnelblick to try to spin up another......