Microsoft Windows Error Code 0xC0000040: How to Fix It

Medium 30-60 minutes Medium Severity Verified June 2026
Error Code
0xC0000040
Brand
Microsoft Windows
Product Type
operating_system
Severity
Medium
DIY Difficulty
Medium
Estimated Fix Time
30-60 minutes
Error 0xC0000040, also known as STATUS_SECTION_TOO_BIG, means that a section of a file or driver is too large for Windows to load. This typically happens during boot, indicating a corrupted system file or driver issue. This guide provides step-by-step fixes to resolve the problem.
Ad

Tools You'll Need

How to Fix Error Code 0xC0000040

  1. Boot from Windows Installation Media

    Make sure to back up your important data before proceeding if possible. Booting from installation media will not affect your files unless you reinstall Windows.
  2. Open Command Prompt

  3. Run DISM (Deployment Imaging Service and Management Tool)

    Do not close the command prompt while DISM is running. It may take several minutes.
  4. Run System File Checker (SFC)

  5. Check for Disk Errors

    Do not restart the computer during CHKDSK.
  6. Restart Your Computer

Ad

When to Call a Professional

If the error persists after running these commands, your drive may be failing or the hardware may have issues. Contact a professional technician to diagnose potential hard drive failure or other hardware problems.

Frequently Asked Questions

What causes error 0xC0000040?
This error is caused by a corrupted system file or driver that is too large for Windows to load, often due to a failed update, bad sectors on the hard drive, or malware.
Can I fix error 0xC0000040 without installation media?
If you cannot boot into Windows, you will need installation media to access the repair tools. Without it, you cannot run the necessary commands.
Will I lose my data when fixing error 0xC0000040?
No, the steps in this guide only repair system files and do not delete personal files. However, it's always a good idea to have a backup.
What if DISM says 'source files not found'?
This means DISM cannot find the repair files. You can specify a Windows image file (install.wim) from your installation media. For example: dism /image:C:\ /cleanup-image /restorehealth /source:D:\sources\install.wim. Replace D with your media drive letter.
How do I create Windows installation media?
On another computer, go to Microsoft's official website, download the Media Creation Tool, and follow the instructions to create a USB or DVD. You will need a blank USB of at least 8GB.