Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix Boot Manager Compressed Error on Windows PC

· 5 min read · Home Tech

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

When Windows shows a black screen with the message "Boot Manager is compressed," it means the Boot Manager file (usually bootmgr or the BCD store) has been compressed, and Windows can no longer read it during startup. This often happens after a disk cleanup tool or a third-party utility compresses system files. The fix is to uncompress the Boot Manager files from the Windows Recovery Environment. In most cases, you can resolve this in about 10 minutes using the Command Prompt.

What You'll Need

  • A Windows installation media (USB or DVD) or access to the Windows Recovery Environment (WinRE). If you don't have installation media, you can create one on another PC using Microsoft's Media Creation Tool.
  • A working keyboard and mouse.
  • Basic familiarity with typing commands in Command Prompt.

Step-by-Step

  1. Boot into the Windows Recovery Environment. If you have installation media, insert it and restart your PC. Press any key when prompted to boot from the media. If you don't have media, restart your PC and press the F11 key (or the key your manufacturer specifies) to enter the recovery environment. Alternatively, if you see the Windows logo, you can force a shutdown three times to trigger automatic repair.
  2. Open Command Prompt. In the recovery environment, click Troubleshoot > Advanced options > Command Prompt. If you're using installation media, select your language, then click Repair your computer in the bottom-left corner, then follow the same path.
  3. Identify the system drive letter. In the Command Prompt, type diskpart and press Enter. Then type list volume and press Enter. Look for the volume with the label "System Reserved" or the one that is about 100-500 MB and has the "System" folder. Note its drive letter (e.g., C: or D:). Type exit and press Enter to leave DiskPart.
  4. Uncompress the Boot Manager files. Type the following command and press Enter, replacing X: with the actual drive letter you found in step 3:
    compact /u /a X:\bootmgr
    Then do the same for the BCD store and the boot folder. The BCD store is usually at X:\Boot\BCD. Run:
    compact /u /a X:\Boot\BCD
    If you see a message that the file is not compressed, that's fine—move on. Also uncompress the entire Boot folder recursively:
    compact /u /a /s:X:\Boot
  5. Uncompress the entire Windows directory (optional but recommended). To prevent future issues, uncompress all system files on the drive. Type:
    compact /u /a /s:X:\Windows
    This may take a few minutes. If you get an "Access denied" error, you may need to run the command as administrator—but in the recovery environment, you usually already have admin rights.
  6. Exit and restart. Type exit and press Enter to close Command Prompt. Click Continue or Turn off your PC, then restart normally. Windows should boot.

Common Mistakes

  • Using the wrong drive letter. The drive letter in the recovery environment is often not C:. Always verify with DiskPart before running commands.
  • Only uncompressing bootmgr. The BCD store and the Boot folder also need to be uncompressed. If you miss them, the error may persist or return.
  • Typing commands with spaces incorrectly. The compact command syntax is case-insensitive but spaces matter. For example, compact /u /a X:\bootmgr is correct; compact /u/a X:\bootmgr is not.
  • Forgetting to run as administrator. If you're in the normal Windows environment (not recovery), you must right-click Command Prompt and select "Run as administrator". The recovery environment already runs as admin.

Tips

  • If you have a UEFI system (most modern PCs), the Boot Manager files are on the EFI System Partition (ESP), which is usually hidden. In DiskPart, it may appear as a FAT32 volume with no drive letter. If so, assign a temporary letter: in DiskPart, select the volume and type assign letter=Z, then use Z: in the commands.
  • After fixing the error, you can re-enable compression for user data folders (like Documents) if you want to save space, but never compress system folders like Windows, Boot, or Program Files.
  • If you're not comfortable with the command line, you can also use a third-party boot repair tool, but the built-in method is safer and free.

Troubleshooting

If the error persists after following the steps, try these in order:

  1. Run Startup Repair. In the recovery environment, go to Troubleshoot > Advanced options > Startup Repair. This may fix any other boot configuration issues.
  2. Rebuild the BCD store. In Command Prompt, type the following commands one by one, pressing Enter after each:
    bootrec /fixmbr
    bootrec /fixboot
    bootrec /rebuildbcd
    When asked to add the installation to the boot list, type Y and press Enter.
  3. Check for disk errors. Run chkdsk X: /f /r (replace X: with your Windows drive). This will scan for and fix file system errors.
  4. If all else fails, perform a system restore. In the recovery environment, go to Troubleshoot > Advanced options > System Restore and choose a restore point from before the error occurred. This will not delete personal files, but it will remove recently installed programs and drivers.
  5. As a last resort, reset this PC. Go to Troubleshoot > Reset this PC. You can choose to keep your files, but this will reinstall Windows and remove installed applications. Make sure you have backups before doing this.

Frequently Asked Questions

Why did the Boot Manager get compressed in the first place?

Usually, a disk cleanup tool or a user accidentally compresses the system drive using File Explorer's "Compress this drive to save disk space" option. Some third-party utilities also do this automatically without asking.

Can I prevent this from happening again?

Yes. Never compress the system drive (usually C:) or any system folders. If you need to save space, use Disk Cleanup or uninstall unnecessary programs. Also, avoid using third-party disk compression tools on the Windows partition.

Is there a way to fix this without installation media?

Yes, if you can boot into the Windows Recovery Environment (WinRE) by pressing F11 or Shift+Restart from the login screen. If WinRE is also damaged, you'll need installation media or a recovery drive.

Will I lose my files if I run the compact command?

No. The compact command only changes the compression attribute of files; it does not delete or modify the content. Your files will remain intact.

What if the compact command says "The system cannot find the file specified"?

This means the path is incorrect. Double-check the drive letter and the file location. The bootmgr file is usually at the root of the system reserved partition, not the Windows partition. Use DiskPart to confirm the correct drive.

Can I use this method on Windows 7, 8, or 10?

Yes, the steps are the same for Windows 7, 8, 8.1, and 10. Windows 11 also uses the same BCD structure, so the commands work there as well.