Skip to main content
2 of 3
remove section on replicating with `gpt`
lx07
  • 3.1k
  • 1
  • 15
  • 28

The picture you show is written to the screen by the Microsoft bootloader program bootmgfw.efi which is found in your EFI partition on disk either in the EFI/Boot directory, the EFI/Microsoft directory or both.

You say "I reformatted the entire drive" but unless you went to Disk Utility and actually overwrote the data with zeros you most likely didn't. It can be a bit convoluted to do this - see How to Secure Erase a Mac SSD / Hard Disk from Recovery Mode

What you likely did is take the option in the macOS installer to reinstall. This deleted the partition tables and then the installer created new partitions including a new EFI partition with exactly the same start and end positions - macOS will always create a 200MiB EFI partition from sector 40 to sector 409639. As macOS doesn't generally use the EFI partition whatever was there before will miraculously be there again.

To remove the straggling MS files first delete any Microsoft directory in the EFI partition:

  • disable SIP as described here How to Disable System Integrity Protection (rootless) in Mac OS X
  • create mount point for EFI partition with mkdir /Volumes/ESP
  • mount EFI partition with sudo mount -t msdos /dev/disk0s1 /Volumes/ESP
  • check if MS directory is still there with ls /Volumes/ESP/EFI/Microsoft
  • delete it with sudo rm -r /Volumes/ESP/EFI/Microsoft
  • delete EFI/Boot too if it exists with sudo rm -r /Volumes/ESP/EFI/Boot
  • alternatively delete everything except for the EFI/APPLE directory using Finder and empty the trash.

Finder

lx07
  • 3.1k
  • 1
  • 15
  • 28