PDA

View Full Version : Deleting Mac Mini 2012 'sleepimage' file?




cheerup347
Apr 11, 2013, 07:06 AM
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?



Drew017
Apr 11, 2013, 08:41 AM
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.

cheerup347
Apr 11, 2013, 09:09 AM
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

Bear
Apr 11, 2013, 09:33 AM
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.

chrfr
Apr 11, 2013, 09:39 AM
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

Fishrrman
Apr 11, 2013, 09:50 AM
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.

chrfr
Apr 11, 2013, 09:53 AM
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.

benwiggy
Apr 11, 2013, 11:20 AM
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.

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.

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.

GGJstudios
Apr 11, 2013, 11:24 AM
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 (http://forums.macrumors.com/showpost.php?p=15085059&postcount=2)

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 (http://forums.macrumors.com/showpost.php?p=14103154&postcount=1)
For space issues not explained by the above, there are a few things you can try, some of which may or may not apply:
Begin by restarting your computer as a first step. This sometimes resolves issues.


For Time Machine users on notebooks running Lion or later, space may be consumed by Time Machine local snapshots, which can be disabled (http://toti.posterous.com/hidden-local-backups-with-mac-os-x-lion-filli).
OS X: About Time Machine's "local snapshots" on portable Macs (http://support.apple.com/kb/HT4878)


Check to see if some of the space is being used by your sleepimage (http://osxdaily.com/2010/10/11/sleepimage-mac/) file.


Check the System Memory tab in Activity Monitor to check page outs and swap used. If swap used is significant, restart your computer and track that value under your normal workload. If you have significant page outs under normal use, you could benefit from more RAM.


Search with Finder to see if the space is being consumed by a very large file or several large files. Adjust the 50GB in the illustration to whatever size you deem appropriate.
http://forums.macrumors.com/attachment.php?attachmentid=316547&d=1324232637
Use OmniDiskSweeper (http://www.omnigroup.com/products/omnidisksweeper/), JDisk Report (http://www.jgoodies.com/freeware/jdiskreport/), Disk Inventory X (http://www.derlien.com/index.html), DaisyDisk (http://www.daisydiskapp.com/) or GrandPerspective (http://grandperspectiv.sourceforge.net/) to see how space is being used on your drive. Some of these apps may show more detail than others, so try several.


Check your drive with Disk Utility: Using Disk Utility to verify or repair disks (http://support.apple.com/kb/HT1782)


Try re-indexing your drive: Spotlight: How to re-index folders or volumes (http://support.apple.com/kb/ht2409)
Here are a few resolutions found by others with the same question:

Encrypted drive (http://forums.macrumors.com/showthread.php?t=1331617)
Time Machine backup files and needed disk repair (http://forums.macrumors.com/showthread.php?t=1327443)
App filling log file (http://forums.macrumors.com/showthread.php?t=1323490)
App or file was 89GB (http://forums.macrumors.com/showthread.php?t=1327832)
Drive needed to be re-indexed (http://forums.macrumors.com/showthread.php?t=1326965)
Time Machine backup file (http://forums.macrumors.com/showthread.php?t=1322806)
Large app cache file (http://forums.macrumors.com/showthread.php?t=1319720)
Garageband files and video podcasts (http://forums.macrumors.com/showthread.php?t=1313090)
Oversized email being duplicated (http://forums.macrumors.com/showthread.php?t=1310158)
Another email issue (http://forums.macrumors.com/showthread.php?t=831784)


How OS X and iOS report storage capacity (http://support.apple.com/kb/TS2419)

maflynn
Apr 11, 2013, 11:25 AM
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 (http://forums.macrumors.com/showpost.php?p=16264534&postcount=5)

cheerup347
Apr 11, 2013, 02:34 PM
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!

cheerup347
Apr 14, 2013, 05:18 PM
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?

benwiggy
Apr 15, 2013, 03:21 AM
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.