Problem: On a Windows system, a partition cannot be extended because the (locked for deletion) EFI partition is in the way.
Open Disk Management on the Windows system:
a. Press Windows Key + R (This opens the “Run” dialog)
b. Type diskmgmt.msc in the “Run” dialog and confirm with OK.
Right-click the unallocated space and create a new volume.
Subtract 100MB from the total available size:
a. Example: 10140 available => assign only 10040. We need 100MB for the new EFI partition.
Create the new partition. In this example, we will call the new partition E:.
Shut down Windows and boot from a Windows installation media:
a. Prepare Windows installation media: Microsoft - Create Windows Installation Media
b. Boot from the installation media using the boot menu.
After booting into the Windows setup:
a. Go through the keyboard settings
b. Select “Repair your computer” and continue
c. Open the Command Prompt
In the Command Prompt, create a new EFI partition:
# change to the drive you want to make bigger (usually C:)C:
# open diskpartdiskpart
# show available diskslist disk
# select the desired disk (usually 0)select disk 0# create new EFI partitioncreate partition efi size=100# list partitions to see the number of the new partitionlist partition
# select the newly created partition (in this example, it is "3")select partition 3# format it for EFI and assign a letter (in this example "S")format quick fs=fat32 assign letter=S
# exit diskpartexit
Then, move the Windows boot files to the new partition in the Command Prompt:
# use the correct main drive (usually C:) and the letter assigned to the new EFI partition (S:)bcdboot C:\windows /s S:
Now, delete the old EFI partition in the Command Prompt:
# open diskpartdiskpart
# select the correct disk (same as before)select disk 0# list partitionslist partition
# select the OLD EFI partition (in this example, it is "2")select partition 2# delete itdelete partition override
Shut down the Windows system:
a. Close the Command Prompt
b. Choose Shutdown
Remove the installation media and start Windows normally.
Open Disk Management again (as shown in Step 1).
The active EFI partition is now AFTER the placeholder partition (E:) created at the beginning, and the old one is gone.
Delete the “placeholder” partition E: created in Step 4 to free up space.
Finally, you can extend the first partition into the freed space, as the EFI partition is no longer in the way:
a.Rightclick the first partition and chose “expand volume”.