When attempting to hibernate the computer on a Windows 7 system or let computer enters hibernation mode, the operating system may stop halt with a Blue Screen of Death (BSoD) the following error message as technical information:


The problem occurs because the size of the hibernation file (hiberfil.sys) size is not large or big enough to save and store current contents loading in the system RAM or memory. Windows 7, and other Windows operating system, requires equal size of hiberfil.sys hibernation cache file with system RAM memory size in order to work properly.

Thus, in order to fix and solve the above issue, just set a bigger size of hiberfile with the following steps:

  1. Open a command prompt window with elevated administrator privileges.
  2. Type the following command and press ENTER:

    powercfg /hibernate /size 100

    Change Hiberfil.sys Cache File Size

    Above command will set the new hiberfil.sys hibernation file to a size which is the same with 100% of total system memory available.

  3. Exit the command prompt, and attempt to hibernate again.

Users who do not use hibernation feature, or just want to use Sleep mode (differences between sleep and hibernate mode) can easily disable and turn off hibernate feature, which also has the advantage removing hiberfil.sys hiberfile that takes up big storage space.