Skip to main content

Laptops · HP

HP Laptop Automatic Repair Loop

If your HP laptop is stuck in an endless Preparing Automatic Repair loop, Windows is failing to boot due to corrupted system files or a failing storage drive.

Symptoms

  • Displays 'Preparing Automatic Repair' followed by 'Diagnosing your PC' on every boot
  • Stuck on a blue screen stating 'Your PC did not start correctly'
  • Boots to the HP logo, flashes briefly, and restarts continuously
  • Selecting 'Restart' in Advanced Options brings you right back to the repair screen
  • Fails to load Windows Safe Mode or crashes during startup
  • System diagnostics throw an error code during the hard drive short drive self-test

Quick troubleshooting

  1. Step 1

    Perform a Hard Power Reset

    Disconnect all external peripheral devices, USB drives, and the power adapter. Press and hold the laptop power button for 15 to 20 seconds to drain remaining flea power. Reconnect only the AC power charger and turn the laptop on to see if Windows bypasses the repair loop.

  2. Step 2

    Run HP Hardware Diagnostics (F2 Menu)

    Turn off the laptop completely. Press the power button, then immediately tap the F2 key repeatedly until the HP PC Hardware Diagnostics UEFI screen appears. Select 'Component Tests', then run both the 'Hard Drive Quick Test' and 'Memory Test'. If a test fails with a Failure ID, your storage drive or RAM needs physical replacement.

  3. Step 3

    Rebuild Windows Boot Files via Command Prompt

    On the 'Automatic Repair' screen, click Advanced Options > Troubleshoot > Advanced Options > Command Prompt. Type 'bootrec /fixmbr', press Enter, then run 'bootrec /fixboot', 'bootrec /scanos', and 'bootrec /rebuildbcd'. Restart your laptop to verify if the boot loader has recovered.

  4. Step 4

    Run System File Checker and Chkdsk

    In the same Command Prompt window, type 'chkdsk C: /f /r' and press Enter to scan and repair storage disk errors. Once finished, type 'sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows' to replace corrupted core system files. Close the prompt and attempt to boot normally.

  5. Step 5

    Restore BIOS / UEFI Default Settings

    Restart the laptop and repeatedly tap F10 to enter the BIOS Setup Utility. Press F9 to load Setup Defaults, accept the prompt, and press F10 to Save and Exit. This resolves boot loops caused by incorrect SATA operation modes, Secure Boot mismatches, or invalid device boot orders.

Likely causes

  • Corrupted Boot Configuration Data (BCD) or damaged Windows system files
  • Failing or degraded SSD / Hard Drive with unreadable sectors
  • Interrupted Windows Update or improper force shutdown during an active write
  • Corrupted BIOS/UEFI settings or outdated system firmware
  • Faulty or loosely seated RAM modules
  • File system corruption on the primary C: boot partition

What's going on

When your HP laptop enters an Automatic Repair Loop, Windows has detected an abnormality during the initial boot sequence and attempted to diagnose and repair itself using the Windows Recovery Environment (WinRE). When the repair utility fails to resolve the underlying issue, the system reboots and triggers the same detection mechanism again—locking you in a continuous diagnostic loop.

On HP laptops, this issue typically stems from broken boot parameters in the Boot Configuration Data (BCD), severe file system corruption caused by sudden shutdowns, or a hardware-level failure of the internal storage drive (SATA SSD, M.2 NVMe, or traditional HDD).

Symptoms people notice

  • The Infinite Repair Loop: The screen displays "Preparing Automatic Repair," transitions to "Diagnosing your PC," and eventually drops into the blue WinRE screen.
  • Failed Restart Attempts: Clicking "Restart" on the "Your PC did not start correctly" screen causes the computer to reboot right back into the same screen.
  • Safe Mode Failures: Choosing Startup Settings and attempting to enter Safe Mode results in a black screen, crash, or instant restart.
  • HP Diagnostic Warning Flags: System diagnostics launched via the F2 menu return SMART disk check errors or failed drive self-tests.
  • Slow or Freezing Recovery Environment: The Automatic Repair menu responds sluggishly or freezes while attempting to load diagnostic tools.

Likely causes

  1. Corrupted Boot Files: Damaged or missing BCD entries, winload.efi, or master boot records prevent the Windows kernel from staging.
  2. Failing Storage Drive: Solid-state drives (SSDs) entering read-only failure modes or hard drives developing bad sectors on system partitions.
  3. Botched Windows Updates: Power loss or forced shutdown while Windows was installing system updates or updating kernel files.
  4. Registry Hive Corruption: Damaged SYSTEM or SOFTWARE registry hives that prevent critical system drivers from initializing.
  5. BIOS/UEFI Configuration Drift: Outdated firmware or altered boot settings (such as AHCI vs. RAID modes) disrupting drive accessibility.

Quick checks first

Before taking your laptop apart or attempting a total wipe, run these preliminary checks:

  • Drain Flea Power: Unplug all external devices (flash drives, external hard drives, mice). Hold the power button down for 20 seconds. Plug the power cable back in and power on.
  • Access HP System Diagnostics: Power off the device, press the power button, and immediately tap F2 repeatedly. Run a "System Fast Test" to rule out hardware failure right away.
  • Check BIOS Defaults: Restart and tap F10 to open BIOS. Press F9 to load defaults, then F10 to save and restart. Incorrect boot orders can trick the system into looping.

When it's a real repair

If running chkdsk throws I/O device errors, or if the HP F2 Diagnostics menu gives you a Hard Drive 1 Failure ID (e.g., 24-digit alpha-numeric code), your storage drive has physically failed or degraded beyond file recovery.

In this scenario, software repairs will not hold. You will need to physically open the laptop casing, replace the internal SSD or hard drive, and perform a clean installation of Windows using a bootable USB drive created via the Windows Media Creation Tool.

DIY vs professional repair

Replacing an M.2 NVMe SSD or 2.5-inch drive on most modern HP Pavilion, Envy, or EliteBook laptops is straightforward and well suited for DIY. You only need a small Phillips head screwdriver, a plastic pry tool, and a replacement drive. Step-by-step teardown guides for your specific model can be found under our /guides tab.

However, if the drive holds sensitive data that hasn't been backed up, repeatedly running recovery tools on a physically failing drive can cause permanent data loss. If you are uncomfortable handling hardware teardowns or recovering lost data, consider seeking technician assistance or utilizing mail-in support options through LML Experts.

Next steps

  • Follow our step-by-step installation walkthroughs in /guides to learn how to replace a laptop SSD and install a fresh copy of Windows.
  • If you suspect hardware failures other than the hard drive (such as bad RAM modules or motherboard power issues), browse similar device issues on /problems.
  • Read real repair feedback and tool recommendations from our community on /reviews before buying replacement hardware.

Next steps

Try the DIY guide if you're comfortable opening the device. Still stuck? Browse related problems for similar symptoms.

Related problems