Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 11, 2013, 07:06 AM   #1
cheerup347
macrumors member
 
Join Date: Mar 2013
Deleting Mac Mini 2012 'sleepimage' file?

Hello,

Using omnisweep I attempted to reduce down my 50gb odd of 'Other' files before I clone it to a new SSD.

In doing so I deleted the 'sleepimage' file using omnisweep which was 8GB, although I have 16gb RAM installed. After reading up I thought the sleepimage file should be the otal size of your installed RAM?

I deleted the file, shut down my mac, restarted and then put it into sleep mode a few times,. and although the file hasn't come back, the folder insire the "VAR" folder hasn't either. It seems to go to sleep and walke up just fine.. but why hasn't my Mac Mini regenerated these files?
cheerup347 is offline   0 Reply With Quote
Old Apr 11, 2013, 08:41 AM   #2
Drew017
macrumors 65816
 
Drew017's Avatar
 
Join Date: May 2011
Location: Right beside you
Send a message via Skype™ to Drew017
Quote:
Originally Posted by cheerup347 View Post
Hello,

Using omnisweep I attempted to reduce down my 50gb odd of 'Other' files before I clone it to a new SSD.

In doing so I deleted the 'sleepimage' file using omnisweep which was 8GB, although I have 16gb RAM installed. After reading up I thought the sleepimage file should be the otal size of your installed RAM?

I deleted the file, shut down my mac, restarted and then put it into sleep mode a few times,. and although the file hasn't come back, the folder insire the "VAR" folder hasn't either. It seems to go to sleep and walke up just fine.. but why hasn't my Mac Mini regenerated these files?
If its working okay don't worry about it for now. If the files still haven't come back over the next week or two you can always repair permissions, or if you need to, just reinstall OS X.
__________________
Who'll put on my shoes while I'm walking slowly down the hall of fame?
MacBook Air 13 inch (Mid 2013); Intel Core i5; 4GB RAM; OS X 10.9 Mavericks
Focusrite Scarlett 2i2
Drew017 is offline   0 Reply With Quote
Old Apr 11, 2013, 09:09 AM   #3
cheerup347
Thread Starter
macrumors member
 
Join Date: Mar 2013
Hello, how do I repair permissions?

And if re-install os x. Will I need to format the drive or can I just repair the install? I'd rather not lose all my apps/media and have to make a backup.just yet
cheerup347 is offline   0 Reply With Quote
Old Apr 11, 2013, 09:33 AM   #4
Bear
macrumors G3
 
Join Date: Jul 2002
Location: Sol III - Terra
The sleepimage file will only get created if Safe Sleep is turned on. In general Safe Sleep is more commonly used on MacBooks so the battery doesn't get slowly drained while sleeping.

This can be turned on or off for any Mac. For your Mac mini Safe Sleep is most likely turned off so the sleepimage won't get recreated.

In other words, you probably don't have an issue on your Mac.
__________________
-----Bear
Bear is offline   0 Reply With Quote
Old Apr 11, 2013, 09:39 AM   #5
chrfr
macrumors 68020
 
Join Date: Jul 2009
Quote:
Originally Posted by Bear View Post
This can be turned on or off for any Mac. For your Mac mini Safe Sleep is most likely turned off so the sleepimage won't get recreated.

In other words, you probably don't have an issue on your Mac.
No, on the 2012 Mini and iMac, hibernation/safe sleep is on, and the sleepimage file will always be created. http://support.apple.com/kb/HT1757
chrfr is offline   0 Reply With Quote
Old Apr 11, 2013, 09:50 AM   #6
Fishrrman
macrumors 68040
 
Join Date: Feb 2009
Launch terminal.

Enter this:
sudo pmset -a hibernatemode 0
(disables safe sleep)
Enter password when prompted.

Next, enter this:
sudo rm /private/var/vm/sleepimage
(removes sleep image from disk)
Enter password again, if prompted.

Finally, enter this:
pmset -g | grep hibernatemode
(prints to screen the current hibernatemode setting)

You should see:
hibernatemode 0
(Safe Sleep is disabled)

Safe Sleep should now be turned off, and the sleep image has been removed from the drive.
Fishrrman is offline   0 Reply With Quote
Old Apr 11, 2013, 09:53 AM   #7
chrfr
macrumors 68020
 
Join Date: Jul 2009
Quote:
Originally Posted by Fishrrman View Post
Safe Sleep should now be turned off, and the sleep image has been removed from the drive.
Last time I tried that, the sleepimage file came back anyway. Maybe it does as it should with 10.8.3.
chrfr is offline   0 Reply With Quote
Old Apr 11, 2013, 11:20 AM   #8
benwiggy
macrumors 68020
 
Join Date: Jun 2012
Quote:
Originally Posted by Drew017 View Post
If the files still haven't come back over the next week or two you can always repair permissions.
Repair Permissions does NOT recreate sleep images or any other sort of magic. Its usefulness is extremely narrow. It is not the universal panacea for all ills.

Quote:
Originally Posted by Fishrrman View Post
Safe Sleep should now be turned off, and the sleep image has been removed from the drive.
But doesn't he want to get the image back? It's possibly worth mentioning what effect turning off Safe Sleep will have. If you run out of battery, you lose what you were doing.

Quote:
Originally Posted by cheerup347 View Post
Using omnisweep I attempted to reduce down my 50gb odd of 'Other' files before I clone it to a new SSD.
"Other" files are not necessarily a Bad Thing. It's pretty much everything except music, video and apps.
__________________
2012 MacMini, 2.6GHz i7, 16Gb RAM, Fusion Drive | 2012 MacBook Pro, 16Gb RAM, 480 Gb SSD |
2009 MacBook | 2006 iMac | 2003 G3 iBook | Beige G3 | PowerMac 7600 | Mac IIsi |
benwiggy is offline   1 Reply With Quote
Old Apr 11, 2013, 11:24 AM   #9
GGJstudios
macrumors Westmere
 
Join Date: May 2008
Quote:
Originally Posted by cheerup347 View Post
Hello,

Using omnisweep I attempted to reduce down my 50gb odd of 'Other' files before I clone it to a new SSD.
This may help: Freeing up drive space in Mac OS X

If you're wondering what "Other" category in the Lion/ML storage tab is about, this may help explain:
What is this "Other" in the storage tab? What is eating my space
For space issues not explained by the above, there are a few things you can try, some of which may or may not apply:Here are a few resolutions found by others with the same question:
How OS X and iOS report storage capacity
GGJstudios is offline   0 Reply With Quote
Old Apr 11, 2013, 11:25 AM   #10
maflynn
Moderator
 
maflynn's Avatar
 
Join Date: May 2009
Location: Boston
Quote:
Originally Posted by chrfr View Post
Last time I tried that, the sleepimage file came back anyway. Maybe it does as it should with 10.8.3.
Here's what you need to do to fix this:

Set sleep mode in shell: sudo pmset -a hibernatemode 0
Remove the image: sudo rm /private/var/vm/sleepimage
Create a blanked file: sudo touch /private/var/vm/sleepimage
Make file immutable: sudo chflags uchg /private/var/vm/sleepimage

Source
__________________
~Mike Flynn
maflynn is offline   0 Reply With Quote
Old Apr 11, 2013, 02:34 PM   #11
cheerup347
Thread Starter
macrumors member
 
Join Date: Mar 2013
Hello,

I purchased the Daisy Disk app and i have found my 8.5GB sleepimage file is back, but can anyone tell me why it is 8.5GB if I have 16gb of ram installed?

I'll try and erase the file for good! but I'm thinking I might do a totally fresh install onto my SSD anyways and monitor the disk space regularly to see what it is that's hogging up the space!

Last edited by cheerup347; Apr 11, 2013 at 05:04 PM.
cheerup347 is offline   0 Reply With Quote
Old Apr 14, 2013, 05:18 PM   #12
cheerup347
Thread Starter
macrumors member
 
Join Date: Mar 2013
Quote:
Originally Posted by cheerup347 View Post
Hello,

I purchased the Daisy Disk app and i have found my 8.5GB sleepimage file is back, but can anyone tell me why it is 8.5GB if I have 16gb of ram installed?

I'll try and erase the file for good! but I'm thinking I might do a totally fresh install onto my SSD anyways and monitor the disk space regularly to see what it is that's hogging up the space!
does anyone know if i Should have a 16gb sleepimage file?
cheerup347 is offline   0 Reply With Quote
Old Apr 15, 2013, 03:21 AM   #13
benwiggy
macrumors 68020
 
Join Date: Jun 2012
Quote:
Originally Posted by cheerup347 View Post
does anyone know if i Should have a 16gb sleepimage file?
EDIT: As pointed out in your other thread on the same subject, a MacMini shouldn't have any sleep image at all. So you probably should follow some of the advice above about how to disable sleep images.

Alternatively: the advice still stands: if there isn't an actual problem, then do nothing.
__________________
2012 MacMini, 2.6GHz i7, 16Gb RAM, Fusion Drive | 2012 MacBook Pro, 16Gb RAM, 480 Gb SSD |
2009 MacBook | 2006 iMac | 2003 G3 iBook | Beige G3 | PowerMac 7600 | Mac IIsi |

Last edited by benwiggy; Apr 16, 2013 at 02:54 PM.
benwiggy is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > OS X 10.8 Mountain Lion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
What is this file: Private->var->vm->sleepimage? rockinrocker OS X 9 Feb 27, 2014 12:30 AM
iPad Mini: Which would you rather have? 2012 MBA 11" or 2012 Mac Mini + iPad Mini? dmk1974 iPad 30 Dec 4, 2012 05:09 PM
Is a Sleepimage File of 17.18GB Normal? MrManwelo MacBook Pro 14 Dec 4, 2012 07:21 AM
2012 iMac vs. 2012 Mac Mini (both high end models) Bill Killer Mac mini 16 Nov 17, 2012 07:28 AM
Unexpected downside of 16GB RAM: sleepimage file ggabriele3 MacBook Pro 3 Oct 24, 2012 09:16 AM

Forum Jump

All times are GMT -5. The time now is 03:36 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC