What is an EFI system partition?
The EFI system partition (ESP), a small partition formatted with FAT32, is usually around 100MB, this is where the EFI boot loaders and applications used by the firmware at system during start-up are stored. If your hard drive is in the GUID Partition table (GPT) partition style, it will automatically generate an EFI system partition after you have installed your operating systems. Both Windows and Mac operating systems are supported.
You normally can’t view the EFI partition through File Explorer (or Finder for Mac OSX) as it doesn’t have a drive letter assigned to it and if you accidentally manage to find and delete the partition, then your system will be unbootable. In order to protect the EFI partition, Windows will attempt to prevent you from deleting it. So, in the circumstances where you still wish to delete the EFI partition, what can you do?
How to delete the EFI system partition in Windows?
As we mentioned above, the EFI partition is essential if you want to be able to boot up the operating system that you have installed on your internal hard drive. However, if you have an external hard drive rather than internal one, you do not require an EFI partition to boot from the drive.
Besides, if you have created an EFI partition on a Mac and now want to install Windows operating system, you might need to delete the original EFI partition and generate a new one. To delete the original EFI partition, you have to turn to a third-party partition manager since the Windows native tools don’t allow you to remove the ESP. Here we highly recommend AOMEI Partition Assistant Pro, which enables you to delete any partition without losing data on others in Windows 11/10/8/7 XP and Vista.
✍ It's available to download the demo version of AOMEI Partition Assistant to have a try!
To delete the EFI partition using AOMEI Partition Assistant follow the below steps:
1. Install and run AOMEI Partition Assistant Pro.
2. Connect either a USB drive or CD to your computer and click Make Bootable Media. Follow the wizard to create a bootable disk. Then boot computer from the bootable device.
3. In the main window, right-click on the EFI partition that needs to get rid of and select Delete Partition.
4. In the pop out window, click “OK” to confirm.
5. The program has not yet made any permanent changes to your hard drive, if you’re happy to proceed you need to click Apply to save the changes.
After that, the EFI partition has now become unallocated space, and you can add this unallocated space to any of the existing partitions by using the Merge Partitions function.
Apart from deleting the EFI partition, AOMEI Partition Assistant has many useful features that the in-built Windows Disk Management doesn’t. AOMEI Partition Assistant has the ability to convert disks between GPT and MBR without losing any of your data, clone partition, move partitions, migrate operating systems, recover deleted partitions, and more!
How to create EFI partition?
In order to boot Windows on a GPT disk, we know that the drive must contain an EFI system partition and a Microsoft Reserved Partition (MSR). If you delete the EFI partition on the system disk by mistake, then Windows will fail to boot. On occasion, when you migrate your OS or install it on a hard drive, it may fail to generate an EFI partition and cause Windows boot issues. In this case, you can create a new EFI partition and then install an EFI boot loader in order to make the hard drive bootable. Here is the tutorial:
1. Boot your computer from a Windows installation disc or recovery disk. Press Shift+F10 during the setup to enter the command prompt.
2. Run the commands below to shrink the partition to free up some unallocated space.
- ▪ diskpart
- ▪ list disk
- ▪ select disk X (X represents the disk number of the disk that requires an EFI partition)
- ▪ list partition
- ▪ select partition N (N represents the partition number of the partition that needs shrinking)
- ▪ shrink desired=500 (shrink the partition by 500MB)
3. Then you can create EFI partition out of the 500MB unallocated space using the command below:
- ▪ create partition EFI size=200
- ▪ format quick fs=fat32 label="System"
- ▪ create partition msr size = 128
4. After those two partitions have been successfully created, use the commands below to install boot loader and other applications needed.
- ▪ bootrec /fixboot
- ▪ bcdboot c:\Windows /s b: /f ALL
On an EFI-only system, the last two options don’t need to be included, and the command should read "bcdboot C:\Windows".
6. Reboot your computer to see if it is now bootable.
Now, you should have a thorough understanding of what is EFI system partition, what it is used for, how to delete or recreate an ESP. If your computer fails to boot because of a missing EFI system partition, you can use the above method to recreate it or use AOMEI Partition Assistant Professional to recover missing EFI system partition, and then your Windows system should boot as normal. Even though this will not cause data loss, it is also recommended to create a disk backup before you make any changes.