Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have a MBP 2010 with Snow Leopard on it. I put an SSD in the place of DVD Drive and am using an awesome SSD(80GB)+HDD(500GB) combo for speed and efficiency for the right price.

All I want to do is store the sleepimage on the HDD rather than the SSD since I have 8GB RAM and I can't afford to use 8GB SSD to store the current state of my Mac. Looked for a plist to make this change but failed. Not even sure if this can be done.

I have smartsleep pref pane in case anyone is wondering. It is a handy tool(setting) but I want the state to be stored if possible!

Thank you guys!

share|improve this question
add comment

3 Answers

up vote 8 down vote accepted

Nice HDD setup!

Load Terminal.App in the utilities folder, and use the following command:

sudo pmset -a hibernatefile /Volumes/OtherVolume/sleepimage

Obviously change /OtherVolume/sleepimage to /YourOtherVolumesName/sleepimage

From explanatorygap.net.

(EDIT: that webpage shows even the author did not succeed with this method. Likely reason is the other drive is not ready to read the image when trying to wake up. Apple says the sleepimage must be on the root drive. I myself am getting a crash when trying this.)

share|improve this answer
    
Wow, never knew it would be this simple! I am at work and will check as soon as I get home. If it works, you are a lifesaver ;) Thanks much! –  ThinkCode Jan 21 '11 at 16:08
    
You're welcome! Glad to help. –  glenstorey Jan 23 '11 at 2:02
5  
Not to be the downer here, but it's not reliable. From the pmset man page: "hibernatefile - change hibernation image file location. Image may only be located on the root volume. Please use caution. (value = path)". Note that your secondary drive is, by definition, not the root volume. By all means try it and let us know if it works, but man pages don't generally give bad advice. –  Christian L Jan 25 '11 at 6:53
    
@ChristianL +1. I used this advice and my computer stopped waking from hibernate. I thought I was having a hardware problem until I realized it was because it was trying to wake using a sleep image on a drive that wasn't mounted yet. –  Kyle Simek Aug 25 '13 at 20:28
add comment

I tried locating the sleepimage in the HDD and booting from the SSD in a firewire enclosure. It worked perfectly. I use sleep very often, like 5 times a day at least. I don't want to be writing 40GB of info in my SSD every day since it will shorten its life. We will se if it's reliable with the SSD installed on the DVD bay. If not, I'll just write

sudo pmset -a hibernatemode 0

on the terminal so I get a plain sleep mode both with battery and AC power, trying to avoid running out of power while sleeping (the computer and myself).

share|improve this answer
add comment

Mac's normal sleep do not have a sleep image, only "Safe Sleep" or hibernate incurs one.

As far as I know, hibernate is useful to prevent slow boot-ups; i.e., a fast restore from hibernate is preferable to a slow boot-up.

Since you've transition to SSD, this is no longer true. SSD boot-ups are in the low teens of seconds (typically 12-15 secs), so unless restore from hibernate can beat that, I don't see much point of hibernate.

share|improve this answer
    
It's not that simple. If you run out of power (whether the computer is fully awake or sleep and slowly draining the battery), the Mac can restore your system state from the sleep image. You see this happening when you get a screenshot plus a spinning wheel and a progress bar. You're right that 99% of the time you may not need this, but it's handy to have the option! –  khedron Mar 19 '13 at 18:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.