Skip to content

Doesn't work if EFI is on removable media #3

@1dolla

Description

@1dolla

The WinEFIMounter doesn't actually mount the EFI partition if the partition is on a removable device (which would be always until you've successfully installed macOS on an internal drive).

It doesn't say it failed, though.

But manually trying to mount it in diskpart reveals why:

DISKPART> assign letter=z

Virtual Disk Service error:
The operation is not supported on removable media.

diskpart apparently can't or won't assign a drive letter to this type of partition, or perhaps any partition on external media.

After searching the interwebs, turns out you can do it with a powershell command (as admin, of course):

Add-PartitionAccessPath -DiskNumber 2 -PartitionNumber 1 -AccessPath "Z:"

Perhaps the code could be updated to detect this error (any non-zero exit code from diskpart is at the very least an indicator something went wrong) and use this powershell command instead?

I did this myself, and then let WinEFIMounter continue with its copying of files to the C: drive for editing. I'm guessing it won't have a problem copying them back when I'm done editing and I'm guessing diskpart won't refuse to unmount the partition in the end, either.

Cheers :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions