The EFI System Partition (ESP) plays a crucial role in both Windows and macOS systems. It contains essential folders and files necessary for booting into Windows, Ubuntu, or macOS. Due to its importance, all operating systems can encounter problems if the files within this partition are not correctly set up. To prevent issues, Windows and macOS often hide the EFI partition, and modifying it requires administrative privileges.
There are two types of EFI System Partitions: one for Windows and another for External Disks, such as a USB Installer for Ubuntu or macOS. Creating and editing these EFI partitions is relatively straightforward using different commands, with the help of CMD (Command Prompt), a familiar tool in the Windows environment.
How to Create and Mount EFI Partition on Windows
To begin, we must open the Command Prompt with administrative privileges. On Windows, you can find the Command Prompt by searching for «CMD» in the Windows Search bar. Then, right-click on it and select «Run as administrator» from the options. Once you have done this, you are ready to proceed with creating or modifying the EFI partition.
Open Command Prompt with Run as Administrator
1. Create EFI Partition for External USB Installer
To create an EFI partition on Windows, we can use the Diskpart tool, which provides more advanced functionalities compared to the Disk Manager. Diskpart enables the creation of an EFI partition, which is not possible through the regular Disk Manager.
To access Diskpart, open the Command Prompt and enter the command «diskpart.» After that, you can use specific commands to create the EFI partition.
Create EFI Partition on External Disk with CMD
Before proceeding, it is crucial to verify if your disk is currently using the GPT (GUID Partition Table) standard because EFI functionality is limited to GPT disks. In case your USB Drive is formatted with the MBR (Master Boot Record) standard, you need to follow the provided commands to Clean and Convert the disk to GPT. However, it’s essential to be aware that converting to GPT will result in the complete loss of data on the USB Drive.
Microsoft DiskPart version 10.0.25346.1001
Copyright (C) Microsoft Corporation.
On computer: DESKTOP
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
——— ————- ——- ——- — —
Disk 0 Online 476 GB 131 MB *
Disk 1 Online 28 GB 28 GB
DISKPART> select disk 1
Disk 1 is now the selected disk.
DISKPART> clean
DiskPart succeeded in cleaning the disk.
DISKPART> convert gpt
DiskPart successfully converted the selected disk to GPT format.
DISKPART> create partition efi size=250
DiskPart succeeded in creating the specified partition.
DISKPART> list partition
Partition ### Type Size Offset
————- —————- ——- ——-
* Partition 1 System 250 MB 1024 KB
For illustration purposes, let’s assume «Disk 1» represents the External USB Disk, and the desired size of the EFI partition is «250 MB.»
2. Mount and Unmount Windows EFI Partition
The EFI drive is typically in an Unmount state, preventing users from accessing or using it directly. To make the EFI drive accessible, we can utilize a CMD tool called ‘mountvol.’
mountvol command
To Mount the Windows EFI partition, use the following command: mountvol H: /S
In this command, ‘H:’ represents the desired drive letter for the EFI partition, and ‘/S’ is the command to mount the partition. You can select any available drive letter that does not conflict with existing drives on your Windows system (e.g., F, G, M, K, etc.).
Mount Windows EFI Partition
If you wish to stop using the Windows EFI partition, you can Unmount it using the following command: mountvol H: /D
Once again, ‘H:’ denotes the drive letter of the EFI partition you want to unmount, and ‘/D’ is the command to unmount the partition.»
Unmount Windows EFI Partition
3. Mount and Unmount External USB EFI Partition
To Mount the EFI Partition of an external disk, such as a USB Installer, we’ll use the ‘mountvol’ tool in CMD, but the command will have some variations.
Step 1: Display the complete list of partitions on Windows using the ‘mountvol’ command in CMD. Among the listed drives with the label ‘Not Mount Point,’ select any drive, and note down its ID.
Mount EFI Partition of External Disk
Step 2: Use the following command to Mount the EFI partition: mountvol F: \?\Volume{id}\
In this command, ‘F:’ is the drive letter that you want to assign to the EFI partition. You can choose any available letter that doesn’t conflict with existing partitions on your Windows system. ‘{id}’ represents the ID of the EFI partition found in the previous step. If the ID doesn’t match the EFI partition, try different IDs until you find the correct one.
To Unmount the EFI Partition, use a similar command: mountvol F: /D
Here, ‘F:’ is the drive letter associated with your EFI partition, and ‘/D’ is the unmount partition command.»
4. Open EFI Partition
EFI partitions are typically not directly accessible on Windows without Admin privileges, and obtaining such rights can be time-consuming. In this guide, we present a quicker and simpler approach using the Task Manager.
To begin, open the Task Manager by right-clicking on the Start menu and selecting «Task Manager,» or use the keyboard shortcut Ctrl+Alt+Del, then choose «Task Manager.»
Once the Task Manager is open, select «Run new task,» and click on «Browse» to navigate to the EFI partition.
Create New Task in Task Manager
Next, remember to choose «All Files» to display all the files within the EFI partition.
Open EFI Partition in Windows 11
A crucial point to note is that if you created the EFI partition in Step 1, you might need to format it again. Opt for formatting it using the FAT or FAT32 standard for compatibility with various devices, from Mac to PC.
Keep in mind that EFI partitions will only function when the uEFI boot mode is set on your PC, and you must convert the drive to the GPT standard.
Following these steps will enable you to take full control of using the EFI partition on Windows. With this guide, editing or creating a new EFI partition will become a straightforward process for you.
Here is what I do:
- restart machine with Windows 8.1
- determine «EFI System» partition with the Disk Management utility
- run command prompt as administrator
- type
diskpart
- type
select disk 0
thenselect partition 2
thenassign
- open windows explorer
windows+e
- refresh if the drive is not showing
F5
- try to open drive by double clicking
What I expected to happen:
I can at least look at my EFI partition files.
What happened:
after clicking continue
after clicking «security tab» link, no security tab
What do I need to do to access my EFI partition on Windows 8.1?
asked Oct 20, 2013 at 19:58
RyanTMRyanTM
1,0301 gold badge11 silver badges23 bronze badges
The official way of mounting the EFI partition is
mountvol b: /s
where b:
is a drive letter of your choosing. You can remove the mapping with:
mountvol b: /d
You still need to launch explorer.exe
with administrative privileges in order to see the mountpoint (kill explorer.exe
, then launch one from an elevated command prompt)
answered Mar 30, 2014 at 9:49
jmiserezjmiserez
1,5241 gold badge13 silver badges12 bronze badges
1
The reason why you can’t access it on Windows Explorer (File Explorer) is because by default it does not run with administrative privileges. If you let’s say kill Explorer and execute it again from an elevated command prompt then you will have access to the EFI partition through File Explorer.
First open an elevated command prompt and give the EFI partition a drive letter, you can do it with mountvol
as shown in jmiserez’s answer (recommended) or with diskpart
. In the following example the EFI partition is on disk 0
, partition 1
and will be assigned to letter b
:
diskpart
list disk
select disk 0
list partition
select partition 1
assign letter=b
exit
Now kill the File Explorer process and start it with administrative privileges:
taskkill /im explorer.exe /f
explorer.exe
Now you can access the EFI partition with File Explorer.
Note that the EFI partition is a FAT32 file system partition. FAT partitions don’t have the Security tab, this is a NTFS feature only.
answered Jan 9, 2014 at 17:30
Ricardo BohnerRicardo Bohner
3,9612 gold badges18 silver badges12 bronze badges
6
One way I found is to open it in the administrator command prompt:
type E:
then you can browse around and edit the files
answered Oct 20, 2013 at 20:20
RyanTMRyanTM
1,0301 gold badge11 silver badges23 bronze badges
1
I tried everything and nothing worked on explorer for me.
I tried killing and running explorer from elevated cmd, and also tried the same with PowerShell and nothing worked.
I could however edit inside cmd and powershell but not GUI/Explorer.
It is very odd but if you Download Explorer++ it works.
Extract it and run as admin
From this post:-
It took me some time to find a workaround so I thought I share it.
1- Mount the EFI partition to a free mount point:
— Run command prompt as administrator
— Type «mountvol X: /s» (without the quotes, X being an unused mount point)
2- Use Explorer++ (Free, Open Source app) to manipulate the files on the partition:
— Run Explorer++ with administrative privileges
Hope you find this useful
mic84
2,3632 gold badges21 silver badges17 bronze badges
answered Jul 21, 2016 at 14:03
3
Press Start and type gpedit.msc
and press Enter
This will open your Group Policy Editor.
Expand Administrative Templates
Expand Windows Components -> File Explorer
Locate Remove Security tab in the right pane and double click to open
Select the Disabled radio button and press OK
Now check for your security tab
Now, you can add yourself Read/Write permissions or just take the ownership
answered Oct 20, 2013 at 21:22
2
You must log in to answer this question.
Not the answer you’re looking for? Browse other questions tagged
.
Not the answer you’re looking for? Browse other questions tagged
.
Как смонтировать раздел EFI под windows
Два метода:
1 Используйте команду mountvol для монтирования
win + R => cmd Enter
Введите mountvol z: / S Enter
Раздел EFI успешно смонтирован на Z-диске.
Доступный переключатель Mountvol
Следующие переключатели можно использовать для создания, удаления или вывода списка точек монтирования тома.
mountvol [диск:] путь имя тома
mountvol [диск:] путь / D
mountvol [диск:] путь / L
диск mountvol: / S
где:
Путь указывает существующий каталог файловой системы NTFS, в котором будет находиться точка монтирования.
Имя тома Укажите имя тома, который является целью точки монтирования.
/ D Удалить точку монтирования тома из указанного каталога.
/ L отображает имена подключенных томов для указанного каталога.
/ S Подключите системный раздел EFI на заданном диске.
например: удалить
mountvol z: /D
2 Используйте команду diskpart для монтирования
win + R => cmd Enter
Введите diskpart и нажмите Enter.
список дисков # Список дисков Ли Бяо
select disk 0 # Выберите 0-й диск
список разделов # список разделов
select partition 1 # Выберите системный раздел, тип которого - system и размер 550MB
assign letter = b # Установить на том номер B
Как получить доступ к смонтированному разделу FEI
win+R => cmd
Откройте командную консоль
taskkill /im explorer.exe /f
Сначала убейте менеджера ресурсов
Затем откройте Диспетчер задач => Новая задача. Войдите в проводник, проверьте следующее, чтобы запустить его в режиме администратора.
Ниже приводится дополнение от 27 февраля 2018 г. После того, как два вышеуказанных метода смонтированы, диск можно увидеть, но к нему нельзя получить доступ. Для копирования и вставки можно использовать только команду cmd.
Environment win10 последняя версия + mac os 10.12.6
list disk
выберите диск 0 (выберите номер диска)
список разделов (список разделов)
выберите раздел 0 (выберите систему разделов размером 550 МБ, тип - основной раздел)
ass (здесь не нужно вручную вводить номер тома, система автоматически назначит его, и на этом шаге все будет в порядке)
После выполнения вышеуказанных шагов вы можете напрямую получить доступ к смонтированному разделу EFI или ESP.
Recently, I got an issue with my OpenCore EFI partition on my Hackintosh system. I messed up the config.plist and it makes my macOS Catalina Hackintosh won’t boot properly. Fortunately, I have another hard drive with Windows 10 installed on it. So, I can edit my config.plist in the EFI partition and now it works again.
Update!!
How to Mount EFI Partition on Windows 10 in simpler way using DiskGenius
By default, you cannot see the macOS EFI partition from Windows Explorer, even if your macOS hard drive is connected to your PC. But, there is an easy way to mount the macOS EFI partition under Windows 10. I will show you how to do this in a moment.
Mount the EFI partition on Windows 10
Open Windows 10 command prompt as administrator. And then, run “diskpart” command.
diskpart
Output:
Next, list the disk
list disk
Output
As you can see, I have 5 hard drives connected to my PC. In this case, my macOS/Hackintosh disk is Disk 3. Yours might be different. Now I will select disk 3
select disk 3
Output
As you can see, my Disk 3 is now the selected disk. Next, we will show the partitions in Disk 3.
list partition
As you can see, there are 4 partitions in Disk 3. In my case, the EFI partition is Partition 1. It is easy to know which one is the EFI partition. The EFI partition volume size is exactly 200 MB.
select partition 1
Now let’s mount the Partition 1 and assign drive letter to it.
assign leter=O
Now, open Windows Explorer and you should see your EFI partition is mounted there.
Common Issue
In some cases, Windows 10 users cannot open the mounted EFI partition and got the error:
You don’t currently have permission to access this folder.
In case you get this error, I would recommend you to download Explorer ++ program and then run it as administrator. It can open the EFI folder perfectly without issue.
Download Explorer++
I found a way for it to work using mountvol
by issuing mountvol /?
first.
The output will have some hint at the end and in my case it was:
Possible values for VolumeName along with current mount points are:
\\?\Volume{38d5d60e-5760-43bc-85ac-25f3452b2e2f}\
*** NO MOUNT POINTS ***
\\?\Volume{5f7cfdd0-dc43-0c6f-e24a-85ed1e43d782}\
E:\
\\?\Volume{b08ddf00-9937-413c-82e9-c0e55525e46f}\
*** NO MOUNT POINTS ***
\\?\Volume{07434f9f-e9d4-11e9-84c3-7085c2c582c4}\
*** NO MOUNT POINTS ***
\\?\Volume{07434fa0-e9d4-11e9-84c3-7085c2c582c4}\
D:\
\\?\Volume{45ce4d69-be26-4a9e-bc11-d850c69875ec}\
C:\
After some tries (you can test one by one), the command that worked for me is:
mountvol h: \\?\Volume{07434f9f-e9d4-11e9-84c3-7085c2c582c4}\
Then find a way to access H:
, which shows up: open Task Manager > File > Run New Task, and browse to it.