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.

  1. 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.
  2. Select System Recovery from the Novo menu, or let Automatic Repair appear on ThinkPads.
  3. Go to Advanced options > Troubleshoot > Advanced options > Command Prompt.
  4. If BitLocker prompts for a key, enter the 48-digit recovery key from your Microsoft account. Without it, offline repairs cannot access the drive.
  5. 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.

  1. In the recovery command prompt, type bootrec /fixmbr and press Enter.
  2. Then bootrec /fixboot. If it says Access is denied, do not panic — that is common on UEFI systems and Fix 3 handles it.
  3. Then bootrec /scanos to find Windows installations, followed by bootrec /rebuildbcd.
  4. When asked Add installation to boot list?, type Y and press Enter.
  5. 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.

  1. In the command prompt, type diskpart and press Enter, then list vol.
  2. Find the FAT32 partition around 100–260 MB labeled EFI. Note its volume number, then type select vol N (replace N) and assign letter=S: — then exit diskpart.
  3. Run bcdboot C:\windows /s S: /f UEFI to write fresh boot files to the EFI partition. (If Windows is on a different letter in recovery, check with diskpart > list vol first — it is sometimes D:.)
  4. Run bootrec /rebuildbcd once more and answer Y to any prompt.
  5. 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.

  1. From the recovery command prompt, run chkdsk C: /f /r. The /r flag finds bad sectors — expect this to take 30 minutes to a few hours on large drives.
  2. When chkdsk finishes, run sfc /scannow /offbootdir=C:\ /offwindir=C:\windows to repair Windows system files against the offline image.
  3. If SFC reports unfixable corruption, run DISM /Image:C:\ /Cleanup-Image /RestoreHealth and then SFC once more.
  4. 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.
  5. 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.

  1. In the recovery command prompt, type bcdedit /set {default} recoveryenabled No and press Enter.
  2. Type exit and Continue. Windows will now attempt a normal boot instead of diving into repair.
  3. If Windows boots, the loop is broken — but treat the underlying cause: update drivers via Lenovo Vantage and run Settings > Windows Update.
  4. 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.
  5. To re-enable Automatic Repair later, run bcdedit /set {default} recoveryenabled Yes from 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.

  1. Go to Troubleshoot > Advanced options > System Restore.
  2. Choose a restore point dated before the SrtTrail.txt loop began.
  3. Let it complete — the laptop will restart several times. Do not interrupt it.
  4. After booting, open Lenovo Vantage and pause driver updates temporarily while you identify which one caused the crash.
  5. 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.

  1. Back up first: from the recovery command prompt you can copy critical files to a USB drive with xcopy or robocopy before doing anything destructive.
  2. Go to Troubleshoot > Reset this PC > Keep my files for a refresh that reinstalls Windows but preserves personal data.
  3. 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.
  4. 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.

Frequently asked questions

What is the SrtTrail.txt file, exactly?
It is a log file Windows Automatic Repair writes to C:\Windows\System32\Logfiles\Srt\SrtTrail.txt, recording everything the repair attempted. The blue screen names it because the repair failed — the file is the messenger, not the cause. Reading it rarely helps; fixing the boot files does.
Should I delete the SrtTrail.txt file?
No. Deleting it changes nothing because Windows recreates it on the next failed repair, and the underlying boot problem remains untouched. It is one of the most repeated useless tips for this error. Focus on bootrec, chkdsk, and the BCD rebuild above instead.
How do I get the BitLocker key if recovery asks for one?
Sign in to your Microsoft account on another device and look under Devices for the recovery key, or check any printout or USB backup you made when encryption was enabled. Lenovo laptops with a Microsoft account login usually escrow the key automatically.
The loop keeps coming back every few weeks. Why?
Recurring SrtTrail.txt loops point to hardware — usually an SSD developing bad blocks — or a driver that keeps reinstalling itself via Windows Update. Check the drive health with Lenovo diagnostics, and use the show/hide updates tool to block the specific driver update that triggers it.