TechBuzzPro

Fix Bootrec /FixBoot Access Denied on Windows

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The "Access is denied" error when running bootrec /fixboot means the Windows Recovery Environment (WinRE) cannot write to the system partition — usually because the partition is formatted with a filesystem or flag that the command does not expect, or because the boot configuration is pointing at the wrong volume. The fix is to identify the correct EFI or system partition, assign it a drive letter, and either format it as FAT32 (for UEFI systems) or repair the boot files manually with bcdboot. Before you start, back up any important data if the drive is still readable, and have a Windows installation USB handy — you will need it to boot into WinRE.

What You'll Need

  • A Windows installation USB or recovery drive (8 GB or larger).
  • The PC that shows the error, with access to the UEFI/BIOS settings to change the boot order.
  • A working keyboard (and mouse if available) for the recovery environment.
  • Patience — you may need to repeat a few commands to confirm the right partition.

Step-by-Step

  1. Boot into the Windows Recovery Environment. Insert the installation USB, restart the PC, and enter the boot menu (often F12, F11, Esc, or Del — the exact key varies by manufacturer). Select the USB drive. On the Windows Setup screen, choose your language and click Next, then click Repair your computer (do not click Install now).
  2. Open Command Prompt. From the recovery menu, go to Troubleshoot > Advanced options > Command Prompt. Menu labels can differ slightly between Windows versions and device manufacturers.
  3. Identify the system and EFI partitions. Type diskpart and press Enter. Then type list disk, select disk 0 (replace 0 with your system disk number), list partition, and list volume. Look for a small FAT32 partition (usually 100–500 MB) labelled System or EFI, and note its volume number. Type exit to leave DiskPart.
  4. Assign a drive letter to the EFI/system partition. Back in the main Command Prompt, type diskpart again, then select volume X (where X is the volume number of the small FAT32 partition), then assign letter=Z (use any unused letter). Type exit.
  5. Check the partition's filesystem. Type dir Z:\ to confirm you can see files such as EFI or Boot. If the partition is not FAT32 (for example, it is NTFS or unformatted), you will need to format it — but only after confirming it is the correct EFI partition. For UEFI systems, type format Z: /FS:FAT32. Warning: formatting deletes everything on that partition; it should contain only boot files, but double-check the volume size and label first.
  6. Write the boot files manually. Type bcdboot C:\Windows /s Z: /f UEFI (replace C: with the drive letter of your Windows installation — usually C: in WinRE, but verify with dir C:\). This copies the boot manager and BCD store to the EFI partition. If you are on a legacy BIOS/MBR system, use bcdboot C:\Windows /s Z: /f BIOS instead.
  7. Rebuild the BCD store (optional but recommended). Type bootrec /rebuildbcd. If it finds Windows installations, press Y to add them. If it reports zero installations, continue to the next step.
  8. Remove the drive letter and reboot. Type diskpart, select volume Z, remove letter=Z, exit. Then type exit again to close Command Prompt, choose Continue or restart the PC, and remove the USB drive when prompted.

Common Mistakes

  • Formatting the wrong partition. Always verify the volume size and label before running format. Formatting your Windows partition will destroy your data.
  • Using the wrong drive letter for Windows. In WinRE, your Windows drive may not be C:. Run dir C:\, dir D:\, etc., until you find the folder containing Windows.
  • Running bootrec /fixboot on a UEFI system without first fixing the EFI partition. The command often fails with "Access is denied" on UEFI because it expects a BIOS-style boot sector. Use bcdboot instead.
  • Forgetting to remove the assigned drive letter. Leaving a letter on the EFI partition can cause confusion later; remove it before rebooting.
  • Skipping the backup. If the drive has important files, copy them off before making partition changes.

Tips

  • If diskpart shows multiple small partitions, the EFI one is usually FAT32 and around 100 MB; the recovery partition is often NTFS and several hundred MB.
  • You can run bootrec /scanos before /rebuildbcd to see if Windows is detected.
  • On some systems, the EFI partition is hidden and has no letter; assigning one temporarily is safe as long as you remove it afterwards.
  • If you are unsure whether your PC uses UEFI or BIOS, check the Disk Management layout: UEFI systems have an EFI System Partition; BIOS systems have a small "System Reserved" partition.

Troubleshooting

  • "Access is denied" persists after bcdboot. Re-check that you assigned the letter to the correct FAT32 partition and that it is not write-protected. Run diskpart > select volume Z > attributes volume clear readonly.
  • bcdboot fails with "Failure when attempting to copy boot files". The target partition may be too small or not FAT32. Reformat it as FAT32 and try again.
  • PC still does not boot. Run bootrec /fixmbr and bootrec /fixboot (on BIOS systems) or repeat the bcdboot step. If nothing works, consider a repair upgrade or reset — but back up data first.
  • Cannot see the EFI partition in DiskPart. It may be hidden; use list volume instead of list partition to see all volumes.

Frequently Asked Questions

Why does bootrec /fixboot say "Access is denied"?

It typically happens on UEFI systems because the command tries to write a BIOS-style boot sector to a FAT32 EFI partition, which Windows protects. The fix is to use bcdboot to rewrite the boot files instead.

Can I run these commands from a normal Windows session?

No — you need to be in the Windows Recovery Environment (WinRE) or booted from installation media, because the system partition is locked while Windows is running.

Will formatting the EFI partition delete my files?

It deletes only the boot files on that small partition, not your personal files on the Windows drive. However, always double-check you have selected the correct volume before formatting.

What if bcdboot cannot find my Windows installation?

Make sure you are using the correct drive letter for the Windows folder. In WinRE, it may be D: or E: instead of C:. Use dir to locate the Windows directory.

Do I need to run bootrec /fixboot after bcdboot?

Not usually. bcdboot creates the boot files directly; bootrec /fixboot is mainly for legacy BIOS systems. Running it on UEFI may still give "Access is denied", which is expected.

Is it safe to assign a drive letter to the EFI partition?

Yes, temporarily. Just remember to remove the letter with diskpart before rebooting to avoid drive letter conflicts.