Wednesday, January 4, 2012

Windows 7 Hibernation file - Hiberfil.sys - That's No Moon

That's no moon... it's hiberfil.sys!
Is hiberfil.sys eating up valuable Solid State hard drive space? It was for me!15.9GB taken up and I don't even use it. Run a command prompt as Administrator and type 'powercfg -hibernation off' to fully turn off hibernation and purge this file. Simply turning off the hibernation feature in the menu under Power Options will not get rid of the deathstar sized file.

"powercfg -H off" and "powercfg -hibernate off" should both work. I am running Windows 7 Ultimate 64bit.

3 comments:

  1. ...or switch to a real OS. :-P

    ReplyDelete
  2. Great tip...I know this is a late comment but maybe someone can get some use out of it.

    Some other things you can do to save space on an SSD if your computer has a HDD also:

    Move the memory paging file to the HDD. Moving this to a folder on my HDD reclaimed about 16GB on my SSD.

    Changing your $TEMP and $TMP environment variables to folders on a HDD would also save space and reduce the number of writes to your SSD. However, when I tried this, Windows Installer didn't work after moving destination of the $TEMP/$TMP variables, so I had to revert them.

    Finally, if you have large folders you don't necessarily need on the SSD (like games), the 'mklink' command is your best friend. It allows you to copy the large folder onto the HDD and create a link to the HDD folder on the SSD (via: mklink /J [Link(SSD)] [Target(HDD)]). This works incredibly well with Steam, since it currently doesn't allow installing games on another drive.

    ReplyDelete
    Replies
    1. I'll have to give the MKLINK a shot. Thanks for the input!

      Delete