Code:
sudo pmset -a hibernatemode 0
delete /private/var/vm/sleepimage :
Code:
sudo rm /private/var/vm/sleepimage
create an empty file and name it 'sleepimage'
Code:
sudo touch /private/var/vm/sleepimage
change this flag to immuable
Code:
sudo chflags uchg /private/var/vm/sleepimage
Now, OS X won't be able to rebuilt over your sleepimage file since it is locked.
Code:
sudo chflags nouchg /var/vm/sleepimage
sudo chown root:wheel /var/vm/sleepimage
sudo chmod 1600 /var/vm/sleepimage
To verify, when you type this command:
Code:
ls -lOh /var/vm/sleepimage
You should get this result:
Code:
-rw------T 1 root wheel - 4.0G Aug 23 15:01 /var/vm/sleepimage
Then you need to reset the hibernation mode to its system default:
Code:
sudo pmset -a hibernatemode 3
You may have to reboot.
No comments:
Post a Comment