0% found this document useful (0 votes)
34 views

Use bcdboot Command

BCD Boot Command

Uploaded by

maniv
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

Use bcdboot Command

BCD Boot Command

Uploaded by

maniv
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

The "Access Denied" error when running the `bootrec /fixboot` command is a common

issue, especially in systems using UEFI and GPT (GUID Partition Table). This problem often
occurs in Windows 10 and 11, and it's related to the EFI (Extensible Firmware Interface)
partition, which is responsible for booting the system.

Here’s how to resolve the **Access Denied** issue with the `bootrec /fixboot` command:

### Solution 1: Use `bcdboot` Command

Sometimes, rather than fixing the boot sector directly with `bootrec /fixboot`, you can use
the `bcdboot` command to repair or rebuild the boot files.

1. **Boot into Recovery Environment:**


- Boot your system using a Windows installation media (USB or DVD).
- Click on **Repair your computer** and then choose **Troubleshoot** > **Advanced
options** > **Command Prompt**.

2. **Rebuild Boot Configuration:**


- Run the following command to rebuild the boot configuration on the EFI partition:
```bash
bcdboot C:\Windows /s X: /f UEFI
```
- Replace **X:** with the drive letter corresponding to the EFI partition, which can be
found using the `diskpart` command as explained below.

3. **Check EFI Partition Drive Letter:**


- If you're not sure about the EFI partition drive letter, do the following to assign a drive
letter to it:
- Type `diskpart` and press Enter.
- Type `list disk` to find your system disk (usually Disk 0).
- Type `sel disk 0` (replace `0` with the number of your system disk).
- Type `list vol` to list all volumes.
- Look for the volume labeled **EFI** or **System** (usually FAT32 format).
- Type `sel vol X` (replace **X** with the number of the EFI volume).
- Type `assign letter=Z` (replace **Z** with any available letter to assign to the EFI
partition).
- Exit `diskpart` by typing `exit`.

4. **Re-run the bcdboot Command:**


- Once you know the EFI partition's drive letter, rerun the `bcdboot` command, adjusting
the drive letters accordingly:
```bash
bcdboot C:\Windows /s Z: /f UEFI
```
- This command will copy the necessary boot files to the EFI partition.

5. **Restart your computer** to check if the issue is resolved.

### Solution 2: Manually Fix the EFI Partition (If Solution 1 Fails)
If the issue persists, you can manually recreate the EFI partition and fix the boot files:

1. **Boot into Recovery Environment:**


- Boot your system using a Windows installation media (USB or DVD).
- Choose **Repair your computer** and then select **Troubleshoot** > **Advanced
options** > **Command Prompt**.

2. **Use `diskpart` to Locate the EFI Partition:**


- Type `diskpart` to open the disk partition tool.
- Type `list disk` and identify the system disk (usually Disk 0).
- Select the system disk by typing `sel disk 0` (replace `0` with the correct disk number).
- Type `list vol` to display the volumes.
- Identify the **EFI partition** (it’s usually labeled as FAT32 and has a small size, around
100MB-500MB).

3. **Format the EFI Partition:**


- Type `sel vol X` (replace **X** with the EFI volume number).
- Type `format fs=fat32 quick` to format the partition.

4. **Assign a Drive Letter:**


- Type `assign letter=Z` to assign the EFI partition a drive letter (or use another letter if `Z`
is taken).

5. **Rebuild the Boot Files:**


- Now, use the `bcdboot` command to rebuild the boot files:
```bash
bcdboot C:\Windows /s Z: /f UEFI
```

6. **Exit and Reboot:**


- Type `exit` to leave diskpart, close the command prompt, and restart your system.

### Solution 3: Use the Bootable Partition Repair Tool

If manual methods fail or you're uncomfortable using the command line, you can use third-
party tools like **EaseUS Partition Master** or **AOMEI Partition Assistant**. These tools
provide graphical interfaces to repair boot partitions.

### Why the Error Happens:


- **UEFI Systems:** On UEFI systems, the boot files are located on a special **EFI
partition** rather than the traditional Master Boot Record (MBR) and boot sectors, which is
where `bootrec /fixboot` would typically work. If the partition is corrupted or not properly
recognized, the command can fail.
- **Permissions:** Sometimes, Windows has locked down access to the EFI partition,
preventing modifications, even in the recovery environment.

Using these steps should help resolve the access denied issue with `bootrec /fixboot` and
restore your system's boot functionality.

You might also like