The SrtTrail.txt error is Windows telling on itself. When Automatic Repair fails, Windows saves a log of what it tried to C:\Windows\System32\Logfiles\Srt\SrtTrail.txt — and then shows you a blue screen naming that log file. On Lenovo laptops (ThinkPad, IdeaPad, Yoga, Legion), this loop almost always means Windows cannot complete the boot sequence and its own repair tool cannot figure out why.
The encouraging part: the log file is a symptom, not the disease. Deleting or renaming SrtTrail.txt does nothing — I mention this because it is the most common bad advice online. The real fixes target the boot files, disk errors, and drivers that are actually preventing startup. Work through them in order; most Lenovo machines are booting again by Fix 4.
Why this happens
- Corrupted Boot Configuration Data: the BCD store tells Windows where and how to boot. If it is damaged, every boot fails and Automatic Repair fails with it.
- Disk errors on the system drive: bad sectors or file-system corruption in the boot files produce exactly this loop, especially on older spinning drives and aging SSDs.
- A bad driver installed before the crash: Lenovo Vantage or Windows Update can install a storage or chipset driver that breaks the boot chain on the next restart.
- A Windows update gone wrong: an update that did not finish applying can leave the boot files in an inconsistent state.
- Changed BIOS settings: switching between UEFI and Legacy mode, or toggling Secure Boot, after Windows was installed breaks the boot path Windows expects.
- Failing storage hardware: if the SSD itself is dying, no amount of boot repair will hold — the errors keep coming back after every fix.
How to fix it
Work through these in order, from the quickest checks to the deeper repairs. Most people are back up and running by Fix 4 or 5.
Fix 1: Break the loop and open the recovery command prompt
Everything below runs from the recovery command prompt, so first get there reliably. Lenovo’s Novo button makes this easy.
- Power the laptop completely off. On most IdeaPad and Yoga models, press the Novo button (the small pinhole button beside the power button) with a paperclip; on ThinkPads, use the three-interrupted-boot method instead.
- Select System Recovery from the Novo menu, or let Automatic Repair appear on ThinkPads.
- Go to Advanced options > Troubleshoot > Advanced options > Command Prompt.
- If BitLocker prompts for a key, enter the 48-digit recovery key from your Microsoft account. Without it, offline repairs cannot access the drive.
- Keep this window open — Fixes 2 through 4 all run here. (The Safe Mode guide covers the interrupted-boot method if the Novo button is unresponsive.)
Fix 2: Rebuild the boot files with bootrec
This is the highest-success fix for SrtTrail.txt. It rewrites the master boot record and rebuilds the boot configuration from scratch.
- In the recovery command prompt, type
bootrec /fixmbrand press Enter. - Then
bootrec /fixboot. If it says Access is denied, do not panic — that is common on UEFI systems and Fix 3 handles it. - Then
bootrec /scanosto find Windows installations, followed bybootrec /rebuildbcd. - When asked Add installation to boot list?, type Y and press Enter.
- Type
exit, select Continue, and let the laptop restart. If Windows boots, you are done — skip to the prevention note in the Closing.
Fix 3: Fix the Access Denied error and rebuild via bcdboot
If bootrec /fixboot refused with Access Denied, the EFI partition needs manual attention. This is the workaround technicians use.
- In the command prompt, type
diskpartand press Enter, thenlist vol. - Find the FAT32 partition around 100–260 MB labeled EFI. Note its volume number, then type
select vol N(replace N) andassign letter=S:— thenexitdiskpart. - Run
bcdboot C:\windows /s S: /f UEFIto write fresh boot files to the EFI partition. (If Windows is on a different letter in recovery, check withdiskpart > list volfirst — it is sometimes D:.) - Run
bootrec /rebuildbcdonce more and answer Y to any prompt. - Exit and Continue to restart. This resolves the majority of Access Denied cases.
Fix 4: Check the disk and system files
If the boot files keep corrupting, the disk itself may be the problem. Scan it before rebuilding anything else.
- From the recovery command prompt, run
chkdsk C: /f /r. The/rflag finds bad sectors — expect this to take 30 minutes to a few hours on large drives. - When chkdsk finishes, run
sfc /scannow /offbootdir=C:\ /offwindir=C:\windowsto repair Windows system files against the offline image. - If SFC reports unfixable corruption, run
DISM /Image:C:\ /Cleanup-Image /RestoreHealthand then SFC once more. - Restart with Continue. If chkdsk found many bad sectors, back up your data immediately after booting — the drive is telling you it is on borrowed time.
- Lenovo’s own diagnostics can confirm a dying drive: Lenovo Support offers bootable diagnostics for ThinkPad, IdeaPad, and Legion models.
Fix 5: Disable Automatic Repair’s crash loop
Sometimes Automatic Repair itself is what keeps re-triggering. Disabling its auto-launch lets Windows show you the real error instead of looping.
- In the recovery command prompt, type
bcdedit /set {default} recoveryenabled Noand press Enter. - Type
exitand Continue. Windows will now attempt a normal boot instead of diving into repair. - If Windows boots, the loop is broken — but treat the underlying cause: update drivers via Lenovo Vantage and run Settings > Windows Update.
- If it still blue-screens, note the new stop code (it will no longer say SrtTrail.txt) and troubleshoot that code directly — the blue screen of death guide is the right next stop.
- To re-enable Automatic Repair later, run
bcdedit /set {default} recoveryenabled Yesfrom an elevated prompt.
Fix 6: Use System Restore from recovery
If the loop started after a driver or update, rolling the system back to before that change is often faster than manual repair.
- Go to Troubleshoot > Advanced options > System Restore.
- Choose a restore point dated before the SrtTrail.txt loop began.
- Let it complete — the laptop will restart several times. Do not interrupt it.
- After booting, open Lenovo Vantage and pause driver updates temporarily while you identify which one caused the crash.
- Then run Windows Update manually so you control what installs and when.
Fix 7: Reset Windows or check the hardware
When software repairs all fail, you are left with two possibilities: a deeply broken Windows install or a failing drive.
- Back up first: from the recovery command prompt you can copy critical files to a USB drive with
xcopyorrobocopybefore doing anything destructive. - Go to Troubleshoot > Reset this PC > Keep my files for a refresh that reinstalls Windows but preserves personal data.
- If the reset fails or the loop returns within days, suspect the SSD. Run Lenovo’s UEFI diagnostics (via the Novo button menu) and check the drive health result.
- A failing drive means replacement, not more repairs — and on most Lenovos an SSD swap is a straightforward job. For broader Windows recovery background, Microsoft’s Windows support hub documents every option in this menu.
Closing
SrtTrail.txt looks cryptic, but the fix path is well-trodden: rebuild the boot files, check the disk, and stop Automatic Repair from masking the real error. On Lenovo laptops the Novo button gets you into recovery with one press, which makes the whole process less painful than on machines where you have to time interrupted boots. And if the loop keeps returning after clean repairs, listen to what the hardware is telling you — a drive that keeps corrupting boot files is a drive asking to be replaced.
