The Wild

Disable Hibernation File in Windows 10: Step‑by‑Step Guide

· 4 min read · Mammals

In this article
  1. Background
  2. How It Works
  3. Steps to Disable
  4. Choosing When to Disable
  5. Common Problems
  6. Alternatives
  7. Safety Considerations
  8. Frequently Asked Questions

You can delete the hibernation file (hiberfil.sys) in Windows 10 by running a command that disables hibernation, freeing the disk space the file occupies.

Background

Windows keeps a special file called hiberfil.sys in the root of each system‑driven partition. It stores the contents of RAM when a computer enters the hibernate state, allowing the machine to resume almost instantly. The file size is roughly equal to the amount of installed physical memory, so on a 16 GB RAM system the file can consume 16 GB of disk space. If you rarely or never use hibernate, the file is a waste of storage.

How It Works

When the powercfg /h command is executed with the /type disk flag, Windows writes the current RAM contents to the hibernation file and powers down the system. To disable hibernation, the same command is issued with the /h off flag. Windows then deletes the file and removes the hibernate option from the power menu.

Steps to Disable

  1. Open a command prompt with administrative privileges: press Win + X, choose “Windows Terminal (Admin)” or “Command Prompt (Admin).”
  2. Confirm you have the right drive letter for the system partition (usually C:).
  3. Type the following command exactly and press Enter:
    powercfg /h off
  4. Windows will delete hiberfil.sys and display a confirmation message such as “Hibernation disabled.”
  5. Close the terminal. The hibernate option is now removed from the power‑off menu and from the Settings > System > Power & sleep page.

To re‑enable hibernation later, run powercfg /h on in an elevated prompt; the file will be recreated automatically.

Choosing When to Disable

Deciding whether to turn hibernation off depends on how you use your PC:

  • Frequent laptop use with limited storage – disabling hibernation frees several gigabytes, useful on SSDs with ≤ 128 GB capacity.
  • Desktop with ample free space – the file is rarely a concern; keeping hibernation allows quick resume after a full shutdown.
  • Power‑saving scenarios – if you rely on the “Fast Startup” feature, disabling hibernation will also disable Fast Startup, which may increase boot times.
  • Data security – some users worry that hibernation stores unencrypted memory contents; disabling it can reduce that risk.

Common Problems

After disabling hibernation, users sometimes report:

  • Fast Startup disabled – Windows disables Fast Startup because it relies on the hibernation file. To regain Fast Startup, re‑enable hibernation or use a third‑party tool that mimics the feature.
  • Unexpected shutdowns – if a program is still running, Windows may refuse to shut down until the program exits. This is unrelated to hibernation but can be mistaken for a hibernation issue.
  • Large file still present – if the command is run from a non‑system partition, the file may not be located where expected. Verify the drive letter and ensure you are on the system partition.

Alternatives

Instead of disabling hibernation entirely, you can:

  • Reduce the hibernation file size by setting a custom limit: powercfg /h /size 50 creates a file that is 50 % of RAM. This keeps the feature while saving space.
  • Use the “Hibernate” option only on demand by removing the shortcut from the power menu, but leave the file intact.
  • Turn off Fast Startup only: go to Settings > Power & sleep > Additional power settings > Choose what the power buttons do > Change settings that are currently unavailable, then uncheck “Turn on fast startup.”

Safety Considerations

Disabling hibernation is a safe operation that does not affect system stability. However, keep in mind:

  • Any unsaved work will be lost if the computer is shut down abruptly; always save before powering down.
  • Disabling hibernation removes the ability to resume from a fully powered‑off state; if you rely on this for quick wake‑ups, you may notice a slight delay.
  • If you use Windows Backup or System Restore, the hibernation file is not included in snapshots, so disabling it does not interfere with backup integrity.

Frequently Asked Questions

Can I disable hibernation on a multi‑boot system?

Yes, but you must run the command from each operating system that shares the same disk. Each OS maintains its own hibernation file; disabling it in one does not affect the others.

What happens to Fast Startup when I turn off hibernation?

Fast Startup uses the hibernation file to store the kernel state. Disabling hibernation turns Fast Startup off, leading to a full boot each time you power on.

Is there a way to keep Fast Startup but remove the hibernation file?

No, Fast Startup depends on the hibernation file. You can only keep Fast Startup by leaving hibernation enabled.

Will disabling hibernation affect battery life on my laptop?

Not directly. Hibernation saves power by shutting down the machine, but it also uses disk space. Removing the file frees space, which can improve disk performance slightly, but the battery life impact is negligible.

How do I confirm the hibernation file was removed?

Open File Explorer, enable “Hidden items” in the View tab, and look for hiberfil.sys in the root of the system drive. If it is missing, hibernation is disabled.