There are numerous threads about removing the SuperDrive from the OptiBay, moving the HDD into the OptiBay, and installing an SSD in the main HDD space. I did these things using the DataDoubler from OWC; I'm very happy with the bracket quality and the overall results.
Like many, I was annoyed with the fact that there seemed to be no way under Lion to make the HDD in the OptiBay spin down. Fiddling with the Spotlight settings, using pmset to adjust parameters, and so forth did not resolve the issue.
To make peace, I did the following:
Here is the contents of the "MountHDD" script:
Here is the contents of the "UnmountHDD" script:
Here are the details for setting up SleepWatcher:
Tools
SleepWatcher 2.2 (from http://www.bernhard-baehr.de/)
Setup
Install the SleepWatcher software:
1. Execute the following commands in Terminal:
2. Read the man page and think about the features of SleepWatcher you want to use:
3. Create a shell script to unmount the partitions on wake using Terminal:
3. a. Enter the following as the contents:
3. b. Set the wakeup script to be executable:
4. Copy the sample 'de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist' file into the ~/Library/LaunchAgents directory
5. Load the launchd agent configuration using launchctl in Terminal:
6. Verify that the agent is running in Terminal:
Now the HDD will spin up/down when my MBP wakes up, and if I need the HDD volumes, I just have Alfred run the MoundHDD application. The MBP is fast and quiet, and I'm happy.
One additional note: the drives in the OptiBay are spun up and mounted upon system startup. I did not do anything to automatically unmount them, so if I'm not going to use them, I just call upon Alfred to run the UnmountHDD script.
Hope this helps someone else...
Like many, I was annoyed with the fact that there seemed to be no way under Lion to make the HDD in the OptiBay spin down. Fiddling with the Spotlight settings, using pmset to adjust parameters, and so forth did not resolve the issue.
To make peace, I did the following:
- Create "MountHDD" and "UnmountHDD" AppleScript "applications" that I can call easily using Alfred
- Set up SleepWatcher to run a script upon wakeup that will spin down the HDD volumes
Here is the contents of the "MountHDD" script:
Code:
do shell script "diskutil mount `diskutil list | grep 'Macintosh Data' | grep -o '\\(disk[0-9s]*\\)'`"
do shell script "diskutil mount `diskutil list | grep 'BOOTCAMP' | grep -o '\\(disk[0-9s]*\\)'`"
Here is the contents of the "UnmountHDD" script:
Code:
do shell script "diskutil eject 'Macintosh Data'"
do shell script "diskutil eject BOOTCAMP"
Here are the details for setting up SleepWatcher:
Tools
SleepWatcher 2.2 (from http://www.bernhard-baehr.de/)
Setup
Install the SleepWatcher software:
1. Execute the following commands in Terminal:
Code:
$ sudo mkdir -p /usr/local/sbin /usr/local/share/man/man8
$ sudo cp ~/Downloads/sleepwatcher_2.2/sleepwatcher /usr/local/sbin
$ sudo cp ~/Downloads/sleepwatcher_2.2/sleepwatcher.8 /usr/local/share/man/man8
Code:
$ man sleepwatcher
Code:
pico ~/.wakeup
Code:
#!/bin/sh
diskutil eject 'Macintosh Data'
diskutil eject 'BOOTCAMP'
Code:
chmod a+x ~/.wakeup
5. Load the launchd agent configuration using launchctl in Terminal:
Code:
cd ~/Library/LaunchAgents
launchctl load de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist
Code:
launchctl list | grep sleepwatcher
Now the HDD will spin up/down when my MBP wakes up, and if I need the HDD volumes, I just have Alfred run the MoundHDD application. The MBP is fast and quiet, and I'm happy.
One additional note: the drives in the OptiBay are spun up and mounted upon system startup. I did not do anything to automatically unmount them, so if I'm not going to use them, I just call upon Alfred to run the UnmountHDD script.
Hope this helps someone else...
Last edited: