Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

21/12/2014

Delete hiberfil.sys by disabling Windows Hibernate function - TechRepublic

WINDOWS

Delete hiberfil.sys by disabling Windows Hibernate


function
By Bill Detwiler in TR Dojo, February 5, 2010, 5:48 AM PST // billdetwiler

Hiberfil.sys can use several GB of hard disk space. Delete the file, and it
will likely return. Bill Detwiler explains how to get rid of it for good.
In a previous TR Dojo Challenge question, I asked TechRepublic members, "What does hiberfil.sys do and how can
you remove it?" (file:///tp/::www.techrepublic.com/blog:itdojo:%3Fp=1459) Several members were quick to respond with the
correct answer. The quickest earned some TechRepublic swag.

Do you use Windows Hibernate feature?


Yes
No
Vote

View Results

Hiberfil.sys and Windows Hibernate function


To understand why hiberfil.sys exists, we must look at the Windows Hibernate function
(http://www.microsoft.com/windowsxp/using/mobility/getstarted/hibernate.mspx).

When you activate Hibernate, Windows takes a

snap shot of your current session (all your running programs, open files, etc.) and writes that information to your hard
drive. Hibernate was designed to speedup shut downs and restarts and save power on laptops.

http://www.techrepublic.com/blog/tr-dojo/delete-hiberfilsys-by-disabling-windows-hibernate-function/

1/8

21/12/2014

Delete hiberfil.sys by disabling Windows Hibernate function - TechRepublic

Figure A
Hiberfil.sys, as the name suggests, is the file to which Windows saves the snap shot data. Thus, the file is always
equal in size to the total amount of available RAM on the computer (see Figure A). On a computer with plenty of
free disk space having such a large file just hanging around usually isn't a problem. But if you're running low on hard
drive space and never use the Hibernate feature, hiberfil.sys is unnecessarily eating up valuable disk real estate.

Disabling Windows Hibernation


As I noted earlier, you can manually delete hiberfil.sys, but it will just come back. To permanently remove the file,
you must disable the Windows Hibernate function (http://support.microsoft.com/kb/920730). You can do this through either
the Windows GUI or from the command line.

Windows XP
On Windows XP systems, you can easily disable Hibernate through the GUI using the following steps:
1. Open the Control Panel and access Power Options.
2. Select the Hibernate tab in the Power Options Properties dialog box.
3. Clear the Enable Hibernation check box (see Figure B) and click OK.

http://www.techrepublic.com/blog/tr-dojo/delete-hiberfilsys-by-disabling-windows-hibernate-function/

2/8

21/12/2014

Delete hiberfil.sys by disabling Windows Hibernate function - TechRepublic

Figure B
If you would prefer to disable Hibernate through he command line, you can use the steps outlined below.

Windows Vista and Windows 7


Completely disabling Hibernate through the GUI on Windows Vista and Windows 7 is significantly more difficult than
on Windows XP. The Hibernate settings are still stored under the Control Panel's Power Options applet, but they are
buried under each power plan's advanced power settings submenu. In fact, I was unable to remove hiberfil.sys by
altering the appropriate Power Options (Allow hybrid sleep and Hibernate after) on either Windows Vista or Windows
7 (see Figure C).

http://www.techrepublic.com/blog/tr-dojo/delete-hiberfilsys-by-disabling-windows-hibernate-function/

3/8

21/12/2014

Delete hiberfil.sys by disabling Windows Hibernate function - TechRepublic

Figure C
The only surefire method of disabling Hibernate, and thus removing hiberfil.sys, on Windows Vista and Windows 7, is
through the command prompt and the following steps:
1. Open a command prompt with administrative privileges.
2. Enter "powercfg.exe -h off" (see Figure D).
3. Exit the command prompt.

http://www.techrepublic.com/blog/tr-dojo/delete-hiberfilsys-by-disabling-windows-hibernate-function/

4/8

21/12/2014

Delete hiberfil.sys by disabling Windows Hibernate function - TechRepublic

Figure D
As soon as you clear the check box or execute the above powercfg.exe command, Windows should delete
hiberfil.sys. If not, you can manually delete it.

Re-enabling Windows Hibernate


To turn the Hibernate function back on, simply recheck the Enable Hibernation setting under Power Option
Properties or enter "powercfg.exe -h on" at a command prompt with administrative privileges.

And the TechRepublic swag goes to...


This week's coffee mugs and laptop stickers go to mluck (http://www.techrepublic.com/members/profile/430994/), who was
first to correctly associate hiberfil.sys with Windows Hibernate function (http://www.techrepublic.com/5208-13625-0.html?
forumID=102&threadID=324544&messageID=3230655)

and jscholefield

(http://www.techrepublic.com/members/profile/22245902121823365749540467914600/),

who provided information on how to disable

hibernation and the corresponding command line text (http://www.techrepublic.com/5208-13625-0.html?


forumID=102&threadID=324544&messageID=3230627).

Thanks to everyone who submitted an answer.


http://www.techrepublic.com/blog/tr-dojo/delete-hiberfilsys-by-disabling-windows-hibernate-function/

5/8

21/12/2014

Delete hiberfil.sys by disabling Windows Hibernate function - TechRepublic

You can also sign up to receive the latest from the TR Dojo through one or more of the following methods:
Follow Bill Detwiler on Twitter (http://twitter.com/billdetwiler)
Subscribe to the TR Dojo Newsletter (/newsletters/) (delivered Tuesdays and Fridays)
Subscribe to the TR Dojo RSS feed (http://www.techrepublic.com/blog/itdojo/wp-rss2.php)
Sign up for customizable TR Dojo e-mail alerts (http://www.techrepublic.com/resource-library/whitepapers/alertform.aspx?
url=http%3A%2F%2Fwww.techrepublic.com/blog%2Fitdojo%2Fwprss2.php&title=IT+Dojo&source=http%3A%2F%2Fwww.techrepublic.com/blog%2Fitdojo%2F)

Access TR Dojo from your mobile device (http://www.techrepublic.com/blog/itdojo/wp-mobile.php)

About Bill Detwiler


Bill Detwiler is Managing Editor of TechRepublic and Tech Pro Research and the host of Cracking
Open, CNET and TechRepublic's popular online show. Prior to joining TechRepublic in 2000, Bill was
an IT manager, database administrator, and desktop supp...

Recommended

The inner workings of a targeted


attack

Your social media levity for the dark


days of winter

Save on employee turnover costs


by following these retention tips

Hands-on with the latest challenger


to the Raspberry Pi

http://www.techrepublic.com/blog/tr-dojo/delete-hiberfilsys-by-disabling-windows-hibernate-function/

6/8

21/12/2014

Delete hiberfil.sys by disabling Windows Hibernate function - TechRepublic

Add your Comment

Editor's Picks

We-commerce: The
sharing economy's
uncertain path

'PayPal Mafia' redefined


success in Silicon
Valley

How Aaron Levie and


his childhood friends
built Box

Conflict minerals funded


a war that killed millions

http://www.techrepublic.com/blog/tr-dojo/delete-hiberfilsys-by-disabling-windows-hibernate-function/

7/8

21/12/2014

Delete hiberfil.sys by disabling Windows Hibernate function - TechRepublic

Don't Miss Our Latest Updates


Editor's Daily Picks

Subscribe

Week in Review

Subscribe

http://www.techrepublic.com/blog/tr-dojo/delete-hiberfilsys-by-disabling-windows-hibernate-function/

8/8

You might also like