Ad Space — Top Banner

0x00000031

Microsoft Windows

Severity: Critical

What Does This Error Mean?

The 0x00000031 blue screen error means Windows failed during the very earliest phase of startup. Phase 0 is the first stage of the Windows kernel loading — if this fails, Windows can't even begin loading properly. This usually means a critical Windows system file is corrupted or missing, or there's a problem with your hard drive or RAM. This error almost always requires booting from recovery media to repair Windows. You cannot fix this error from within a running Windows session.

Affected Models

  • Windows 10
  • Windows 11
  • Windows 8.1
  • Windows 7

Common Causes

  • Corrupted Windows kernel or critical boot files caused by an interrupted update or system crash
  • Hard drive failing with bad sectors in the area where Windows boot files are stored
  • Faulty RAM causing corruption of data during the boot process
  • Boot sector corruption from a virus, malware, or improper shutdown
  • A failed Windows update that partially modified critical system files

How to Fix It

  1. Create a Windows recovery drive or bootable USB installer on another computer. Download the Windows 10/11 Media Creation Tool from Microsoft's website, run it on another PC, and create a bootable USB drive. You'll need this to access recovery tools.

    If you have a Windows installation disc from your PC's original setup, you can use that too.

  2. Boot from the recovery USB. Insert it in the PC, restart, and press the key to enter the Boot Menu (usually F8, F11, or F12 depending on your computer brand — it's displayed briefly during startup). Select the USB drive as the boot device.

    If you're not sure which key to press, try F11 first — it's the Boot Menu key on most modern PCs.

  3. Run Startup Repair from the recovery environment. When Windows Setup appears, click 'Repair your computer' instead of Install. Go to Troubleshoot > Advanced options > Startup Repair. Windows will automatically scan for and repair boot file problems.

    Startup Repair may take 10-30 minutes. It will automatically restart when complete.

  4. If Startup Repair doesn't work, run System File Checker from the recovery command prompt. Go to Troubleshoot > Advanced options > Command Prompt. Type: sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows and press Enter. Replace C: with the actual Windows drive letter if different.

    The /offbootdir and /offwindir parameters tell SFC to scan the installed Windows rather than the recovery environment.

  5. As a last resort, try a Windows repair upgrade. In the recovery environment, go back to the main installer. Instead of installing fresh, choose the option to upgrade or repair the existing Windows installation — this reinstalls Windows over itself, fixing corrupted files, without deleting your personal files and programs.

    The repair upgrade takes 30-60 minutes. It does NOT delete your files, but always back up to an external drive before any major repair attempt.

When to Call a Professional

If booting from recovery media and running Startup Repair doesn't fix 0x00000031, the problem may be hardware. A technician can test your hard drive for bad sectors (using a tool like CrystalDiskInfo) and test your RAM. If the drive has bad sectors, data recovery may be needed before replacing the drive. Always back up data as soon as possible when you see hard-drive-related boot errors.

Frequently Asked Questions

What is Phase 0 initialization in Windows?

When Windows starts up, it goes through several phases before you see the login screen. Phase 0 is the absolute first phase — the kernel (Windows' core) is loaded into memory and the most basic hardware components are initialized. If anything fails at this stage, Windows has no ability to recover on its own and displays the blue screen. Failures this early almost always mean corrupted critical files or failing hardware.

Will I lose my files if I have to reinstall Windows?

A repair upgrade (reinstalling over the existing Windows) does not delete your personal files. However, a clean installation (formatting the drive) will delete everything. Always try the repair option first. If you need to do a clean install, back up your files to an external drive first if at all possible.

Can 0x00000031 be caused by a virus?

Yes — some malware specifically targets Windows boot files as a way to persist even after Windows reinstalls. Bootkits (a type of malware) infect the Master Boot Record (MBR) or boot sector. If you suspect malware, boot from a trusted USB antivirus rescue disc (available free from Kaspersky, Bitdefender, or Avast) before attempting Windows repair. This scans and cleans the drive before you repair Windows.