Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've tried everything I can think off to turn off hibernation.

I have disabled it in power management, used powercfg -h off and it almost works. It works when I execute the command but when I reboot the file hiberfil.sys is created again.

How do I do to turn off hibernation and delete the hiberfil.sys file for ever?

share|improve this question

migrated from serverfault.com Oct 18 '11 at 17:35

This question came from our site for professional system and network administrators.

8 Answers 8

I don't know if it matters but I always turn it off with the following command:

powercfg -h off

as opposed to:

powercfg /h off
share|improve this answer
    
Sorry, this was not the issue. It was just a typo. My problem is that I manage to turn it off, but when I reboot it gets activated again. –  Tomas Jansson Nov 14 '11 at 19:53

Something is turning it back on.

Try running Autoruns to see what is running automatically when you boot.
Is there a program or a scheduled task that does this?

If you don't see anything, run Process Monitor and enable boot logging (remove the filters to avoid filtering out the calls), then look for "hiber" and see/post what you find.

share|improve this answer
    
I don't want to try boot logging again, the last time I did so the computer get into a "permanent" blue screen. I couldn't even boot into safe mode after I activated boot logging with process monitor, but I will check up Autoruns. –  Tomas Jansson Nov 14 '11 at 20:00
    
@TomasJansson: Oh that sucks... do you remember what the error code was? (Either the number or the STATUS_SOMETHING_HAPPENED message would be useful.) –  Mehrdad Nov 14 '11 at 20:06
    
error code of the bsod? –  Tomas Jansson Nov 14 '11 at 20:07
    
@TomasJansson: Yeah –  Mehrdad Nov 14 '11 at 20:08
    
I guess you mean "BAD_POOL_CALLER". I'm not 100 % sure that Process Monitor caused it, but I don't want to try it just right now since I don't have the time to set the computer up again if it fails. –  Tomas Jansson Nov 14 '11 at 20:09

You could also try to turn off Hybrid Sleep :

  1. At the command prompt run as administrator, type powercfg.exe /hibernate off
  2. Start menu > type Power options
  3. In the left pane, open the link labeled Change when the computer sleeps and then open the link Change advanced power settings.
  4. Under the Advanced Sleep options, expand the Sleep tree and turn off Hybrid Sleep.
  5. Press OK.
  6. Reboot.

image

share|improve this answer
    
Alreadu tried that, didn't work. –  Tomas Jansson Nov 15 '11 at 11:14
    
I suggest then to (1) Look in all the Sleep branch and turn off everything possible, (2) Try to boot in Safe mode so if this doesn't happen then it is caused by a startup application. –  harrymc Nov 15 '11 at 12:27
    
that's a good tip to verify that it is a startup application... but it won't solve the problem. –  Tomas Jansson Nov 15 '11 at 12:52
    
If it is really a startup application, then one can use Autoruns to turn them off selectively until finding the guilty one. –  harrymc Nov 15 '11 at 13:01

Just delete the hiberfil.sys file from C:. As an added advantage you will save a few GB's of disk space too!

share|improve this answer
    
I don't think you can delete it if hibernation is activated, and the command powercfg -h off will turn off hibernation and delete the file. The problem is that when I reboot hibernation is re-enabled for some reason. –  Tomas Jansson Nov 15 '11 at 11:15
    
well, I have a dual boot PC with Win7 and Ubuntu, and deleted hiberfil.sys with ubuntu. from that onwards i don;t have hibernate option on Win7. –  Vineet Menon Nov 15 '11 at 11:20
    
I can't, for some reason it says that the file is in use and I can't delete it that way. How ever, it works to delete it using the powercfg -h off, but it doesn't solve my problem. –  Tomas Jansson Nov 15 '11 at 11:40
    
since you have already tried a lot of things, try to delete that file using some other OS (a linux live cd, if you wish). I don't know it will work or not, but give it a try. –  Vineet Menon Nov 15 '11 at 11:44
    
I will try that when I get home. It is a MacBook with dual boot, so I can just try to delete it from my OSX partition. –  Tomas Jansson Nov 15 '11 at 11:58

The Hiberfil.sys hidden system file is located in the root folder of the drive where the operating system is installed. The Windows Kernel Power Manager reserves this file when you install Windows. The size of this file is approximately equal to how much random access memory (RAM) is installed on the computer.

The computer uses the Hiberfil.sys file to store a copy of the system memory on the hard disk when the hybrid sleep setting is turned on. If this file is not present, the computer cannot hibernate.

Follow complete details on this link as Microsoft support

Use following command to turn of hibernation

 powercfg.exe /hibernate off 

and off hybrid sleep setting from Advanced Power Settings.. See the @harrymc answer to where to do this..

If you are having some issues with windows then use Microsoft Fixit. it is nice utility. I was using this with my Genuine Windows XP operating system.

share|improve this answer
up vote 0 down vote accepted

I asked the question at and got the answer here: Microsoft Answers. So here is how you really find what is turning your hibernation back on again using clean boot.

1. Start msconfig.exe
2. On the general tab select "Selective startup" and uncheck "Load startup items".
3. On the services tab unselect all first. 
4. Runt the command "powercfg -h off" to turn off hibernation.
5. Reboot
6. If hibernation is still deactivated start msconfig.exe again and activate half of the services.
7. Repeat 5 and 6 until you find the service causing hibernation to be turned back on (don't forget to do step 4 if it is activated again).
share|improve this answer
1  
Autoruns is much easier to use than msconfig. –  harrymc Dec 27 '12 at 20:25

the easiest way is Microsoft tool to enable hibernate.and Microsoft tool to disable hibernate.you do not have to write any commands.just follow this link please. Enable and Disable hibernate tools

Enable and Disable hibernate tools

share|improve this answer

To make hibernation unavailable, follow these steps:

  • Click Start, and then type cmd in the Start Search box.
  • In the search results list, right-click Command Prompt, and then click Run as Administrator.
  • When you are prompted by User Account Control, click Continue.
  • At the command prompt, type powercfg.exe /hibernate off, and then press Enter.
  • Type exit, and then press Enter to close the Command Prompt window.

To make hibernation available, follow these steps:

  • Click Start, and then type cmd in the Start Search box.
  • In the search results list, right-click Command Prompt, and then click Run as Administrator.
  • When you are prompted by User Account Control, click Continue.
  • At the command prompt, type powercfg.exe /hibernate on, and then press Enter.
  • Type exit, and then press Enter to close the Command Prompt window.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.