Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

hdapm - How do I do this?

I am trying to use hdapm to keep the new hitachi drive I put in my MBP from parking the heads so often and noisily. Anyhoo, I put the two files into the suggested locations (quadruple checked), restarted, and nothing seemed to happen. There wasnt anything in my /var/log/system.log indicating the program had run. The developer said I should see something like:

Dec 15 01:20:06 BryceBook hdapm[51]: disk0: WDC WD2500BEVS-22UST0
Dec 15 01:20:06 BryceBook hdapm[51]: Setting APM level to 0xfe:
Dec 15 01:20:06 BryceBook hdapm[51]: Success

Now he is saying to run it from terminal, but I really dont know how. I dont have much time to learn about terminal right now, though I'd like to, but I do really want my drive to be quieter and I'm hoping this'll work. Any help on getting this to run would be most appreciated.

Thanks


installation instructions from read me file with hdapm download:

Installation
Copy hdapm to somewhere on your system - I suggest /usr/local/bin. If you want to have hdapm run automatically at startup, also copy the hdapm.plist to /Library/LaunchDaemons
Note that you may need to edit hdapm.plist with your desired settings. By default it assumes you installed the hdapm binary in /usr/local/bin, and will set the primary drive (disk0) to the maximum performance APM level.

Usage
hdapm device level
Example: hdapm disk0 max

Message was edited by: solar servant

MBP C2D 15" 2.16/3GB/250GB, Mac OS X (10.4.11), XP SP2 iMac G4 700/512MB, MB C2D 2.0/1.5GB

Posted on Feb 1, 2008 5:11 PM

Reply
10 replies

Apr 6, 2008 9:55 AM in response to solar servant

Hi

Don't know if this will help, but it worked for me:

There is no way to fix this through System Preferences. Unchecking "Put the hard disks to sleep when possible" has no effect, nor does pushing the slider to never sleep.

The fix is unfortunately a little long winded but it works, and I'm ecstatic. Here it is:

Hard drive behaviour must be modified at a lower level, i.e. power management.

hdapm is the answer.

1) Enable root user: Open Directory Utility located in Application » Utilities. You may have to unlock Directory Utility to make changes. Once it's unlocked, go to Edit » Enable Root User, and then type in a password for your root user. Now logout and there will be an option for Other user. Log in as "root" and use your root user password.

2) Create usr/local/bin folder :

/usr/local/bin doesn't exist by default. You have to create it.

To create the folder (if it doesn't exist already) and open a Finder window:

In the terminal... (Utilities/Terminal) enter these 3 commands in succession

sudo mkdir -p /usr/local/bin

cd /usr/local/bin

open .

3) Download hdapm, a command line utility for hard drive power management, here: http://mckinlay.net.nz/hdapm/

4) Drag and drop hdapm executable into usr/local/bin and hdam.plist into Library/LaunchDaemons (to enable hdapm to run at every startup)

Reboot. Your hard drive is now running at maximum power settings.

FIXED! NO MORE CLINKING/CHIRPING NOISES

Disable root user

Jun 5, 2008 11:53 AM in response to solar servant

A slightly less intrusive way of doing the stuff mentioned by gasboy. This works when your user account is an administrator on the system.

Open the diskimage and copy the files to your home directory (with the house icon). Open Terminal (find it with Spotlight). You will need to copy the lines the begin with the $-sign to the Terminal, don't copy the $ itself though.

$ sudo mkdir /usr/local/bin

It will ask for your password. And might lecture you a bit about admin rights. After that it will make the required directory for the program to live in.

$ sudo ~/hdapm disk max

This will set your main disk disk to maximum performance == no clicks

$ sudo cp ~/hdapm /usr/local/bin/
$ sudo cp ~/hdapm.plist /Library/LaunchDaemons/

This will install the program and run it every boot.

Message was edited by: Henk Poley

Nov 18, 2008 12:07 PM in response to Henk Poley

Thanks for the responses. Thought I'd try Henk Poley's way as it looked a bit easier. As mentioned my user account is an administrator. I got as far as the first line in terminal, then it warned me about data loss and asked me for the password. After that it wont allow me to input anything. This is also as far as I got after trying Gasboys method. (Managed to enable root user and assign password, but fell over with password in terminal) Any ideas?

Nov 18, 2008 3:04 PM in response to Chrisl46

Chrisl46 wrote:
Thought I'd try Henk Poley's way … I got as far as the first line in terminal, then it warned me about data loss and asked me for the password. After that it wont allow me to input anything. This is also as far as I got after trying Gasboys method.

What Henk failed to mention is that when it asks for your password, it also turns off echoing back what you type (not even asterisks) for security reasons: just type your password and press return. gasboy didn't even mention the password.

So try again, and don't make a typo! 😉

hdapm - How do I do this?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.