Skip to main content
Back to all fixes
medium1-4 hours

Check Hard Drive for Errors

Bad sectors or file system corruption can silently corrupt DLL files, leading to intermittent 0xc000007b errors.

One-Click Script

Save as schedule-chkdsk.bat, right-click → Run as Administrator.

@echo off
echo This will schedule CHKDSK on next restart.
echo It will check for bad sectors and fix file system errors.
echo This may take 1-4 hours depending on drive size.
echo.
chkdsk C: /f /r
echo.
echo If prompted, type Y and restart your computer.
pause

Step-by-Step

  1. 1

    Open Command Prompt as Administrator.

  2. 2

    Check the C: drive: chkdsk C: /f /r

  3. 3

    /f fixes errors. /r locates bad sectors and recovers readable information.

  4. 4

    You will see: "Chkdsk cannot run because the volume is in use... Would you like to schedule this volume to be checked the next time the system restarts? (Y/N)"

  5. 5

    Type Y and press Enter.

  6. 6

    Restart your computer. CHKDSK will run before Windows loads. On large drives this can take 1-4 hours.

  7. 7

    After boot, check the results in Event Viewer: Windows Logs → Application → filter by "Wininit" source.

How to Verify It Worked

  • Event Viewer Wininit log shows "Windows has checked the file system and found no problems."
  • No more random application crashes that previously worked.

Still Not Working?

If CHKDSK finds unrecoverable bad sectors, your hard drive is failing. Back up data immediately and replace the drive.