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.

Possible Duplicate:
Can I change the path and directory of the “hiberfil.sys” on Windows 8 due to reduce my C:\ disk usage?

I am running short of disk space on my C:\ drive. I have moved the Windows 8 pagefile.sys, but I cannot move hiberfil.sys.

Is there a way of shrinking hiberfil.sys?

share|improve this question

marked as duplicate by Oliver Salzburg Nov 21 '12 at 22:19

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

2 Answers

up vote 2 down vote accepted

You can change it. Start Command Prompt as Administrator and run the following command:

powercfg -hibernate -size persentSize

PercetSize specifies the desired hiberfile size in percentage of the total memory. Its size cannot be smaller than 50.

The size of hiberfil.sys is 6 GB on my system with 8 GB of RAM. This is the default size chosen by Windows, I haven't changed it.

share|improve this answer
add comment

The hibernation file has always the size of your RAM, because the whole RAM is stored there upon hibernation. The only think you can do is to disable hibernation if you do not use it and the file will be automaticaly deleted.

share|improve this answer
    
This was always my understanding, but they let you change it now to a certain percentage. Not sure how that works. Presumably it banks on your machine having less than 100% memory utilization or something. –  Mark Allen Nov 21 '12 at 20:13
    
@MarkAllen This used to be the case. Since Windows 7, if I'm not mistaken, you can change the size of hiberfil.sys. I think they use regular paging file pagefile.sys to store RAM contents above the size of hiberfil.sys. Although I haven't tested this theory. –  Alexey Ivanov Nov 21 '12 at 20:39
    
Oh - of course! That makes good sense, thanks. –  Mark Allen Nov 21 '12 at 21:14
add comment

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