0X00000313

Fix ERROR_ABANDON_HIBERFILE (0x00000313) in Windows 10/11

Your PC's hibernation file got corrupted. This error pops up after a failed sleep or update. I'll show you three fixes, starting with the quickest.

Why you're seeing this error

I know this error is infuriating. You shut down your PC normally, or maybe you let it hibernate. Then next boot, you're stuck with a blue screen saying 0x00000313. The message says the hibernation file is invalid and should be abandoned.

This happens most often after a Windows update that crashes during hibernation, or if your laptop battery dies while it's sleeping. The file hiberfil.sys gets corrupted. The good news? You don't need to reinstall Windows.

Fix 1: Clear the hibernation file with a command (30 seconds)

This is the simplest fix. It works for 9 out of 10 people I've helped. You'll run a single command to delete the corrupted hibernation file.

  1. Boot your PC. When you see the error, let it fail to start normally.
  2. After the automatic repair screen shows up, click Advanced options.
  3. Go to TroubleshootAdvanced optionsCommand Prompt.
  4. At the command prompt, type:
    powercfg /hibernate off
    Press Enter. This deletes the corrupted hiberfil.sys file.
  5. Type exit and press Enter. Then click Continue to restart Windows.

If Windows boots normally, you're done. If you want to use hibernation again later, just run powercfg /hibernate on from an admin Command Prompt. But skip that for now — let's make sure your PC is stable first.

Fix 2: Disable hibernation via Registry (5 minutes)

If the command didn't work, the file might be locked by Windows. We'll go through the Registry to force-disable it. Be careful — Registry changes can mess things up if you don't follow exactly.

  1. Boot from a Windows installation USB or recovery drive. If you don't have one, create it on another PC using the Media Creation Tool.
  2. Choose your language and click Next. Then click Repair your computer at the bottom left.
  3. Go to TroubleshootAdvanced optionsRegistry Editor.
  4. In Registry Editor, select HKEY_LOCAL_MACHINE from the left pane.
  5. Click FileLoad Hive. Navigate to your Windows drive (usually C:\Windows\System32\config), select the file SYSTEM (no extension), and click Open.
  6. When asked for a key name, type TempHive and press Enter.
  7. Go to HKEY_LOCAL_MACHINE\TempHive\ControlSet001\Control\Power.
  8. Double-click HibernateEnabled on the right. Change the value from 1 to 0. Click OK.
  9. Go back to HKEY_LOCAL_MACHINE\TempHive, select it, click FileUnload Hive. Confirm.
  10. Close Registry Editor, restart your PC, and remove the USB.

This kills hibernation completely. Your PC will boot normally. If you want hibernation back later, just set the value back to 1 the same way.

Fix 3: System File Checker and CHKDSK (15+ minutes)

This is the nuclear option. Use this when the error keeps coming back after hibernation is off. It means the corruption spread to system files.

  1. Boot into Command Prompt as described in Fix 1 (Advanced options → Command Prompt).
  2. Run:
    sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
    Replace C: with your Windows drive letter if different. This checks system files.
  3. After SFC finishes, run:
    chkdsk C: /f /r
    Press Y if asked to schedule it, then type exit and restart. The scan will run on next boot and fix disk errors.

This can take 30 minutes on a slow drive. Let it finish. When it's done, your PC should boot clean.

One more thing: If you're on a laptop and this happens often, check your power plan settings. Go to Control Panel → Power Options → Change plan settings → Change advanced power settings. Under Sleep, set Hibernate after to Never. Some laptops have buggy firmware that corrupts the file. I've seen this on Dell XPS 13 units from 2020.

That's it. Start with Fix 1. Most of you won't need the other two. If none work, you might have a failing drive — back up your data and run wmic diskdrive get status in Command Prompt to check.

Related Errors in Windows Errors
0X80320029 FWP_E_RESERVED (0X80320029): Reserved Field Nonzero Fix 0X800B0007 Fix DIGSIG_E_EXTENSIBILITY (0X800B0007) on Windows 0X80280039 Fix TPM_E_REQUIRES_SIGN (0x80280039) on Windows 10/11 0X8034001B ERROR_NDIS_FILE_NOT_FOUND (0X8034001B) Fix for Windows 10/11

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.