Fix Windows Backup Failed to Get an Exclusive Lock on ESP
In this article
Windows Backup can fail with the error “Failed to get an exclusive lock on ESP” when it cannot access the EFI System Partition (ESP). This usually happens because another process, a third-party backup tool, or a disk management utility is holding the partition open. The quickest fix is to close all disk tools, restart the Windows Backup service, and retry. If that fails, you may need to temporarily disable third-party antivirus or use Diskpart to clean up stale locks. Below is a step-by-step guide to resolve this reliably.
What You'll Need
- Administrator access on the Windows PC
- Your normal Windows login password (if you use one)
- Optional: a separate backup drive with enough free space (if you plan to retry the backup immediately)
Step-by-Step
- Close all disk-related programs. Exit any open File Explorer windows, disk partitioning tools (like MiniTool Partition Wizard, EaseUS Partition Master), third-party backup software, and disk cleanup utilities. Also close any app that might be scanning drives, such as antivirus full scans or defragmentation tools.
- Restart the Windows Backup service. Press Win + R, type
services.msc, and press Enter. Find Windows Backup (or “Block Level Backup Engine Service” on older versions). Right-click it and choose Restart. If the service is not running, right-click and select Start. - Reboot the PC. A clean restart clears any temporary file handles that may be locking the ESP. Save your work and choose Restart from the Start menu.
- Run Windows Backup again. After reboot, open Settings > Update & Security > Backup (or Control Panel > Backup and Restore (Windows 7) on older systems) and start the backup normally. If it succeeds, you’re done.
- If the error persists, disable third-party antivirus temporarily. Open your antivirus app (e.g., Norton, McAfee, Bitdefender) and look for a “Pause protection” or “Disable” option. Do this only for a few minutes while you run the backup. Re-enable it immediately after.
- Use Diskpart to check for hidden locks (advanced). Open Command Prompt as Administrator (right-click Start > Command Prompt (Admin) or Windows PowerShell (Admin)). Type
diskpartand press Enter. Then typelist diskand press Enter. Identify the disk that contains the ESP (usually Disk 0). Typeselect disk 0(replace 0 with your disk number) and press Enter. Then typelist partitionand press Enter. Find the partition labeled “System” (usually 100–500 MB, type EFI). Typeselect partition X(replace X with the partition number) and press Enter. Finally, typedetail partitionto see if it reports any active handle or lock. If it shows “No” under “Active,” the lock is not from Diskpart—exit withexit. If it shows “Yes,” you can trycleanbut only if you are absolutely sure this is the ESP and you have a full system image backup—this will erase the partition and make the PC unbootable. Do not do this unless you are certain and have a recovery plan. - Run System File Checker. In the same Administrator Command Prompt, type
sfc /scannowand press Enter. Let it complete. This repairs corrupted system files that might interfere with backup. - Check disk for errors. In the same Command Prompt, type
chkdsk C: /f(replace C: with your system drive letter) and press Enter. You may need to schedule it for next reboot—type Y and restart. This can fix file system issues that cause locks. - Recreate the backup task. If the error still appears, go to Settings > Update & Security > Backup, click “More options,” then scroll down and click “Stop using the drive.” Then re-add the backup drive and start a new backup. This resets the backup configuration.
Common Mistakes
- Running backup while a disk check is scheduled. If chkdsk is pending, Windows may lock the ESP. Always reboot to complete chkdsk before starting backup.
- Using third-party partition tools in the background. Even if closed, some tools leave background services running. Check Task Manager (Ctrl+Shift+Esc) and end any process related to partition managers or backup software.
- Not restarting the Windows Backup service. A stuck service can hold the lock indefinitely. Always restart it before retrying.
- Disabling antivirus and forgetting to re-enable it. This leaves your PC vulnerable. Set a reminder or re-enable immediately after the backup.
Tips
- Run Windows Backup at a time when no other disk-intensive tasks are happening, such as during the night.
- If you use a third-party backup tool, uninstall it temporarily to see if it’s the cause. You can reinstall it later.
- Keep your Windows system files updated. Run Windows Update regularly to avoid bugs that cause lock issues.
- If you have BitLocker enabled, ensure the ESP is not encrypted—it normally isn’t, but a misconfiguration can cause locks. Check in BitLocker management.
Troubleshooting
If the above steps don’t work, try these in order:
- Check for pending updates. Go to Settings > Update & Security > Windows Update and install all pending updates. Reboot and retry.
- Run a clean boot. Press Win + R, type
msconfig, and go to the Services tab. Check “Hide all Microsoft services,” then click “Disable all.” Go to the Startup tab and click “Open Task Manager,” then disable all startup items. Reboot and try backup. If it works, re-enable services and startup items one by one to find the culprit. - Use the Windows Backup command-line tool. Open Command Prompt as Administrator and run
wbadmin start backup -backupTarget:E: -include:C: -allCritical -quiet(replace E: with your backup drive letter). This bypasses the GUI and may avoid the lock. - Check the Event Viewer for more details. Press Win + X and select Event Viewer. Go to Windows Logs > Application and look for errors from “Backup” or “Windows Backup” around the time of failure. The error message may point to a specific file or service.
- As a last resort, use Diskpart to assign a drive letter to the ESP temporarily. In Administrator Command Prompt, run
diskpart, thenlist disk,select disk 0,list partition,select partition X(the ESP), thenassign letter=Z. Then runsfc /scannowagain. After that, remove the letter withremove letter=Zand exit. This forces Windows to re-evaluate the partition. Do not write to the ESP manually.
Frequently Asked Questions
What is the ESP?
The EFI System Partition is a small (usually 100–500 MB) partition on your system disk that stores boot files for Windows. Windows Backup needs to read it to create a system image.
Why does Windows need an exclusive lock on it?
To create a consistent backup, Windows locks the partition so no other process can write to it during the backup. If another process holds it open, Windows can’t get the lock.
Can I just delete the ESP to fix this?
No. Deleting the ESP will make your PC unbootable. Only do that if you have a full system image and know how to recreate the boot files.
Will this error damage my files?
No. The error only stops the backup from completing. It does not affect your existing files or the ESP contents.
Does this happen on Windows 10 and Windows 11?
Yes, both can show this error. The steps above work for both, though some menu names differ slightly.
Can I use a third-party backup tool instead?
Yes, but the error may be caused by the third-party tool itself. If you switch, uninstall the old tool first and reboot.