This guide walks you through the most common causes and fixes for the “Error loading operating system” message on Windows 10. This error usually appears right after the BIOS screen, before Windows starts, and it means the boot loader cannot find or read the system files. You’ll need a Windows 10 installation USB or DVD to run the built-in repair tools, and you may need to access your BIOS/UEFI settings.
What You’ll Need
- A Windows 10 installation USB or DVD (created with the Media Creation Tool from Microsoft).
- Access to your computer’s BIOS/UEFI (usually by pressing a key like F2, F10, Del, or Esc during startup).
- A second working computer (optional) to download tools or create the installation media.
Step-by-Step
- Check for external drives and remove them. Unplug any USB flash drives, external hard drives, SD cards, or discs. Sometimes the system tries to boot from a non-bootable device. Restart the PC and see if the error goes away.
- Check the boot order in BIOS/UEFI. Restart the computer and press the key to enter setup (often F2, F10, Del, or Esc). Look for a “Boot” or “Boot Order” section. Make sure the hard drive containing Windows 10 is listed first (or at least before any other drives). If the drive is not listed, skip to step 5.
- Disable Secure Boot (temporarily). In the same BIOS/UEFI, find “Secure Boot” (usually under “Security” or “Boot”) and set it to “Disabled.” Save changes and exit. If the error persists, re-enable it later.
- Reset the BIOS to defaults. In BIOS/UEFI, look for “Load Defaults,” “Load Optimized Defaults,” or “Reset to Default.” Save and exit. This can fix misconfigured settings that prevent booting.
- Boot from the Windows 10 installation media. Insert your USB or DVD, restart, and press the key to choose a boot device (often F12, F11, or Esc). Select the USB/DVD. If it doesn’t boot, you may need to change the boot order in BIOS to put the USB/DVD first.
- Open the Command Prompt from the repair environment. When the Windows Setup screen appears, click “Next,” then click “Repair your computer” (bottom-left). Choose “Troubleshoot” → “Advanced options” → “Command Prompt.”
- Run the Bootrec commands. In the Command Prompt, type the following commands one by one, pressing Enter after each:
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
If you get an “Access denied” error on /fixboot, skip it for now and continue. After all commands, typeexitand restart the PC (remove the USB/DVD). - If Bootrec fails, rebuild the BCD manually. Boot back to the Command Prompt as above. Type
diskpart, thenlist volumeto see your partitions. Identify the volume with the Windows folder (usually labeled “System Reserved” or with a large size). Note its drive letter (e.g., C:). Typeexit. Then run:
bcdedit /export C:\BCD_Backup
ren C:\boot\bcd BCD.old
bootrec /rebuildbcd
If asked to add an installation, typeYand press Enter. Restart. - Check disk for errors. From the Command Prompt, run
chkdsk /f /r C:(replace C: with your Windows drive letter). This can take a while. If it finds errors, let it fix them, then restart. - Try Startup Repair. Boot from the installation media, go to “Repair your computer” → “Troubleshoot” → “Advanced options” → “Startup Repair.” Let it run and follow any prompts.
Common Mistakes
- Not removing external drives: A USB stick left in can cause the error; always remove them first.
- Wrong boot order: Setting the wrong drive as first can bypass your Windows installation.
- Skipping the disk check: A failing hard drive can cause this error; running chkdsk is essential.
- Using the wrong drive letter in commands: In the repair environment, drive letters may differ from normal Windows. Always check with
diskpartbefore running commands. - Forgetting to remove the installation media before restarting: This can loop you back into setup.
Tips
- If you have a laptop, remove the battery (if removable) and hold the power button for 15 seconds to discharge static, then try booting again.
- If you recently changed hardware (like a new SSD), make sure the SATA cable is firmly connected, or the M.2 drive is seated properly.
- Write down your BIOS settings before changing anything, so you can revert if needed.
- If you have a system restore point, you can try “System Restore” from the Advanced options instead of the command prompt.
Troubleshooting
- If the error still appears after all steps: The boot files may be severely corrupted, or the drive may be failing. Try reinstalling Windows (choose “Custom install” and format the partition) after backing up data if possible.
- If you get “The system cannot find the path specified” during bootrec: The BCD is missing; try the manual rebuild in step 8.
- If you see “Access denied” when running bootrec: This often happens on UEFI systems. Try disabling Secure Boot, or use the manual BCD method.
- If the hard drive is not detected in BIOS: Check connections, and test the drive on another computer. If it’s not detected anywhere, the drive may be dead – you’ll need a replacement.
- If you can’t boot from the installation media: Check the boot order again, and ensure the media is created correctly (try a different USB port, preferably USB 2.0).
Frequently Asked Questions
Q: Will this erase my files?
A: Most steps (bootrec, chkdsk, startup repair) do not delete personal files. However, a full reinstall will, so always back up if possible.
Q: Why does this error happen?
A: It happens when Windows can’t find the bootmgr file or the BCD store. Causes include corrupted boot files, a failing hard drive, incorrect BIOS settings, or a loose cable.
Q: Can I fix it without the installation media?
A: Sometimes yes, if you can access the Advanced Startup Options by pressing F11 or Shift+Restart. But if Windows won’t boot at all, you’ll need the media.
Q: How long does chkdsk take?
A: It depends on the drive size and errors. A 1TB drive can take several hours. Let it finish; interrupting can cause more damage.
Q: What if I have a UEFI system?
A: The same steps generally work, but you may need to disable Secure Boot, and the bootrec commands may require the manual BCD method. Also, ensure the installation media is UEFI-compatible (created with the Media Creation Tool).
Q: Is this error a sign my hard drive is dying?
A: It can be. If chkdsk finds bad sectors or the drive makes clicking noises, back up immediately and replace the drive.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Spotify Jam Not Working on Mobile? Fixes That Work
- Windows 10 No Internet Secured WiFi Error Fix
- Multi-Cloud GPU Failover Design Guide
- Error Code Currant Destiny? Meaning & Fixes
- Install Windows After Replacing Hard Drive
- AirPlay with Roku Multi-Device Setup: A How-To