My Windows 10 machine developed a weird quirk: it spontaneously restarts during boot-up, right after the spinning dots appear and before the login screen. It freezes, mouse disappears, and then restarts. This happened after a normal work session; I had to hard reset, and now it’s stuck in a boot loop.
What I’ve Tried
Last Known Good Configuration, Safe Mode – same issue.
Boot logging – no ntbtlog.txt generated.
Hardware removal: only motherboard, CPU, one RAM stick, and GPU connected – still restarts.
Disabled boot services via Recovery Console – disabling all except ATAPI caused a STOP error about missing atapi.sy. So ATAPI is required but maybe related.
Why This Time?
I previously fixed this by reinstalling Windows, but it came back. I want to find the root cause.
Windows Preinstallation Environment is a lightweight version of Windows used for the deployment of PCs, workstations, and servers, or troubleshooting an operating system while it is offline. It is intended to replace MS-DOS boot disks and can be booted via USB flash drive, PXE, iPXE, CD, DVD, or hard drive. Traditionally used by large corporations and OEMs, it is now widely available free of charge via Windows Assessment and Deployment Kit (WADK). — Read more on Wikipedia
Software-wise, a corrupt system file or driver could be the culprit. Since you already tried boot logging without success, let’s step up:
Automatic Repair: Boot from a Windows installation USB, select “Repair your computer” → “Troubleshoot” → “Advanced options” → “Startup Repair”. This can fix bootloader issues.
System File Checker: From the Recovery Environment, open Command Prompt and run sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows. Replace C: with your system drive.
DISM: If SFC finds issues, run DISM /Image:C:\ /Cleanup-Image /RestoreHealth (point to a valid Windows install.wim if needed).
Check Disk: Run chkdsk C: /f from the recovery console to fix file system errors.
Boot Configuration Data (BCD): Use bootrec /fixmbr, bootrec /fixboot, bootrec /rebuildbcd. If BCD is corrupt, this often helps.
If none work, a repair install (in-place upgrade) might be less destructive than a full reinstall. But first, rule out hardware with the tests above.