Hiberfil.sys file in Windows

If you are reading this article then most probably your computer has ran out of available hard drive space in the system drive and you have tried cleaning up the drive and suddenly come a hidden file named hiberfil.sys which is huge in size and wondering if it can be deleted.

image

The Hiberfil.sys file is a hidden system file located in the drive where Windows is installed. Windows creates this file when the Hibernation power feature is enabled. the size of this file is approximately equal to total RAM is installed on the computer. The more the RAM the bigger the file size will be.

When the Hibernation feature is enabled in Windows and when the computer is hibernated, Windows store all the files, programs, etc. which are open to this file. In other words Windows stores a copy of the RAM to the hard disk using this file.

This file is generated only when Hibernation is enabled and when hibernation is disabled the file will be deleted and you can recover some valuable disk space.

To disable hibernation

  • Open Command prompt (in admin mode)
  • Type powercfg –h off

image

 

Disabling Automatic Restart on System Failure in Windows

As a safety feature and as a precaution Windows always restarts immediately when it encounters a serious/critical error (such as a blue screen stop error). This immediate restart prevents us to read/note the necessary error codes or the detailed error message that prompts on the screen to further troubleshoot to avoid similar errors in the future.

By following the below steps, one can disable the Automatic Restart to gain more time to read and note down the error messages and error codes.

  • Right click My Computer and select properties

SNAGHTML33645145

  • Click on Advanced System Settings

SNAGHTML336566cc

  • Click on settings under Startup & Recovery

SNAGHTML33666f72

  • Uncheck Automatic Restart and click Ok

SNAGHTML3367604b

The next time you receive a stop error you will have enough time to note down the error codes and the error messages which will help you to trouble shoot further