8
21/12/2014 De le te hib erf il.sy s by disabling Win dows Hi bernate funct io n - Te ch Re public http://ww w .tec hr epubl i c.co m/bl og /tr -dojo /del ete-h i ber fi l sy s-b y -d isabl ing-w in dow s -hi ber nate- func ti on/ 1/8 H iberfil.sys c an use seve ral GB of hard d isk 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 . T he quickes t earned some TechRe public s wag. Hiberfil.sys and Windows Hibernate function To understand why hiberfil.sys exists, we must look at the Windows Hiber nate function (http://ww w.micros oft.com/windows xp/us ing/m obil ity/getstar ted/hib ernate.ms px) . 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. WINDOWS Delete hiberfil.sys by disabling Windows Hibernate function By Bill Detwiler  in TR Dojo, F ebruary 5, 2010, 5:48 A M PST // billdetwiler Do you us e Windows Hibernate featur e? Yes No Vote  View Results

Xóa file hilberfil trên máy

Embed Size (px)

Citation preview

Page 1: Xóa file hilberfil trên máy

8/10/2019 Xóa file hilberfil trên máy

http://slidepdf.com/reader/full/xoa-file-hilberfil-tren-may 1/8

21/12/2014 Delete hiberfil.sys by disabling Windows Hibernate function - TechRepublic

http://www.techrepubl ic.com/blog/tr-dojo/delete-hiberfi lsys-by-disabl ing-windows-hibernate- function/ 1/8

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.

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/mobil ity/getstarted/hibernate.mspx) . When you activate Hibernate, Windows takes asnap 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.

WINDOWS

Delete hiberfil.sys by disabling Windows HibernatefunctionBy Bill Detwiler in TR Dojo , February 5, 2010, 5:48 AM PST // billdetwiler

Do you use Windows Hibernate feature?

Yes

No

Vote View Results

Page 2: Xóa file hilberfil trên máy

8/10/2019 Xóa file hilberfil trên máy

http://slidepdf.com/reader/full/xoa-file-hilberfil-tren-may 2/8

21/12/2014 Delete hiberfil.sys by disabling Windows Hibernate function - TechRepublic

http://www.techrepubl ic.com/blog/tr-dojo/delete-hiberfi lsys-by-disabl ing-windows-hibernate- function/ 2/8

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.

Figure A

Page 3: Xóa file hilberfil trên máy

8/10/2019 Xóa file hilberfil trên máy

http://slidepdf.com/reader/full/xoa-file-hilberfil-tren-may 3/8

21/12/2014 Delete hiberfil.sys by disabling Windows Hibernate function - TechRepublic

http://www.techrepubl ic.com/blog/tr-dojo/delete-hiberfi lsys-by-disabl ing-windows-hibernate- function/ 3/8

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 Windows7 (see Figure C ).

Figure B

Page 4: Xóa file hilberfil trên máy

8/10/2019 Xóa file hilberfil trên máy

http://slidepdf.com/reader/full/xoa-file-hilberfil-tren-may 4/8

21/12/2014 Delete hiberfil.sys by disabling Windows Hibernate function - TechRepublic

http://www.techrepubl ic.com/blog/tr-dojo/delete-hiberfi lsys-by-disabl ing-windows-hibernate- function/ 4/8

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 adminis trative privileges.

2. Enter "powercfg.exe -h off" (see Figure D) .

3. Exit the command prompt.

Figure C

Page 5: Xóa file hilberfil trên máy

8/10/2019 Xóa file hilberfil trên máy

http://slidepdf.com/reader/full/xoa-file-hilberfil-tren-may 5/8

21/12/2014 Delete hiberfil.sys by disabling Windows Hibernate function - TechRepublic

http://www.techrepubl ic.com/blog/tr-dojo/delete-hiberfi lsys-by-disabl ing-windows-hibernate- function/ 5/8

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.techrepubli c.com/members/profil e/430994/) , who was

first to correctly associate hiberfil.sys with Windows Hibernate function (http://www.techrepubl ic.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.techrepubl ic.com/5208-13625-0.html?

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

Thanks to everyone who submitted an answer.

Figure D

Page 6: Xóa file hilberfil trên máy

8/10/2019 Xóa file hilberfil trên máy

http://slidepdf.com/reader/full/xoa-file-hilberfil-tren-may 6/8

21/12/2014 Delete hiberfil.sys by disabling Windows Hibernate function - TechRepublic

http://www.techrepubl ic.com/blog/tr-dojo/delete-hiberfi lsys-by-disabl ing-windows-hibernate- function/ 6/8

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.techrepubli c.com/blog/i tdojo/wp-rss2.php)

Sign up for customizable TR Dojo e-mail alerts (http://www.techrepubli c.com/resource-li brary/whitepapers/alertform.aspx?

url=http%3A%2F%2Fwww.techrepublic.com/blog%2Fitdojo%2Fwp-

rss2.php&ti tle=IT+Dojo&source=http%3A%2F%2Fwww.techrepublic.com/blog%2Fitdoj o%2F)

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

Recommended

The inner workings of a targetedattack

Your social media levity for the darkdays of winter

Save on employee turnover costsby following these retention tips

Hands-on with the latest challenger to the Raspberry Pi

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...

Page 8: Xóa file hilberfil trên máy

8/10/2019 Xóa file hilberfil trên máy

http://slidepdf.com/reader/full/xoa-file-hilberfil-tren-may 8/8

21/12/2014 Delete hiberfil.sys by disabling Windows Hibernate function - TechRepublic

http://wwwtechrepubl ic com/blog/tr-dojo/delete-hiberfi lsys-by-disabl ing-windows-hibernate- function/ 8/8

Don't Miss Our Latest Updates

Editor's Daily Picks Subscribe

Week in Review Subscribe