Disable Hibernation ( remove hiberfil.sys ) in Windows 7


For those of you who are running Windows 7 on a desktop and get little to no use out of the hibernation feature (what happens when you close a laptop) here is a tip that will help free up some hard drive space. When hibernation is initiated, everything currently stored in RAM is placed on the hard drive. So as much hard drive memory as you have RAM memory is alotted for hibernation. For some of these newer PCs with 12GB or more of RAM, this is an awful waste of unused memory.

This rendering (from windirstat) shows that the hiberfil.sys (smaller red square) file comprises a signiifcant portion of the hard drive disk space. (The larger red square is the virtual memory paging file).



In Windows XP, the hibernation feature could be disabled in Control Panel > Power Options.




In Windows 7, even if you disable the sleep option from within Advanced Power Settings, this will not remove hiberfil.sys. To disable hibernation and remove the file, the command must be run as an administrator from the command prompt.



>Open the start menu and type cmd in the search box

 >Right-click on the cmd search result and select Run as Administrator from the drop-down menu


> At the command prompt, type powercfg.exe -h off

> Hit enter and then close the commmand prompt window

> Restart the PC

Probably a good idea to run Defragmenter afterwards to get everything in line. Enjoy the extra space!


No comments:

Post a Comment