Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I have an OS X machine running desperately low on hard drive space. I ran DiskInventory X and found that


is taking up 2GB of space. I understand that this file is used to hold the contents of RAM or some such thing, so in the event of sudden battery or power loss, no data will be lost.

If I start the machine up in Target mode, and wipe that file out, is there any bad repercussions outside of risking data loss in the event of a crash?

share|improve this question
up vote 14 down vote accepted

You can safely delete it without going into Target Disk Mode.

sudo rm /private/var/vm/sleepimage

Note that this will be recreated when you sleep your computer again. To disable safe sleep altogether (something I don't recommend),

sudo pmset -a hibernatemode 0
sudo rm /private/var/vm/sleepimage

Doing this may cause you to lose data if your computer loses power while sleeping.

share|improve this answer
Thanks. I still had to boot into Target Mode since the disk was too full to boot properly. – mozzer Nov 5 '10 at 15:48
You could have probably started in single mode by keeping command-s pressed at boot. After enabling writing on root mount point as per screen instructions you could have deleted the sleepimage file without the need for a second computer. – anddam Jan 9 '12 at 17:38

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.