6

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?

1

2 Answers 2

7

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

powercfg -hibernate -size PercentSize

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

2
  • Does not work for me. powercfg -h or powercfg -hibernate says "incorrect parameters"
    – Anixx
    Nov 5, 2019 at 16:30
  • @Anixx Run powercfg /? to get info for all available commands and powercfg /hibernate /? for parameters of hibernate sub-command. Unfortunately, I don't know how I can help you more than that. Nov 6, 2019 at 19:57
1

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.

2
  • 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, 2012 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. Nov 21, 2012 at 20:39

Not the answer you're looking for? Browse other questions tagged .