I recently addded 6 GB memory to my Core i7 workstation to be able to run multiple virtual machines at the same time. It’s not long before I found an issue with this setup. The partition for my Windows 7 is only 40GB. Even thought I didn’t install a lot of programs, my system drive ran out of disk space pretty quickly. I was puzzled at first. Then I realized the hibernation file takes a lot of disk space even though I don’t use it.
The hibernation file is called hiberfil.sys and it’s under the root of the system drive. It’s the file that system writes the contents of physical memory to when you put the computer to hibernation. The size is uaually the size of your physical memory. For my Core i7 machine with 9 GB of total memory, the hiberfil.sys is about 7 GB which takes up a lot of space.
If you use the power options in Control Panel, you can turn off hibernation. However, the hibernation file remains. To disable hibernation and delete the hibernation file, you have to use powercfg command line tool. Follow these steps.
- Open up an elevated command prompt.
- Type this command.
powercfg -h off
That’s it. If you ever want to turn it back on. Just type
powercfg -h on .
This post may contain affiliated links. When you click on the link and purchase a product, we receive a small commision to keep us running. Thanks.