Hiberfil.sys in Windows 8 and Why You Should Never Disable Hibernation To Delete It

We explained it before what is hiberfil.sys on Windows 7 computers and how to permanently delete it to free up some hard drive spaces. It’s no longer the case on Windows 8. Why? Because it’s been assigned a special task for a feature that everyone would love and appreciate.

Windows 8 fast boot

Windows 8 introduces a fast, new startup capability that allows Windows 8 to boot much faster than any previous Windows system, including Windows 7. To make this happen, Microsoft optimized the way how normally a Windows machine shuts down. Instead of a full shutdown that basically closes the kernel session, Windows 8 hibernates it to save the kernel session, which is much smaller than a full hibernation, to the disk, more specifically, to the hiberfil.sys file. It makes a faster boot time because resuming the hibernated system session is comparatively less work than doing a full system initialization.

Therefore, unless you deadly need that a few gig space back, you should never disable hibernation on Windows 8. Doing so would result in the permanent removal of the hiberfil.sys file, which would leave no place for the kernel session to be stored, meaning that the fast startup process usage of a saved kernel session would not be possible. You would find your Windows 8 startup takes longer to finish.

How big is hiberfil.sys?

Typically, the hiberfil.sys is sized by default at 75% of physical RAM you have installed on your system. And you can customize the size by running

powercfg /h /size <percentage_size (0 – 100)>

in Command Prompt as Administrator window.

Powercfg size

How to check if hibernation is on

If the file hiberfil.sys listed from the following command, the hibernation is turned on.

dir c:\ /ah

check hibernation

To turn off Hibernation

Run the following command in Command Prompt as Administrator:

powercfg /h off

The hiberfil.sys will be removed immediately after it’s run.

To turn back on hibernation

Run the following command in Command Prompt as Administrator:

powercfg /h on

The result is immediate.

  • Pingback: Hiberfil.sys in Windows 8 and Why You Should Never Disable Hibernation

  • Pingback: How to Disable Hibernation In Windows 8 To Gain Disk Space | Windows7hacker

  • Jorge Manriquez

    omg, microsoft doing things right

  • Eugene

    Can you move it ?

  • ksathug

    thnx

  • Mark Pirola

    lifecycled@gmail.com

  • JohnnyBee

    I removed it with Windows 8 Pro. Because my primary drive is an SSD, it took no longer to reboot than when hyberfil.sys was active!!! Saves me 6.4GB on my SSD.

  • Pingback: Anyone figured out the disappearing restore points problem - Page 5

  • Kevin Anthony

    Now just post a demo on adding 1394 IEEE drivers to Windows 8 please

  • Guilherme Harrison

    strange… No matter how low the value I type, it apparently gives me 50% of the RAM size.

    Since installed windows in a small ssd and have 16GB of ram, that space it was taking is very expensive. I’m gonna have to suck it up and wait a few seconds more for boot.

    • http://about.me/kentchen Kent Chen

      Since you have SSD, I would say it’s ok to turn the hibernation off if the space is getting low.

      • Guilherme Harrison

        Thanks! Did that and the boot seems even faster now!

  • Sean

    Thanks for the article, Kent. What if we never use hibernation, but always just turn off the computer at the end of the day? Would the startups the next morning and startups after that be slower?

    • http://about.me/kentchen Kent Chen

      That doesn’t matter. Unless you are using SSD, you can leave hibernation on.

  • Frew Cen

    I would note that hiberfil.sys can cause (and causes) problems when running two operating systems on one machine. For example lastest Ubuntu LTS refuses to show login screen until the hiberfil.sys is removed (so you need to log out and delete it somehow), and Linux Mint fires error dialog every startup.

  • A Software Developer.

    32GB of RAM here, but the boot disk is a 2x 128GB SSD RAID-0 array. That 32GB file is expensive, and I can quantify that financially. I tried setting it to something sane, like 13% (which would be 4GB), and it will not reduce itself to below 16GB.

    I feel I’m somewhat justified in disabling this “feature”. This is a development machine and we need all the space on that SSD that we can get. Powercfg /h off is what we used on 7.

    I’d be fine if they’d just give the the ability to move it to the 4tb Raid 5 array that has an SSD cache. It shouldn’t be difficult to write the bootloader to look at more disks than just the first disk.

    System boots in six to ten seconds without it anyway.

    I found this page by googleing “win8 reduce hiberfil size”.

  • Bill

    This is stupid, it eats up lots of space from a fresh installed win8x64 on ssd + windows 8 “fast startup” corrupts other filesystems (EXTFS, HFS ETC)

  • Bruno

    Saved me 27gb of SSD… that’s one huge file…

  • Daniel Earls

    Powercfg.exe /hibernate off In command promt( admin) in windows 8