Windows – Can I move hiberfil.sys to another drive

hibernatewindowswindows 10windows 7windows 8

I am running out of space on my %SYSTEMDRIVE% on Windows. There is hiberfil.sys file that size of it is almost 3GB.

I understand that hiberfil.sys is used for the windows hibernation feature.
https://support.microsoft.com/en-us/help/13770/windows-shut-down-sleep-hibernate-your-pc

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.

I don't want to disable the hibernatation feature.

Is there any way to move hiberfil.sys to another drive other than %SYSTEMDRIVE%?

Best Answer

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 did some research on Google and in the 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.