How to disable hibernation
If you used Space Investigator to analyze the contents of your C: drive, you probably couldn't help but notice a rather large file named hiberfil.sys in the root folder. This file is used by Windows to remember the state of your computer when you hibernate it.
OK, but what if you never hibernate your computer? (In most cases sleep is what it does, which is not the same as hibernate). The size of this file is about the same as the size of the RAM your computer has, it would be nice to delete the file and allow other files use that space. However, if you attempt to delete the file directly (using Space Investigator, AB Commander, or Windows Explorer), you might be surprised to discover that Windows does not let you delete it, even if you use your full powers of the administrator.
To solve this problem, you need to disable hibernation: when you do that, Windows deletes the hiberfil.sys file for you. Windows XP offers a special button in its Control Panel that you can use to disable or enable hibernation. However, Windows Vista and Windows 7 for some reason don't offer a similar command. Fortunately, there is a way to disable or enable hibernation: by running the powercfg.exe command with the administrative privileges and the appropriate command line switches, as described in this Microsoft article.
If you have AB Commander, you might be surprised to know that it can be used to achieve the same result especially easy. To do this, you need to know three things:
- AB Commander lets you launch any command by entering it into its command bar (at the bottom of AB Commander window).
- You can start a command elevated (a.k.a "As Administrator") by pressing the Ctrl+Shift+Enter keys.
- You have to know the correct command (and any parameters, if applicable) to run to perform the specific task you want.
For turning the hibernation on and off, the above mentioned Microsoft article gives us all information we need:
To disable hibernation, run this command:
powercfg.exe /hibernate off
To enable hibernation back, run this command:
powercfg.exe /hibernate on
Remember to launch these commands "As Administrator", or they won't work:
- What people are saying about AB Commander...
- A FREE 30-day license is included
- What's new in the new version
- End User License Agreement (EULA)
- Space Investigator
- Using DiffMerge as the external tool of AB Commander
- Is "Wipe the content" the same as "Secure Delete"?
- How to start programs elevated from a batch file
- How to make elevated programs recognize network drives
- How to disable hibernation
- How to set up Notepad++ as the external text editor for AB Commander
- Integrating AB Commander with Universal Viewer
- How to repair Windows desktop icons with AB Commander
- How to show drive letters first in AB Commander and Windows Explorer
- Organize your photo library with the Rename tool of AB Commander
- How to move images from an Android device to PC
- How to synchronize images between a PC and an Android device
- Using junction points to change the iTunes backup folder location
- Always have a backup of your important files