How to access efi partition on windows 10?

26

13

I am having trouble accessing the EFI partition on windows 10 I tried this method in cmd (I used Administrative privileges ):

open cmd as admin...

diskpart
sel disk 0
sel part 1 (efi part)
assign letter=b
exit
taskkill /im explorer.exe /f
explorer.exe

But it is not working since windows 10, I used this method fine on 8.1.

this picture shows the error I get when I try to access the partition

enter image description here

Raffi CH

Posted 2015-09-01T11:01:23.117

Reputation: 471

How is it "not working"? Some errors, or nothing happens after these steps? – gronostaj – 2015-09-01T11:03:26.477

I am able to see the mounted partition but I can't access it. – Raffi CH – 2015-09-01T11:04:21.910

Why are you trying to access the EFI partition exactly? – Ramhound – 2015-09-01T11:11:05.677

@Ramhound because I have multiple operating systems, and should rename a file so I can access the other system. – Raffi CH – 2015-09-01T11:13:01.207

Can you provide us the security information on the drive? The error message seems pretty clear to me. – Ramhound – 2015-09-01T14:23:42.573

Have you also tried killing Explorer from the Task Manager and starting a new Explorer task with Admin Privileges (i.e. not from within Command Prompt) – patkim – 2015-09-01T15:34:36.487

Is the drive accessible from within the Command Prompt after the mount letter is assigned? – patkim – 2015-09-01T21:39:55.540

@pat2015 doesn't work mate, to answer your second question it is yes – Raffi CH – 2015-09-02T23:09:03.957

2Interestingly I find that the mounted EFI drive is accessible from the ‘Browse’ button from Task Manager -> ‘Run New Task’ You can then perform basic operations possible with Context Menu (Copy/Paste etc) and even when you run other apps with Admin Privileges e.g. Notepad.exe it can also access the drive from its file menu. The issue seems to be with Explorer. – patkim – 2015-09-03T08:51:00.593

@pat2015 This is enough to get my job done, thanks mate – Raffi CH – 2015-09-03T09:45:25.277

Answers

11

The answer is by @pat2015 :

Interestingly I find that the mounted EFI drive is accessible from the ‘Browse’ button from Task Manager -> ‘Run New Task’ You can then perform basic operations possible with Context Menu (Copy/Paste etc) and even when you run other apps with Admin Privileges e.g. Notepad.exe it can also access the drive from its file menu. The issue seems to be with Explorer.

Raffi CH

Posted 2015-09-01T11:01:23.117

Reputation: 471

Upgraded to Windows 10 Anniversary edition and this permission trouble started. This workaround worked perfectly. I'm guessing doing some kind of "RUNAS" to behave as a SYSTEM user might work as well, but that's no fun. Maybe I'll do that if every other Windows update breaks my bootloader again. – dragon788 – 2016-09-26T02:00:44.147

Windows 10 Creators update fixed this problem. – Muntashir Akon – 2017-06-11T14:29:33.033

2You can also just open the cmd.exe as administrator and use the command line like the good ole dark ages. – user148298 – 2018-03-29T15:46:06.837

21

Try the following, which works in Windows 7 and 8, but I can't promise anything with 10:

  1. Open an Administrator Command Prompt window by right-clicking the Command Prompt icon and selecting the option to run it as Administrator.
  2. In the Command Prompt window, type mountvol P: /S. (You can change P: to any unused drive letter; that's arbitrary.)
  3. Use the Command Prompt window to access the P: (EFI System Partition, or ESP) volume.

You'll need to use text-mode commands, rather than the GUI, but this method should work.

Another alternative is to use another OS. Even if you can't boot your other OS now, which you strongly imply, you might be able to use an emergency disk. An Ubuntu installation medium, for instance, should let you access the ESP pretty easily. IIRC, it should show up as a volume in the lower-left corner of the screen; or you can use the standard Linux mount command to mount it in any way you like.

Rod Smith

Posted 2015-09-01T11:01:23.117

Reputation: 18 427

1Doesn't work mate – Raffi CH – 2015-09-02T23:09:25.383

1I tried it with a vanilla install of windows 10 1151 64 bit (i.e. not an upgrade from windows 7.). The mounting part worked fine, but the entire directory is read-only! What's the point in that? Well, it worked a bit. Do you know how to make it read-write? – enigmaticPhysicist – 2015-11-21T13:56:49.677

1This worked for me in Windows 10, recovery mode. Thanks! – Fredrik Håård – 2017-02-10T12:09:05.930

1I get an error mountvol P: /s The parameter is incorrect. – Damian – 2018-10-06T09:56:38.973

Works on Windows 10 - 1903 – Ujjwal Singh – 2019-08-21T22:25:59.793

11

Update

in Windows 8.1, Windows 10 and Windows Server starting as of 2012 R2 you can use the following Powershell oneliner for getting Read-Write access to EFI partition:

start ((Get-Partition | ? IsSystem).AccessPaths[0])

Original answer

I have found more straightforward way of getting read/write access to EFI partition from Windows 10:

  1. Open an Administrator Command Prompt window by right-clicking Start button and clicking on Command Prompt (Admin)
  2. In the Command Prompt window, type mountvol, disregard help message in the beginning and notice the list of GUID-based paths of all volumes known to Windows, eg.:

list of volumes' GUIDs

  1. GUID of EFI partition is one of those marked with "NO MOUNT POINT" description - in my case it was the first volume
  2. type start \\?\Volume{.......-....-....-....-...........}\ (of course replace dots with the exact GUID from step #3) and new explorer window will pop up with the contents of EFI partition and read/write access to it - voila!

EFI partition in explorer

maoizm

Posted 2015-09-01T11:01:23.117

Reputation: 739

1How do one unmount the volume safely again?, the description on /P sounds destructive? – neslekkiM – 2017-06-07T06:38:40.643

@neslekkiM it is not get mounted, just close explorer – maoizm – 2017-06-29T05:39:30.517

Once you have assigned a drive letter P to the efi partition you can exit diskpart and use the usual cmd commands like P:>dir which will list whats on P and so forth. – Jens – 2018-10-23T13:34:26.437

There is a corner case to this, where there are multiple EFI partitions present (for example, when someone attaches a second drive that contains a previous EFI partition). I believe this will not be able to differentiate between the two, with just the approach above. – Will I Am – 2019-05-03T14:45:21.163