When Automatic Repair fails, Windows leaves behind a log — SrtTrail.txt — and a blue screen. Most people never read the log; they just keep rebooting into the same failed repair. This guide takes the opposite approach: we’ll actually diagnose what’s broken, then fix that specific thing.
If you want the fastest path without the detective work, our quick-fix guide covers the highest-probability repair sequence. This page is for when that didn’t work, or when you want to understand what’s actually wrong before acting.
Why this happens
- Corrupted BCD or boot files: The boot configuration or winload.exe is damaged; repair can’t rebuild what it can’t read.
- Disk-level corruption: Bad sectors or file system damage in exactly the wrong place — the boot partition.
- Failed Windows update: Half-applied update with mismatched boot components.
- Incompatible driver installed pre-failure: A driver update (often storage or chipset) that prevents the kernel from loading.
- Registry hive damage: Corrupted SYSTEM hive preventing boot configuration from loading.
- Hardware degradation: SSD/HDD developing faults that corrupt boot-critical reads.
How to fix it
Work through these in order — diagnose first, then treat.
Fix 1: Read the actual SrtTrail.txt log
The log sometimes tells you exactly what failed. Don’t skip this. Even when the log is vague, the pattern of attempts — which tests ran, which failed, how far boot got — narrows the field considerably. Five minutes of reading beats an hour of blind repair.
- On the blue screen, click Advanced options > Troubleshoot > Advanced options > Command Prompt.
- Type
notepad.exeand press Enter. In Notepad, go to File > Open, change the file type to All Files, and navigate toC:\Windows\System32\Logfiles\Srt\SrtTrail.txt(in WinRE the drive letter may differ — browse to find Windows). - Scroll to the bottom for the most recent session. Look for lines like “Boot critical file … is corrupt” (names the file), “Root cause found” entries, or disk test failures.
- Note anything specific — a named corrupt file or a failed disk test directs your next steps precisely.
Fix 2: Map the failure to its category
Based on the log and symptoms:
- Named corrupt boot file (winload.exe, ntoskrnl.exe) → Fix 3 (BCD rebuild) and Fix 5 (SFC offline).
- Disk test failures in the log → Fix 4 (chkdsk) and prepare for possible drive replacement.
- Failure started after an update → Fix 6 (uninstall updates).
- No useful detail / generic failure → work Fix 3 through Fix 5 in order.
- Machine was slow/crashing before this → suspect the drive (Fix 4 + SMART check).
- Stop code is INACCESSIBLE_BOOT_DEVICE → see our inaccessible boot device fix for the targeted repair.
Fix 3: Rebuild boot configuration data
The most common root cause deserves the thorough treatment.
- In WinRE Command Prompt:
bootrec /fixmbr. bootrec /fixboot— on “Access is denied,” do the diskpart routine:diskpart>list vol>sel vol <EFI>>assign letter=S:>exit, thenbcdboot C:\Windows /s S: /f UEFI(confirm C: is Windows withdir C:).bootrec /scanos, thenbootrec /rebuildbcd— answer Y to add installations.- Additionally, rebuild the BCD store manually if rebuildbcd finds nothing:
ren C:\boot\bcd bcd.old(legacy) or recreate via bcdboot as above. exitand restart.
Fix 4: Deep disk check and SMART evaluation
When the log mentions disk tests or the failure smells like storage, verify the disk thoroughly before rebuilding anything on top of it — repairs built on a failing drive don’t stick.
- Identify the Windows drive letter in WinRE (
diskpart>list vol). - Run
chkdsk <letter>: /r— full surface scan. On a 512GB+ drive this can take over an hour; let it finish. - Boot your manufacturer’s diagnostics (Dell F12 > Diagnostics, HP Esc > F2, Lenovo F10) and run the drive’s SMART/short test.
- If SMART shows reallocated sectors growing or the drive fails tests, clone/back up immediately — you’re on borrowed time. No software fix overcomes a dying drive.
Fix 5: Offline SFC and DISM repair
For corrupted system files the log named (or general corruption):
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows(adjust letter).- If SFC can’t repair:
DISM /Image:C:\ /Cleanup-Image /RestoreHealth. - For update-damaged systems, also try removing pending update operations:
dism /Image:C:\ /Cleanup-Image /RevertPendingActions— this undoes a half-applied update that may be the whole problem. - Restart and test.
Fix 6: Uninstall recent updates and drivers
- Troubleshoot > Advanced options > Uninstall Updates — remove the latest quality update, test; then the feature update if needed.
- In Command Prompt, list third-party drivers:
dism /Image:C:\ /Get-Drivers. - Remove recently added suspects:
dism /Image:C:\ /Remove-Driver /Driver:oem<N>.inf. - Restart and test.
Fix 7: Restore the registry hives from backup
If the log hints at registry/hive problems:
- In WinRE Command Prompt, navigate to
C:\Windows\System32\config. - Windows keeps automatic registry backups in
C:\Windows\System32\config\RegBack(may be empty/0-byte on newer builds — check first withdir). - If backups exist and are non-zero, back up the current hives (
copy SYSTEM SYSTEM.badetc.), then copy the RegBack versions over. - Restart and test. If RegBack is empty, skip to Fix 8.
Fix 8: Reset with file preservation, then clean install if needed
- Troubleshoot > Reset this PC > Keep my files > Local reinstall.
- If the reset itself fails (it needs a working recovery image), boot from USB media created with the Windows 11 download tool
and do a clean install after backing up files via the Command Prompt (
xcopyorrobocopyto an external drive).
Closing
The SrtTrail.txt log is more useful than its reputation suggests — a named corrupt file or a failed disk test in that log can save you an hour of blind troubleshooting. But even without log details, the diagnostic order here (boot files → disk → system files → updates/drivers → registry → reset) converges on the cause efficiently. If you’ve reached Fix 8 and the drive checks out healthy, a clean install from USB media gives you a known-good baseline; just make sure your files are backed up first. Save a copy of the SrtTrail.txt log somewhere safe before you start fixing — if you end up needing professional help or a warranty claim, that log is documentation of exactly what failed and when.
