How to remove hiberfil.sys

10

I have a small SSD and I want to reclain the space currently used by the hiberfil.sys (~4GB) by disabling hybernation or perhaps preferably, move it to an HDD.

I see under "power Options" that "Sleep/Hibernate After" is set to "Never", yet I have this 4 GB hiberfil.sys file.

I don't see any other options pertaining to Hybernation.

how do I remove this file and keep it from coming back or relocate it to another drive, an HDD where I would not mind the frivelous writes to take place.

Chad

Posted 2010-06-03T03:37:36.850

Reputation: 1 654

Question was closed 2016-01-28T01:06:51.373

Answers

9

open an administrator command shell (cmd.exe or powershell.exe) and type:

% powercfg -h off

and then reboot

akira

Posted 2010-06-03T03:37:36.850

Reputation: 52 754

Worked for me without reboot. (Windows 7 SP1 x64) – Kromster – 2016-01-17T07:22:33.167

1Thanks. I would prefer to move the hybernate file rather than turn it off but it looks looks like it has to be on teh same drive as your OS. – Chad – 2010-06-03T03:44:54.180

3@Chadworthington: hiberfil.sys can't be moved, since NTLDR uses it before it knows where the registry is, while drive letter assignments are stored in the registry. – harrymc – 2010-06-03T07:00:58.583