Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > sleepimage.var removal

sleepimage.var removal
Thread Tools
OnTheKeys
Forum Regular
Join Date: Nov 2006
Location: Cruise Ships
Status: Offline
Reply With Quote
Aug 20, 2009, 06:09 PM
 
4GB of disk space. Any way to remove this? When I do, it just comes back. I don't need this file, trust me I've done the research on it.
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Aug 20, 2009, 06:15 PM
 
Originally Posted by OnTheKeys View Post
I don't need this file, trust me I've done the research on it.
Famous last words before complete reinstall of OS

-t
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Aug 20, 2009, 07:36 PM
 
If you've done the research on it, you should know how to stop that file from being generated. Heck, the answer is pretty high on a simple Google search with the subject line of this thread.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Simon
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Aug 21, 2009, 04:28 AM
 
This is what your research should have surfaced.

The sleepimage file is reappearing because you have SafeSleep turned on (OS default). If you want to permanently remove the file, you have to turn Safe Sleep off. Then you can permanently get rid of the sleepimage file.

Now, do you know what SafeSleep does? Are you sure you'll be fine if you turn it off? And most importantly, if you're fighting to recover 4GB of space on your HDD, are you sure the proper solution wouldn't just be to buy a larger HDD? Working with almost entirely filled up disks is never a good idea in terms of performance. And in OS X it's known that even stability suffers as you run out of disk space entirely.

In case you're really sure you know what you're doing, here are the instructions on how to disable Safe Sleep:

You can disable Safe Sleep by opening the Terminal (located in Applications/Utilities) and entering the following command:

sudo pmset -a hibernatemode 0

then pressing return.
You can then select "Go to Folder" under the "Go" menu in the Finder, and enter: /private/var/vm then press return, and drag the file sleepimage to the Trash..
In order to re-enable Safe Sleep, use the command:

sudo pmset -a hibernatemode 3
in the Terminal.
     
Person Man
Professional Poster
Join Date: Jun 2001
Location: Northwest Ohio
Status: Offline
Reply With Quote
Aug 21, 2009, 08:31 AM
 
Originally Posted by Simon View Post
You can disable Safe Sleep by opening the Terminal (located in Applications/Utilities) and entering the following command:

sudo pmset -a hibernatemode 0

then pressing return.
You can then select "Go to Folder" under the "Go" menu in the Finder, and enter: /private/var/vm then press return, and drag the file sleepimage to the Trash..
In order to re-enable Safe Sleep, use the command:

sudo pmset -a hibernatemode 3
in the Terminal.
Makes you wonder what hibernatemodes 1 and 2 do...
     
Simon
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Aug 21, 2009, 08:34 AM
 
IIRC 1 forces it to always hibernate (rather than sleep). I don't know about 2.
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:55 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,