Sign up ×
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

4 Answers 4

up vote 9 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


(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
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

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

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

This worked perfectly for me on 10.10.3 (MBP early 2011):

sudo pmset -a hibernatefile /Volumes/OtherVolume/sleepimage

I created a path on the 2nd SSD to complete the above command "/Volumes/HD2/var/vm/sleepimage".

I have my lidwake turned off so that I have to hit the spacebar to turn the comp on. This might have "helped" with the timing of things, but I didn't have any issues.

Only thing I experienced was that I had encrypted HD2, so when the comp ran out of juice and was restarted, it could not access HD2 until I had put the encryption key in which resulted in a full restart instead of from hibernation image.

Moving the sleepimage to another disk improved my time-to-sleep by minutes ( no joke ). I have the original onboard Apple SSD (older 3 Gigabit link speed) which was taking forever to save the 8 GB sleepimage but now with the image on HD2 @ 6 Gigabit link speed, sleep is back to a few seconds.

share|improve this answer
My reference to 3gig and 6gig was "link speed". I changed it to the full notation which I think makes it easier. – Anton R. May 26 at 17:05

Your Answer


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.