Issue
Windows stops with 0xc0000221 and names a driver, system DLL, kernel image, file-system driver, or boot loader whose checksum does not match. The file may be corrupt, but the same symptom can result from faulty RAM or an unreliable disk/I/O path.
Searchable Windows error codes and exact messages
| Type | Searchable identifier | When it applies |
|---|---|---|
| Windows bug check/status | 0xc0000221 — STATUS_IMAGE_CHECKSUM_MISMATCH | Primary identifier. A driver or system DLL has an unexpected checksum. |
| Windows Recovery | 0xc0000428 — STATUS_INVALID_IMAGE_HASH | Windows cannot verify the digital signature or hash of a named file. Signature policy and file integrity must be distinguished. |
| Windows Recovery | 0xc0000098 — STATUS_FILE_INVALID | A named boot-critical file or BCD information is invalid. Follow the displayed file. |
| Windows Recovery | 0xc000000f — STATUS_NO_SUCH_FILE | The named file is absent rather than merely failing checksum. |
| Windows status | 0xc0000006 — STATUS_IN_PAGE_ERROR | A dump or event shows the image could not be read reliably from storage. |
| Related blue-screen bug check | 0x00000024 — NTFS_FILE_SYSTEM | File-system damage may have corrupted or prevented reading the image. |
| Related blue-screen bug check | 0x0000001A — MEMORY_MANAGEMENT | Changing-file checksum failures combined with memory errors point toward RAM, not one bad image. |
Search the exact code and complete File: path together, for example 0xc0000221 ntfs.sys, 0xc0000221 ntoskrnl.exe, or 0xc0000221 winload.efi. Do not treat ntoskrnl.exe as the cause merely because it is named; it may be the file whose bytes could not be read correctly.
Applies when
Use this procedure when the screen or dump names a specific Microsoft boot-critical file and the Windows volume is readable.
Does not apply when
Do not use it as a generic repair for changing file names, failing memory tests, recurring disk I/O errors, or a named third-party driver. A third-party driver requires removal or replacement of its package, not substitution from Windows installation media.
Information that may remain unknown
The exact build may remain unknown for initial disk checks and SFC. It becomes required before using DISM with external repair content. The named file and its full path may not remain unknown.
Requirements
- Windows Recovery Environment or installation media
- Command Prompt
- Readable Windows volume
- Matching Windows 10/11 installation media if SFC cannot repair the file
- Storage and memory diagnostics when file names change or corruption recurs
Starting position
Open Repair your computer > Troubleshoot > Advanced options > Command Prompt. Record the exact named file before running repairs.
Confirm the diagnosis
-
Photograph or transcribe the complete screen, including code, file, and message.
-
Detect and map the Windows volume:
diskpart list disk list volume select volume <Windows-volume-number> detail volume assign letter=W exit -
Confirm the named file exists. Replace the example path with the actual displayed path:
dir W:\Windows\System32\drivers\ntfs.sys -
Check the file system without repairs:
chkdsk W: -
Stop if the disk is unstable, CHKDSK reports I/O failures, or the named file changes across boots. Image the storage and test RAM before writing replacement data.
-
If the file belongs to Microsoft and the volume is stable, proceed to offline SFC.
-
If the file is a third-party driver, record its path and package/provider details. Use the dedicated boot-start-driver procedure rather than replacing it with Microsoft media.
Resolution steps
Branch A — Repair with offline System File Checker
-
Run:
sfc /scannow /offbootdir=W:\ /offwindir=W:\Windows -
Record the final SFC message.
-
If SFC reports successful repair, restart and test.
-
If SFC reports no corruption despite the same checksum screen, test storage and RAM before assuming SFC is wrong.
-
If SFC finds corruption but cannot repair it, continue to Branch B.
Branch B — Repair the component store from matching Windows media
-
Obtain installation media matching the installed architecture, language, edition, and Windows release/build closely enough to service the offline installation.
-
Detect the media volume and assign
M:if needed:diskpart list volume select volume <installation-media-volume-number> assign letter=M exit -
Determine whether the media contains
install.wimorinstall.esd:dir M:\sources\install.* -
List image indexes for WIM media:
dism /Get-WimInfo /WimFile:M:\sources\install.wim -
For ESD media, use:
dism /Get-WimInfo /WimFile:M:\sources\install.esd -
Select the index matching the installed edition. Do not assume index
1. -
Repair from WIM media:
dism /Image:W:\ /Cleanup-Image /RestoreHealth /Source:wim:M:\sources\install.wim:<index> /LimitAccess -
Or repair from ESD media:
dism /Image:W:\ /Cleanup-Image /RestoreHealth /Source:esd:M:\sources\install.esd:<index> /LimitAccess -
Record the DISM result. If DISM reports source files could not be found, stop and obtain correctly matched media rather than trying random indexes or builds.
-
After successful DISM repair, run offline SFC again:
sfc /scannow /offbootdir=W:\ /offwindir=W:\Windows
- Restart and test twice.
Branch C — Repair demonstrated logical disk errors first
-
If the initial read-only CHKDSK found ordinary logical errors and the drive is stable, back up required data.
-
Run:
chkdsk W: /f -
Repeat offline SFC after CHKDSK completes.
-
If file corruption returns, stop and investigate storage or RAM.
Expected results and branches
- SFC repairs the named Microsoft file and Windows starts: The protected file or its component-store copy was damaged.
- DISM with a matching source succeeds, then SFC succeeds: The component store required external repair content.
- DISM reports source mismatch or missing source: Exact version/source information is now required.
- The next boot names a different file: Stop file replacement and test RAM and storage.
- The same checksum error occurs while booting known-good Windows media: Hardware or firmware-path testing takes priority over repairing the installed image.
- The named file is third-party: Remove or replace its verified driver package; do not use DISM to invent a Microsoft replacement.
Do not do this
- Do not download DLL, SYS, EXE, or EFI files from file-replacement sites.
- Do not copy a system file from a different computer or arbitrary build.
- Do not disable signature enforcement permanently to hide a checksum or signature failure.
- Do not use an installation-image index without matching the installed edition.
- Do not continue repairing files when the failed filename changes or hardware tests fail.
- Do not assume the kernel file named on screen caused its own corruption.
Rollback
SFC and DISM do not provide a simple one-file undo. Use System Restore or the pre-repair system image if a repair makes the condition worse. Preserve CBS.log and DISM.log so the files and packages changed can be audited.
Verification
- Windows starts normally three times.
- Online
DISM /Online /Cleanup-Image /ScanHealthreports no remaining component-store corruption. - Online
sfc /scannowreports no unresolved integrity violations. - The named file no longer appears in a checksum or signature failure.
- Storage and memory checks remain stable, particularly when the original corruption was unexplained.
Confidence and stop conditions
Confidence is approximately 85% when one Microsoft file is consistently named, storage and RAM are stable, and SFC or matched-source DISM repairs it. Stop when file names change, recovery media also fails, hardware tests report errors, the named file is third-party, or correctly matched repair content is unavailable.