In Windows operating system environment such as Windows XP and Windows Vista system, there is always a file named hiberfil.sys created and existed in the system root
drive on boot disk. The hiberfil.sys is large and big in size, always as big as your system physical memory (RAM) size. For example, if the computer have 2 GB of DRAM memory, the hiberfil.sys file size will also be around 1.99 GB in size, taking up precious
hard disk space, and in worse case increase fragmentation on the drive.
hiberfil.sys is a file that Windows system creates whenever the computer goes into hibernation mode. When system hibernates, the system state of the computer is preserved by storing a copy of all data in the memory in hiberfil.sys file located on your local disk, so that when the computer restarts, the information can be read into memory to restore the state as of exact state when computer starts to hibernate. That also explains why the size of hiberfil.sys file is always same size with computer’s memory size.
If you have ever used hibernation feature in XP and Vista, the hiberfil.sys file will be created. Actually, Windows kernel reserves hiberfil.sys file and allocates space equivalent to memory size to it when installing Windows and enables hibernate ability by default, thus the file exists too even if you never put system into hibernation mode. However, when the computer wakes up from hibernation, the hiberfil.sys file is left on the hard disk and not deleted. If you no longer use the hibernate feature of Windows XP and Vista, the safest way to remove and delete hiberfil.sys from the hard disk is to turn off and disable hibernation function.
How to Disable Hibernation in Windows XP
- Go to Control Panel, click on Performance and Maintenance link, then run Power Optionsapplet.
- Go to Hibernate tab.
- Uncheck and untick the Enable hibernation option.
- The hiberfil.sys file should have been removed and gone, if not you can safely delete it.
You’re no doubt reading this article because there’s a gigantic hiberfil.sys file sitting in the root of your drive, and you want to get rid of it to free up some space… but you can’t!
Luckily, you actually can delete it, and today we’ll show you how.
The more memory you have in your PC, the bigger the file will be.
So What is hiberfil.sys Anyway?
Windows has two power management modes that you can choose from: one is Sleep Mode, which keeps the PC running in a low power state so you can almost instantly get back to what you were working on. The other is Hibernate mode, which completely writes the memory out to the hard drive, and then powers the PC down entirely, so you can even take the battery out, put it back in, start back up, and be right back where you were.
Hibernate mode uses the hiberfil.sys file to store the the current state (memory) of the PC, and since it’s managed by Windows, you can’t delete the file.
So if you never use it, and want to disable Hibernate mode, keep reading. Personally I stick with Sleep Mode the vast majority of the time, but I do use Hibernate quite often.
Disable Hibernate (and Delete hiberfil.sys) in Windows 7 or Vista
You’ll need to open an administrator mode command prompt by right-clicking on the command prompt in the start menu, and then choosing Run as Administrator. Once you’re there, type in the following command:
powercfg -h off
You should immediately notice that the Hibernate option is gone from the Shut down menu.
You’ll also notice that the file is magically gone!
Disabling Hibernate Mode in Windows XP
It’s a lot easier in Windows XP to get rid of Hibernate mode… in fact,
we’ve already covered it before, but we’ll cover it again. Just head into Control Panel –> Power Options, and then find the Hibernate tab.
Uncheck the box, reboot your PC, and then you can delete the hiberfil.sys file.