Laptops · HP
HP Laptop Stuck In Preparing Automatic Repair
An HP laptop stuck in a continuous Preparing Automatic Repair loop usually signals corrupted boot files, an interrupted Windows update, or a failing storage drive. Learn how to break the restart loop, run hardware diagnostics, and recover your system safely.
Symptoms
- Laptop displays the HP logo and immediately enters 'Preparing Automatic Repair' without loading Windows
- Screen freezes on a black display or spinning dots after showing 'Diagnosing your PC'
- Endless reboot loop alternating between the HP splash screen and the blue repair window
- Screen displays 'Automatic Repair couldn't repair your PC' with Advanced Options
- Hard drive indicator light flickers endlessly or remains completely unlit while stuck
- Selecting 'Restart' in the recovery menu drops the laptop right back into the same repair loop
Quick troubleshooting
Step 1
Perform a hard power reset
Disconnect the AC charger and all external USB devices, memory cards, and dongles. Hold down the power button for 15 to 20 seconds to drain lingering residual power from the motherboard. Reconnect only the AC adapter and power on to check if Windows boots normally.
Step 2
Run HP Hardware System Diagnostics
Turn off the laptop, then turn it back on while immediately tapping the F2 key repeatedly until the HP PC Hardware Diagnostics UEFI menu opens. Run a Quick Test on both the System Memory and Storage Drive. If the drive test fails with a failure code (e.g., 24-digit ID or Smart Check error), the storage drive must be replaced.
Step 3
Rebuild boot files via Command Prompt
If hardware tests pass, allow the laptop to reach the 'Automatic Repair' screen, click Advanced Options, and navigate to Troubleshoot > Advanced Options > Command Prompt. Type `bootrec /fixmbr`, `bootrec /fixboot`, `bootrec /scanos`, and `bootrec /rebuildbcd`, pressing Enter after each command. Restart to test.
Step 4
Run System File Checker and Chkdsk
From the Command Prompt in Advanced Options, type `chkdsk c: /f /r` and press Enter to scan the storage drive for bad sectors and file errors. Follow up by running `sfc /scannow /offbootdir=c:\ /offwindir=c:\windows` to replace corrupted Windows system files before rebooting.
Step 5
Attempt a System Restore or Startup Repair
From the Advanced Options menu, select 'Startup Repair' to let Windows attempt an automated fix. If that fails, return to Advanced Options, choose 'System Restore', and select a restore point created prior to when the boot loop started.
Likely causes
- Corrupted Windows Boot Configuration Data (BCD) or boot loader files
- Interrupted Windows Update or forced shutdown while system files were writing
- Failing primary storage drive (SATA HDD, SSD, or M.2 NVMe drive developing bad sectors)
- Corrupted NTFS file system structure on the main operating system partition
- Incompatible driver update or malware corruption affecting critical system files
- Faulty or misseated System Memory (RAM) causing errors during initial boot load
What's going on
When Windows detects that an HP laptop failed to start correctly twice in a row, it automatically triggers the Built-in Automatic Repair environment. This utility is designed to scan core boot files, registry entries, and driver configurations to fix boot issues without user intervention.
However, if the underlying issue is severe—such as a corrupted Boot Configuration Data (BCD) store, corrupted system files from a interrupted Windows Update, or a physically degraded hard drive or SSD—the repair environment gets trapped in a loop. It keeps attempting to repair files it cannot access or write to, leading to the dreaded endless "Preparing Automatic Repair" screen.
Symptoms people notice
- The HP splash logo appears, followed immediately by "Preparing Automatic Repair" and a spinning circle that never progresses.
- The laptop restarts continuously every few minutes, flashing between a black screen and the HP startup screen.
- You are presented with a blue screen stating "Automatic Repair couldn't repair your PC" with options for Advanced Settings or Shutdown.
- Clicking "Continue to Windows 10/11" instantly restarts the laptop and returns to the exact same repair prompt.
- The laptop fan spins at high speed while stuck on a blank black screen during the diagnosis phase.
Likely causes
- Corrupted Boot Configuration Data (BCD): The bootloader files that tell the BIOS/UEFI where to find Windows have become missing or damaged.
- Failed Windows Update: An automated background update was interrupted by a dead battery, unexpected shutdown, or power loss, leaving system binaries in an incomplete state.
- Failing Storage Drive: Physical degradation of an M.2 NVMe SSD or bad sectors on an older SATA hard drive prevent Windows from reading essential system files.
- File System Corruption: Unclean shutdowns corrupt the NTFS partition structure, forcing Windows to attempt disk checks that fail to resolve automatically.
- Corrupted Drivers or System Software: A recent third-party driver update or bad software installation conflicts with critical early-launch boot drivers.
Quick checks first
Before diving into complex command-line prompts or opening up your laptop, perform these basic triage steps:
- Remove all peripherals: Unplug USB flash drives, external hard drives, printers, SD cards, and wireless mouse dongles. Sometimes Windows attempts to boot from connected USB storage media.
- Perform a hard reset: Disconnect the charger, press and hold the power button for 15 seconds to drain static electricity, then plug the power cable back in and power on.
- Verify BIOS settings: Restart the laptop and tap F10 repeatedly to enter the HP Computer Setup (BIOS). Ensure the boot order lists your internal OS drive first and check that Secure Boot is enabled if running Windows 10 or 11.
When it's a real repair
If software repairs fail and HP Hardware Diagnostics (accessed by tapping F2 at boot) returns errors like Smart Check Failed, Hard Drive Short DST Failed, or failure code 301/303, your internal storage drive has suffered physical or electronic failure.
At this stage, running boot repair commands will not resolve the issue because the drive can no longer reliably hold data. You will need to:
- Replace the faulty SATA hard drive or M.2 NVMe SSD with a new drive.
- Reinstall Windows using a bootable USB drive created via the Windows Media Creation Tool.
- Restore your personal files from a cloud or external backup (or attempt data recovery on the old drive using an external USB adapter enclosure).
If you need help choosing the correct replacement drive or step-by-step disassembly instructions for your specific model, explore our teardown /guides.
DIY vs professional repair
Resolving a boot loop is often a DIY-friendly project if the cause is purely software-related. Running command line syntax (bootrec, chkdsk, sfc) or reinstalling Windows costs nothing but your time.
Replacing a failed SSD on most modern HP laptops (like the Pavilion, Envy, or ProBook series) requires basic tools: a Phillips #00 screwdriver, a plastic prying tool, and a replacement M.2 SSD. Drive replacement usually takes under 30 minutes.
However, if the drive is healthy but the motherboard experiences hardware faults (like failed RAM soldered directly to the board or power rail issues), or if you have critical data on a dead drive that requires specialized recovery, consulting a hardware professional or reaching out through LML Experts can help prevent further data loss.
Next steps
- Run the HP Diagnostics tool (F2 key at startup) to isolate hardware problems from software issues.
- If hardware tests pass, follow our step-by-step command line repair instructions above using the Windows Recovery Environment.
- If hardware tests fail, check our repair /guides for opening your HP laptop model safely and replacing the internal storage drive.
- Browse real user experiences or post your specific error code in our /community for custom troubleshooting guidance, or check out /reviews to see recommended tools for DIY laptop maintenance.
Next steps
Try the DIY guide if you're comfortable opening the device. Still stuck? Browse related problems for similar symptoms.

