Repair EFI Boot Using Diskpart in Windows 10/11

Summary

  • Open Command Prompt as an administrator
  • Use Diskpart to select and assign a drive letter to the EFI partition
  • Use Startup Repair or boot repair commands to fix boot issues
  • Verify and select the correct partitions and volumes for repairing the EFI boot

In this article, I will discuss how to repair EFI boot using Diskpart in Windows 10/11.

Overview of Boot Management

To repair the EFI boot using Diskpart in Windows 10/11, follow these steps:

First, open Command Prompt as an administrator by searching for it in the Start menu and selecting “Run as administrator.”

Next, type “diskpart” in the Command Prompt window and press Enter to open the Diskpart tool.

Then, type “list disk” to display a list of all the disks connected to your computer.

Identify the disk where the EFI partition is located and note its number.

After that, type “select disk X” (replace X with the number of the disk where the EFI partition is located) to select the disk.

Now, type “list partition” to display a list of all partitions on the selected disk.

Identify the EFI partition and note its number.

Finally, type “select partition Y” (replace Y with the number of the EFI partition) and “assign letter=Z” (replace Z with a letter not already in use) to assign a drive letter to the EFI partition.

These steps will help you repair the EFI boot using Diskpart in Windows 10/11 efficiently.

Booting Up from Installation Media

Step Description
1 Insert your Windows installation media (USB or DVD).
2 Restart your computer and access the boot menu (usually by pressing a key like F12 or ESC during boot).
3 Select the installation media as the boot device.
4 Follow the on-screen instructions to boot into the Windows Setup.

Utilizing Startup Repair for Boot Issues

To utilize Startup Repair for boot issues in Windows 10/11, you can also try repairing the EFI boot using Diskpart. First, you need to access the Windows Preinstallation Environment by booting from a USB flash drive or optical disc image.

Once in the Windows Preinstallation Environment, open Diskpart by typing “diskpart” into the Command Prompt. Identify the drive letter of your system partition by typing “list volume” and looking for the volume labeled “System.”

Next, select the system partition by typing “select volume X” (replace X with the volume number of your system partition). Then, assign a drive letter to the system partition by typing “assign letter=Y” (replace Y with a letter not already in use).

Finally, rebuild the Boot Configuration Data (BCD) store by running the following commands:
bootrec /scanos
bootrec /rebuildbcd
bootrec /fixmbr
bootrec /fixboot

After executing these commands, restart your computer and see if the EFI boot issue has been resolved.

Running Boot Repair Commands via CMD

To repair the EFI boot using Diskpart in Windows 10/11, you can run boot repair commands via CMD. First, open Command Prompt as an administrator. Next, enter the following commands in order:

diskpart
list disk
select disk X (replace X with the disk number where the EFI partition is located)
list partition
select partition Y (replace Y with the partition number of the EFI partition)
assign letter=Z: (replace Z with an available drive letter)
exit

These commands will help you access the EFI partition and repair any boot issues. Make sure to follow the instructions carefully to avoid any data loss or system failures. After running the commands, you can restart your computer to see if the EFI boot issue has been resolved.

Fixing MBR with Command Prompt

To fix the MBR using Command Prompt, you can use the Diskpart utility in Windows 10/11. First, open Command Prompt as an administrator by searching for it in the Start menu and right-clicking to run as admin. Then, type diskpart and press Enter to open the Diskpart utility.

Next, list all the disks on your computer by typing list disk and pressing Enter. Identify the disk that contains the Windows installation, keeping in mind the size of the disk.

Select the disk by typing select disk X (replace X with the disk number) and press Enter. Then, type list partition to list all the partitions on the selected disk.

Identify the partition with the EFI boot files and select it by typing select partition Y (replace Y with the partition number) and press Enter. Finally, assign a drive letter to the partition by typing assign letter=Z (replace Z with a letter) and press Enter.

You can now exit Diskpart by typing exit and press Enter. This process should help repair the EFI boot using Diskpart in Windows 10/11.

Altering BIOS Settings for Boot Repair

To alter BIOS settings for boot repair, you will need to access your computer’s BIOS menu. Restart your computer and press the designated key to enter the BIOS setup (usually F2, F12, ESC, or DEL). Look for the Boot tab in the BIOS menu.

Select the appropriate boot device order to prioritize the device you want to boot from first. Save your changes and exit the BIOS menu.

After altering the BIOS settings, restart your computer and check if the boot repair issue has been resolved. If not, you may need to further troubleshoot or seek additional support.

Adding Disk Drivers for Boot Correction

To add disk drivers for boot correction using Diskpart in Windows 10/11, follow these steps:

1. Open Command Prompt with administrative privileges by pressing Windows key + X and choosing Command Prompt (Admin).

2. Type “diskpart” and press Enter to open the Diskpart tool.

3. Type “list disk” to display all available disks on your system.

4. Identify the disk where the EFI boot partition is located and note the disk number.

5. Type “select disk X” (replace X with the disk number) to select the disk.

6. Type “list partition” to display all partitions on the selected disk.

7. Identify the EFI system partition (usually a small partition with no drive letter assigned) and note the partition number.

8. Type “select partition X” (replace X with the partition number) to select the EFI system partition.

9. Type “assign letter=Z” to assign a drive letter Z to the EFI system partition.

10. Exit Diskpart by typing “exit” and press Enter.

Changing SATA Mode for Startup Repair

To change the SATA mode for startup repair, you will need to access the BIOS settings on your computer. Restart your computer and press the designated key to enter the BIOS (usually F2 or Del).

Navigate to the “Storage” or “SATA Configuration” section in the BIOS menu. Find the SATA Mode option and change it from AHCI to IDE or vice versa, depending on your system configuration.

Save the changes and exit the BIOS. Your computer will restart.

Changing the SATA mode may help in resolving EFI boot issues. If you continue to experience problems, you may need to repair the EFI boot using Diskpart in Windows 10/11.

Access the Command Prompt by booting from a Windows installation USB or DVD. Enter the Diskpart utility by typing diskpart and press Enter.

Follow the steps to repair the EFI boot using the Diskpart utility. This method can help fix EFI boot errors caused by corrupted boot sectors or improper boot configurations.

Verifying and Selecting Partitions and Volumes

Diskpart command prompt interface

Once you have identified the correct disk, type select disk X (replace X with the disk number) to choose the disk. Next, type list volume to display all the volumes on the selected disk. Identify the EFI system partition (ESP) by its size and type.

After identifying the ESP, type select volume Y (replace Y with the volume number) to select the ESP. Verify that you have selected the correct partition by typing detail volume and checking the information displayed. This ensures you are working with the correct partitions and volumes for repairing the EFI boot.

Summary of Boot Repair Techniques

  • 1. Use Diskpart command line tool to repair EFI boot in Windows 10/11.
  • 2. Open Command Prompt with administrative privileges.
  • 3. Type “diskpart” and press Enter to open the Diskpart tool.
  • 4. Enter “list disk” command to display all disks connected to your system.
  • 5. Identify the EFI system partition (ESP) on the list of disks.
  • 6. Select the EFI system partition (ESP) using the “select disk X” command.
  • 7. Assign a new drive letter to the EFI system partition (ESP) using the “assign letter=X” command.
  • 8. Exit Diskpart by typing “exit” and pressing Enter.
  • 9. Use the bcdboot command to rebuild the EFI boot files.
  • 10. Restart your computer to apply the changes and boot into Windows successfully.

FAQ

How to repair EFI boot using CMD?

To repair EFI boot using CMD, you can enter commands such as BOOTREC/FIXMBR and BOOTREC/FIXBOOT in the command prompt window. The FIXMBR command helps fix issues with the Master Boot Record (MBR), while FIXBOOT can repair problems related to the boot sector.

What is the command for boot repair?

The command for boot repair is Bootrec.exe.

How do I fix a corrupted boot?

To fix a corrupted boot, you can start by using the installation media for the installed version of Windows. Select “Repair your computer” on the Install Windows screen, then choose “Troubleshoot” and select “Startup Repair” on the Advanced options screen.

How to use diskpart to fix boot?

To use diskpart to fix boot, you need to access Command Prompt from Advanced Options and insert your Windows installation disk or USB. Then, run Diskpart to set partition ID and assign a drive letter, repair the boot record, and rebuild the BCD Store.