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 have lack of space on my root(Windows 7) drive. There is hiberfil.sys that size of it is almost 3GB . I know use of hiberfil.sys:

HIBERFIL.SYS is a file the system creates when the computer goes into hibernation mode. Windows uses the file when it is turned back on.

I don't want to disable hibernate .
Is there any way to set hiberfil.sys to another drive that data would be store there?

share|improve this question
    
No you cannot, there is simply no way. –  HackToHell Mar 20 '12 at 11:41
8  
Obligatory Raymond Chen: Windows Confidential: The File System Paradox –  grawity Mar 20 '12 at 12:12
1  
This has to be a dupe. . . –  surfasb Mar 20 '12 at 13:34
2  
The "external-drive" tag is also worrying. Computers don't like it when their memory can walk off. –  MSalters Mar 20 '12 at 13:39
add comment

4 Answers

Unlike SLEEP mode, where everything which is running on your system is stored in your RAM, (which is kept powered), HIBERNATION it copies the entire state of your RAM to a file called HIBERFIL.sys. That is why that file has to be at least as big as size of your RAM. Your computer turns off altogether, as it doesn't have to have any of your components under constant power.

BUT, next time you want to get your machine woken up from Hibernation state, to find it at the same point where you left it, it needs that boot-up sector of your System disk...

Unfortunately there's no way to move that HIBERFIL.sys around to your other HDDs or partitions.

This is unlike PAGFIL.sys, which you CAN relocate to some other physical disk or partition, so your system disk doesn't have to handle the Pagefile.

share|improve this answer
    
This article helped me decide I don't want hibernation and to save the to be able to remove the 32Gb file from my SSD. verdiem.com/blog/2011-11-15/put-them-sleep-dont-hibernate –  Valamas Nov 13 '13 at 10:29
add comment

I don't think it is possible to "redirect" the path of your hiberfil.sys from "C:\hiberfil.sys" to D:\hiberfil.sys for example. I made a research on google and on Windows registry and found nothing but the option to disable it(and consequently delete hiberfil.sys file):

  1. Click Start, and then type cmd in the Start Search box.
  2. In the search results list, right-click Command Prompt, and then click Run as Administrator.
  3. When you are prompted by User Account Control, click Continue.
  4. At the command prompt, type powercfg.exe /hibernate off, and then press ENTER.
  5. Type exit and then press ENTER to close the Command Prompt window.
share|improve this answer
    
This is not the answer, the OP doesn't want to disable hibernation. –  cjb110 Feb 8 '13 at 10:44
    
Thanks, once I ran the comment, the hiberfil.sys automatically remove. Thanks, I now have additional 32Gb on my SSD –  Valamas Nov 13 '13 at 10:31
add comment

It should be on the same disk as booloader (NTLDR/BOOTMGR) so bootloader can pick it up early and copy to RAM.

Try moving the bootloader.

share|improve this answer
    
After moving bootloader, How could I redirect the path of hiberfil.sys ? –  hamed Mar 20 '12 at 19:32
    
It will be on the same partition as bootloader, in the root folder. –  Mikhail Kupchik Mar 29 '12 at 11:47
2  
My bootloader is in other drive, I was suspected. I think it don't related to bootloader. It related the Windows partition. –  hamed Mar 30 '12 at 14:49
    
This is actually the closest to an answer I think, you can't tell windows to look some where else. But it depends does windows look at the root of where it's installed, or the root of the boot drive?? (these by default are the same, but by no means have to be). If its the latter then this answer will work (if fiddly to achieve). –  cjb110 Feb 8 '13 at 10:43
    
rereading the Raymond Chen post, it does say boot drive, not Windows install drive... –  cjb110 Feb 8 '13 at 10:45
add comment

To stop the Hibernation service in Windows Vista or 7:

  1. Click on the Start button and in the Search field type cmd
  2. When the command prompt opens, type powercfg.exe -h off
  3. Exit the command prompt

At this point a few important things will have taken place in Windows:

  1. hiberfil.sys no longer exists in Explorer (i.e. is deleted, thus freeing up a lot of disk space),
  2. "Hibernate" is no longer available from the Shutdown options in the Start menu, and
  3. obviously, you will no longer be able to place Windows into a hibernation state (S4).
share|improve this answer
1  
In the question is explicitly stated "I don't want to disable hibernate." Hence your is not helpful in this case. –  Robert Nov 23 '12 at 15:56
add comment

protected by slhck Feb 8 '13 at 10:17

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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