December 9, 2015 | Article | No Comments
Hibernate is one of feature of Microsoft Windows operating system. When hibernating, Windows creates a hiberfil.sys file. This file might become large in size and consume much your partition. This file is created by default if you have ever used Hibernate feature in Microsoft Windows. The hibernate file is stored on system root directory.
In this article we will discuss about how we can safely delete hiberfil.sys file and reclaim the hard disk space.
When You Do and Don’t
If you use hibernate all the time, or frequently use it, then you are not supposed to delete it. This is the mechanism of Windows. But if you do not use Hibernate, you may proceed.
Understanding the Windows Hibernate Function
When you activate hibernate, Windows take a snapshot of current session (all running programs, open files, etc). These information then written to hard drives (like dumping the state). When you go back powering your machine, Windows then read the hiberfil.sys and restore all of these informations. This way, Windows can speed up shutdowns and starting process.
The file size is mostly equivalent to your RAM size and other parameter. Hiberfile.sys, having large file just hanging around is problematic for you if you have low disk space.
Disabling Windows Hibernation
You can manually delete hiberfil.sys, but it will just come back. To permanently remove the file, you must disable the Windows Hibernate function. The easiest and portable way is do it on your command prompt. Open your command prompt (cmd.exe) and write this command:
powercfg.exe -h off
On some latest Windows version, you need to run it as Administrator.
As soon as you execute the powercfg command, Windows should delete hiberfil.sys. If not, you can manually delete it.
Re-Enabling Windows Hibernation
To make Windows re-enable hibernation feature, it is simply reciprocal procedure to disable one.
Open up command prompt and execute following command with Administrator rights:
powercfg.exe -h on