As from our last post, why your hard drive is always shrinking even though you did not do anything, we talked about using the freeware TreeSize to view where you have the largest chunk of data on your hard drive. If you look deep enough you will find out that there are two files called pagefile.sys and hiberfil.sys that occupy over few GB of your hard drive space. If you are the kind person that does not use Hibernate then this article is for you.
What is hiberfil.sys file for?
When you turn off your computer using hibernate, the operating system needs to store all your current running program states onto the hard disk so that programs can resume where they left off when you power up your PC again. To achieve this, the OS need to save all the information into a file called hiberfil.sys. Windows OS (7, Vista, XP) usually stores this as a hidden file under your system root directory or your main OS partition.
So if you never use hibernate, then it’s time for you to get your hard drive space back.
Note: Hibernate mode is different from the sleep mode. When a computer is put in hibernation, it completely shuts down and consumes no power. However, when it’s in sleep mode, it still consumes a small amount of power. Since it’s not completely shut down, computers in sleep mode return to life usually are faster than the one from hibernation mode.
How to delete hiberfil.sys file?
The best way to delete hiberfil.sys is to disable hibernation in Windows:
- Go to Start menu, type “cmd” open up command prompt
- Type “powercfg.exe -h off” [make sure you are an Administrator]
- Type “exit”
RESTART YOUR PC and you are all set
After the restart, you should be able to see more free space on your hard drive.