I've installed Windows again but this time on a external SSD.
it's all working fine, but when holding the alt/option key it's giving me Macintosh HD and EFI partition.
how can I change this name "EFI Partition" and its logo?
the logo is a orange one.
and I also want it to show up in system preferences startup selector on mac OSX.
it's only showing me Macintosh HD.
EFI Partition – How to Change Name and Logo
bootefipartitionssd
Related Solutions
You can recreate the EFI System Partition (ESP) using the command-line gpt
tool. It should start at sector 40, and it should be 409600 sectors (exactly 200MiB) long. The GPT entry's type should be C12A7328-F81F-11D2-BA4B-00A0C93EC93B
, and if you have a hybrid MBR, the type there should be EE
. The format is actually a subset of FAT, not HFS+. You can read the GPT using the command sudo gpt -r show disk0
in a Terminal window, this produces output that looks something like this:
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 447801712 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
448211352 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
449480888 40753831
490234719 32 Sec GPT table
490234751 1 Sec GPT header
You can see the correct EFI partition at index 1. If that line doesn't match exactly, the easiest way is to delete the partition in its place and recreate it.
Make sure you know what you're doing before proceeding from here - you may lose data if you mess up.
You can't edit the partition table using gpt
while partitions on the drive are mounted, so you'll need to boot from another drive (e.g. a USB stick with the OSX installer) or run the mac in target disk mode and do the partitioning from another mac. You may need to unmount any automatically mounted volumes using diskutil unmountDisk disk0
before proceeding, and in between commands.
To delete your "bad" EFI partition, run this command:
sudo gpt remove -i 1 disk0
Make sure disk0 is really the disk you want to change - the numbers can change between reboots. Also, this will only work if you already have a non-ESP partition in the place of the ESP - if not, deleting partition 1 could be disastrous! In this case, you'll need to move the indices along, as I think the ESP must have index 1. By the sound of it, this won't be necessary in your case.
Once deleted, re-add the partition with the correct layout and type:
sudo gpt add -b 40 -i 1 -s 409600 -t C12A7328-F81F-11D2-BA4B-00A0C93EC93B disk0
This should sort out the partition itself, but as you've created an HFS partition in its place, you need to fix its format as well.
The format of the EFI System Partition is documented by Apple here. As you can see, they recommend you clone an existing ESP rather than recreating the file system with newfs_msdos
. If you have an external drive with a GPT partition table (OSX install stick should have it), you can clone that.
Make sure you have your disk and partition numbers the right way around or you may overwrite data:
If disk1 is your external drive, and it contains an ESP as the first partition (disk1s1) and disk0 is the drive whose ESP (disk0s1) you want to fix, run this command:
sudo dd if=/dev/disk1s1 of=/dev/disk0s1
This will copy every single block of disk1's ESP and overwrite the corresponding block in disk0's ESP with it.
Alternatively, take a gamble with newfs_msdos
.
Your question has two parts. The first part is repeated below.
The question is, how can I make the EFI Boot disappear when I press the options key at startup?
This a duplicate of the question "Ghost partition, Windows BSOD". The rest of your question, which again is repeated below, does require further explanation.
It's not creating any problems with my Mac or Windows partitions, but I'm very curious about what it actually is, what does it have to do with my computer, and why does it decide to show up when I pressed the options key?
The "EFI Boot" appears because the Mac firmware finds the boot file BOOTx64.EFI
in the folder \EFI\BOOT
on the EFI partition of your internal drive. This is part of the UEFI specification. For example, if you go to the "uefi.org Specifications web page", you can download and view the "UEFI Specification Version 2.5". Sections 3.5.1.1 Removable Media Boot Behavior and 3.5.1.2 Non-removable Media Boot Behavior (on pages 88-90) describe the naming of the BOOTx64.EFI
file and that it should appear in the \EFI\BOOT
folder.
When holding down the Option ⌥ at startup, the Mac firmware will look for the \EFI\BOOT\BOOTx64.EFI
file on each EFI partition of all drives accessible at startup. Each occurrence will generate an icon with the label "EFI Boot" on the Startup Manager menu.
When Windows installs, some of the startup files are stored in the folder \EFI\MICROSOFT
. These files are also duplicated (with some renaming) in the \EFI\BOOT
folder. Not all non-Apple operating systems do this when installing. For example, Ubuntu Linux does not. (Well, last time I installed in EFI mode it did not.) The Ubuntu installer does create a folder \EFI\UBUNTU
with startup files (GRUB), which the Mac firmware by default ignores. To get Ubuntu to appear in the Startup Manager, you have to manually mount the EFI partition and copy the files in the \EFI\UBUNTU
folder to the \EFI\BOOT
folder. (Also, the copied grubx64.efi
file needs to be renamed to BOOTX64.EFI
.)
If you need to do this for two operating systems, then you will need a second EFI partition. This should not present a problem since an EFI partition is fairly small (<200 MB) and the limit on Macs by default is 128 partitions. However, to tell one operating system for the other, while viewing the choices presented by the Startup Manager, you may want to change the icons.
For example, I have rEFInd installed in a second 134 MB EFI partition on my iMac. (This happens to be the last of 9 partitions.) Additionally, I have Windows 10, Yosemite (on volume "Steelhead") and El Capitan (on volume "Steelhead2") installed. Below is a image of my Macs Startup Manager menu. (For a better view, click on the image or open in a new window.)
The icon can be changed by mounting the EFI partition and adding the icon file .VolumeIcon.icns
to the root folder. A collection of these icons, for popular Linux and other operating systems, can be found here.
Best Answer
The icon displayed in the Mac Startup Manager can be changed by putting a icon set file named
.VolumeIcon.icns
in the root folder of the EFI partition used by Windows. Or, you can follow the instructions at the end of this answer.A png file can be converted to icons file by using the commands
sips
andiconutil
. A script for doing this is given below.For example, if you were to download this Windows 10 logo png file to the same folder as the script file, then the command given below would replace the png file with a icns file. Here, the script file is named
createicns
andWindows10.png
is the png file. The result would be the creation aWindows10.icns
file, which you would rename.VolumeIcon.icns
.The label displayed in the Mac Startup Manager can be changed by using the
bless
command. Assumingdiskutil list
shows your external drive isdisk2
and the EFI partition is first on the drive, then command below would mount this partition.Assuming the EFI volume is labeled
EFI
, then the command below would change the label toWindows
.This command creates the two hidden files given below.
Afterwards, the command given below can unmount the EFI partition.
The Start Disk pane in System Preferences may not shown an Windows installation on an external drive. Or, if the installation does appear, you may not be able to successfully select the installation. AFAIK there is no fix for this.
There is an alternative where rEFInd can be used to select the default operation system directly from Windows, macOS and most Linux installations. However this requires installing a GUI script in each operation system as well as installing and configuring rEFInd.
Contents of an
icns
FileThe contents of a
icns
file can vary depending on the version of OS X or macOS you are using. The table below can be used to compare the differences between anicns
file create using El Capitan (OS X 10.11.6) and one created using Catalina (MacOS 10.15.4). Both files were creating using the same script as given above. The descriptions came from Wikipedia.A script, that can print out the types in a
icns
file, can be found in the fileNotes.dmg
, which is part of the Mac icons project.How to Install the icns File
Enter the command
diskutil list
to determine the EFI partition where the Windows 10 boot files are stored. On my Mac, I get this:The only external drive is
disk2
. The onlyEFI
partition on this drive isdisk2s1
, so this is where the Windows 10 boot files are stored. The command below will mount the volume stored in this partition.This volume appears in the Finder as
EFI
. If I right click on the the volume and selectGet Info
, the following window appears.To install the
.icns
file, drag the file and drop over the icon in the upper left corner of this window, as shown below.The result is shown below.
The
.VolumeIcon.icns
file normally does not appear in the Finder. To view hidden files in the Finder, the key combination ⌘+shift+. needs to be pressed. The image below shows all the files and folders in the root folder of the volume in the EFI partition.Finally, enter the command below to unmount the EFI volume.
References
Create a Set of Icons That Includes High-Resolution Versions
Use iconutil to Create an icns File Manually
Apple Icon Image format
SourceForge Mac icns Project