The SrtTrail.txt message is Windows telling you its automatic repair gave up. You’ll see “Automatic Repair couldn’t repair your PC” with a log file path pointing at C:\Windows\System32\LogFiles\Srt\SrtTrail.txt — and then every reboot lands you back on the same screen. It’s a loop, and the way out is to fix the boot problem by hand.
The good news: the underlying causes are few and well-understood — a damaged boot configuration, corrupt system files, a bad update, or disk errors. Work through them in order and the loop breaks.
Why this happens
- Corrupted Boot Configuration Data (BCD): The BCD tells Windows how to start. Failed updates, partitioning tools, or disk errors damage it, and Automatic Repair often can’t rebuild it on its own.
- Corrupt system files in the boot path: Damage to the kernel or boot drivers means Windows can’t finish starting no matter how many times repair tries.
- A Windows update that broke the boot: Interrupted or buggy updates leave boot files mismatched — the classic trigger for landing in Automatic Repair.
- Disk errors or a failing drive: Bad sectors in the system partition corrupt boot files as they’re read. Loops that appear gradually and get worse point here.
- Recently installed incompatible drivers: A storage or chipset driver that loads at boot and crashes immediately will send every boot into recovery.
- Damaged EFI system partition: On UEFI systems, corruption in the small EFI partition breaks the boot chain before Windows even starts loading.
How to fix it
Work through these in order — each targets one layer of the boot process.
Fix 1: Break the loop and reach Advanced options
You need the recovery menu, not another Automatic Repair attempt.
- On the “Automatic Repair couldn’t repair your PC” screen, click Advanced options (not Restart — Restart just loops again).
- If you only see a blue screen without that button, force WinRE: power off during the Windows logo three times in a row; the fourth boot enters recovery.
- Choose Troubleshoot > Advanced options. Everything below starts from here.
Fix 2: Try Startup Repair once more, properly
It failed before, but run it once from the menu while you’re here — occasionally it succeeds on a second attempt after a clean boot into WinRE.
- Select Startup Repair, choose your account, enter your password.
- Let it run fully (5–15 minutes). If it fails again, continue — the manual steps below do what it can’t.
Fix 3: Rebuild the BCD and boot files
The highest-success manual fix for this loop. Takes two minutes.
- From Advanced options, open Command Prompt.
- Run these commands in order:
bootrec /fixmbrbootrec /fixbootbootrec /scanosbootrec /rebuildbcd
- If
bootrec /fixbootreturns “Access denied,” runbootsect /nt60 sysfirst, then retry. - When
rebuildbcdfinds your Windows installation, type Y to add it to the boot list. - For UEFI systems, if the above doesn’t work, try the EFI rebuild:
diskpart>list volume— find the FAT32 EFI partition, note its letter (assign one withassign letter=Z:if needed), thenexitbcdboot C:\Windows /s Z: /f UEFI(adjustC:to your Windows drive)
- Type
exitand choose Continue to reboot.
Fix 4: Run SFC and CHKDSK offline from recovery
Corrupt files and disk errors are the next layer down.
- From Advanced options > Command Prompt, find your Windows drive letter: run
diskpart,list volume,exit— in WinRE it’s oftenD:orE:. - Run
sfc /scannow /offbootdir=D:\ /offwindir=D:\Windows(use your actual letter). - Then run
chkdsk D: /f /rto find and repair disk errors. The/rpass takes a long time on big drives — let it finish. - Restart and test.
Fix 5: Uninstall the latest quality or feature update
If the loop started right after an update, remove it from recovery.
- From Advanced options, choose Uninstall Updates.
- Try Uninstall latest quality update first — it’s the smaller, safer removal.
- If the loop persists, go back and try Uninstall latest feature update.
- Restart after each uninstall to test.
The 24H2 SrtTrail.txt guide has build-specific notes if you’re on that version.
Fix 6: Use System Restore to roll back
A restore point from before the loop began undoes whatever broke the boot.
- From Advanced options > System Restore, pick a restore point dated before the problem started.
- Confirm and let it run — it reverts system files, drivers, and registry without touching personal files.
- If no restore points exist, continue to Fix 7. (After you’re back up, turn System Protection on — future-you will be grateful.)
Fix 7: Repair install or reset as the last resort
When the boot damage is too deep for targeted repair, reinstall Windows over itself.
- On another PC, create Windows 11 installation media from Microsoft’s download page .
- Boot your laptop from the USB, choose your language, then click Repair your computer (bottom-left) — not Install.
- From there you get the same Advanced options; if you haven’t tried them from this media yet, do so — sometimes fresh media succeeds where the onboard recovery fails.
- As the final option: Troubleshoot > Reset this PC > Keep my files. This reinstalls Windows, removes apps and drivers, but preserves personal files.
If you’re on a Lenovo and the loop keeps returning after these fixes, the Lenovo automatic repair loop guide covers model-specific quirks.
Closing
SrtTrail.txt isn’t the problem — it’s the autopsy report. The problem is whatever broke your boot, and for most people it’s a damaged BCD (Fix 3) or corrupt system files (Fix 4). Those two fixes resolve the large majority of these loops in under an hour, with files intact. Save the reset for last, turn on System Protection once you’re back in, and the next boot failure will be a five-minute restore instead of a crisis.
