Install Bootloader and Extra to EFI Partition

Discussion in 'General Help' started by tonymacx86, Nov 12, 2013.

  1. tonymacx86

    tonymacx86 Administrator Staff Member

    Joined:
    Nov 18, 2009
    Messages:
    8,137
    Mobo:
    GA-Z170X-UD5-TH
    CPU:
    Core i5-6600K
    Graphics:
    HD 530
    Mac:
    MacBook Pro, Mac mini
    Classic Mac:
    Apple, PowerBook
    Mobile Phone:
    iOS
    Nov 12, 2013 at 2:12 PM #1
    tonymacx86

    tonymacx86 Administrator Staff Member

    Joined:
    Nov 18, 2009
    Messages:
    8,137
    Mobo:
    GA-Z170X-UD5-TH
    CPU:
    Core i5-6600K
    Graphics:
    HD 530
    Mac:
    MacBook Pro, Mac mini
    Classic Mac:
    Apple, PowerBook
    Mobile Phone:
    iOS
    efi.png
    You may or may not be aware of it, but there is a 200 megabyte partition on the root of your drive. It's the OS X EFI partition, part of OS X's default GUID partition method, which normally holds information specific to Apple hardware. For Hackintosh users, however, it has no use whatsoever. It can therefore be re-purposed to hold the bootloader, and any extra files such as DSDT, /Extra folder, org.chameleon.boot.plist, and smbios.plist.

    If you're one of those users who like an extremely 'vanilla' installation of OS X, you may want to rid your drive of all extra Hackintosh-related files. The following method will lead you through installing all of these files to your EFI partition.

    This method solves 2 current issues:

    • Legacy boot with AMD Radeon HD 7xxx and and Rx-200 graphics cards.
      • Allows full usage of Chimera/Chameleon to boot without use of integrated graphics. For details on the issue, see here.
    • Legacy boot with GPT disks on ASUS 8-series motherboards.
      • Allows full usage of Chimera/Chameleon to boot GPT (GUID Partition Table) disks. No need to format MBR.
    NOTE: This procedure is entirely optional, and will not give you any other benefits beyond cleaning the root of your install. Also, each time you want to make changes, you'll have to mount your EFI partition through the Terminal. If you're uncomfortable using the Terminal, do not proceed.

    STEP 1: BEFORE YOU BEGIN

    For the purposes of this guide, I recommend unplugging all drives except your main hard drive and rebooting. This will minimize any problems with disk number and partition number. I will use disk0 by default in this guide.

    To make sure your disk is identified as disk0:

    • Open /Utilities/Terminal
    • Type diskutil list
    If your drive's root is disk0, you're ready to begin.
    Screen Shot 2013-11-09 at 7.13.19 AM.png
    STEP 2: REFORMAT AND MOUNT YOUR EFI PARTITION

    1. Type: sudo -s
    2. Enter your password
    3. Type: newfs_hfs -v EFI /dev/disk0s1
    4. Type: mkdir /Volumes/EFI
    5. Type: mount_hfs /dev/disk0s1 /Volumes/EFI
    6. Close Terminal



    Screen Shot 2013-11-09 at 7.14.24 AM.jpg

    STEP 3: INSTALL CHIMERA TO EFI PARTITION

    Because Chimera will not be on the drive partition anymore, you must re-install it to the EFI partition. We can use Screen Shot 2013-11-09 at 7.18.36 AM.png he same Chimera binary files that are installed via UniBeast on the USB drive.

    1. Plug in your UniBeast USB Drive (Named USB for this example)
    2. Open Applications/Utilities/Terminal
    3. Type: diskutil list and locate your EFI partition. It will be under IDENTIFIER. Be sure to use the correct one. (For this example: disk0s1)
    4. Type: cd /Volumes/USB/usr/standalone/i386
    5. Type: sudo -s
    6. Type: fdisk -f boot0 -u -y /dev/rdisk0
    7. Type: dd if=boot1h of=/dev/rdisk0s1
    8. Type: cp boot /Volumes/EFI/
    9. Close Terminal

    STEP 4: COPY FILES TO EFI PARTITION

    Drag your current /Extra file to your EFI Partition. Alternately, install basic boot options, system definition, and theme from MultiBeast. If this is a fresh installation, you'll also need to install FakeSMC to your main hard drive.

    Screen Shot 2013-11-09 at 7.17.38 AM.jpg

    STEP 5: SET THE EFI PARTITION AS ACTIVE
    Screen Shot 2013-11-09 at 7.19.13 AM.png
    You now have to set the EFI partition so that your computer boots from it first. Then delete the duplicate extra files from your system drive.

    1. Open Applications/Utilities/Terminal
    2. Type: sudo -s
    3. Enter your password.
    4. Type: fdisk -e /dev/rdisk0
    5. Type: p
    6. Type: f 1
    7. Type: w
    8. Type: y
    9. Type: quit
    10. Type: rm -R /boot /Extra
    11. Reboot
    Screen Shot 2013-11-09 at 7.18.07 AM.png
    HOW TO MOUNT/UNMOUNT EFI PARTITION
    The EFI partition will not automatically mount as other partitions do at boot time. If you ever need to change/update files in the EFI partition:

    1. Type mkdir /Volumes/EFI
    2. Type sudo mount_hfs /dev/disk0s1 /Volumes/EFI
    The EFI Partition will then mount on the desktop and in Finder.
    Screen Shot 2013-11-09 at 7.34.57 AM.png If you'd rather stay out of the Terminal, you can use EFI Mounter. It's a nice little app/script you can stick in your Applications folder to mount and unmount with a click.

    Credit to Chameleon EFI install scripts/Munky's EFI install guides. Revised and reprinted from tonymacx86 Legacy Blog.
     
    cvv13 likes this.

    Attached Files:

    • Screen shot 2010-01-08 at 7.02.28 PM.png  (55.1 KB, 2,656 views)
    • Screen Shot 2013-11-09 at 7.12.20 AM.png  (55.1 KB, 2,335 views)
    Last edited by a moderator: Apr 29, 2016
  2. Hackmodford

    Hackmodford

    Joined:
    Jul 29, 2012
    Messages:
    155
    Mobo:
    GA-Z77X-UD5H
    CPU:
    i7 3770K 3.5 GHz
    Graphics:
    NVIDIA GTX 760 4GB
    Mobile Phone:
    iOS
    Nov 12, 2013 at 2:15 PM #2
    Hackmodford

    Hackmodford

    Joined:
    Jul 29, 2012
    Messages:
    155
    Mobo:
    GA-Z77X-UD5H
    CPU:
    i7 3770K 3.5 GHz
    Graphics:
    NVIDIA GTX 760 4GB
    Mobile Phone:
    iOS
    Would this work with a Fusion drive? Do you have to do it individually for each physical disk?
     
  3. tonymacx86

    tonymacx86 Administrator Staff Member

    Joined:
    Nov 18, 2009
    Messages:
    8,137
    Mobo:
    GA-Z170X-UD5-TH
    CPU:
    Core i5-6600K
    Graphics:
    HD 530
    Mac:
    MacBook Pro, Mac mini
    Classic Mac:
    Apple, PowerBook
    Mobile Phone:
    iOS
    Nov 12, 2013 at 2:16 PM #3
    tonymacx86

    tonymacx86 Administrator Staff Member

    Joined:
    Nov 18, 2009
    Messages:
    8,137
    Mobo:
    GA-Z170X-UD5-TH
    CPU:
    Core i5-6600K
    Graphics:
    HD 530
    Mac:
    MacBook Pro, Mac mini
    Classic Mac:
    Apple, PowerBook
    Mobile Phone:
    iOS
    Article: Install Bootloader and Extra to EFI Partition

    Not sure- I haven't tried it on a Fusion drive. If you do try it out, let us know!
     
  4. paranoid67

    paranoid67

    Joined:
    Sep 28, 2012
    Messages:
    7
    Mobo:
    MAC OS X
    CPU:
    i5
    Graphics:
    NVIDIA
    Nov 12, 2013 at 2:39 PM #4
    paranoid67

    paranoid67

    Joined:
    Sep 28, 2012
    Messages:
    7
    Mobo:
    MAC OS X
    CPU:
    i5
    Graphics:
    NVIDIA
    interesting but i don't think i want to give it a try at the moment...
     
  5. WonkeyDonkey

    WonkeyDonkey Moderator

    Joined:
    Aug 31, 2010
    Messages:
    3,992
    Mobo:
    Asrock Z87E-ITX
    CPU:
    Intel® Core™ i7 4790K
    Graphics:
    Nvidia GTX 760
    Mac:
    iMac, Mac mini
    Mobile Phone:
    iOS
    Nov 12, 2013 at 2:50 PM #5
    WonkeyDonkey

    WonkeyDonkey Moderator

    Joined:
    Aug 31, 2010
    Messages:
    3,992
    Mobo:
    Asrock Z87E-ITX
    CPU:
    Intel® Core™ i7 4790K
    Graphics:
    Nvidia GTX 760
    Mac:
    iMac, Mac mini
    Mobile Phone:
    iOS
    Can FakeSMC go in the /Extra/Extensions folder in the EFI partition or does it have to go in the S/L/E on the main partition ?
     
  6. tonymacx86

    tonymacx86 Administrator Staff Member

    Joined:
    Nov 18, 2009
    Messages:
    8,137
    Mobo:
    GA-Z170X-UD5-TH
    CPU:
    Core i5-6600K
    Graphics:
    HD 530
    Mac:
    MacBook Pro, Mac mini
    Classic Mac:
    Apple, PowerBook
    Mobile Phone:
    iOS
    Nov 12, 2013 at 2:53 PM #6
    tonymacx86

    tonymacx86 Administrator Staff Member

    Joined:
    Nov 18, 2009
    Messages:
    8,137
    Mobo:
    GA-Z170X-UD5-TH
    CPU:
    Core i5-6600K
    Graphics:
    HD 530
    Mac:
    MacBook Pro, Mac mini
    Classic Mac:
    Apple, PowerBook
    Mobile Phone:
    iOS
    Article: Install Bootloader and Extra to EFI Partition

    It can go in /Extra/Extensions only if you don't use kernel cache (UseKernelCache=No). This can cause other issues such as extended boot time. This was default in 10.6, but as of 10.7+ FakeSMC should go in System/Library/Extensions, or in 10.9 /Library/Extensions- but that's coming later.
     
  7. SpRoX

    SpRoX

    Joined:
    Jan 20, 2011
    Messages:
    15
    Mobile Phone:
    iOS
    Nov 12, 2013 at 2:55 PM #7
    SpRoX

    SpRoX

    Joined:
    Jan 20, 2011
    Messages:
    15
    Mobile Phone:
    iOS
    Will this work on a Win 8.1/Mavericks dual boot system, if both OS's are installed on the same drive?
     
  8. WonkeyDonkey

    WonkeyDonkey Moderator

    Joined:
    Aug 31, 2010
    Messages:
    3,992
    Mobo:
    Asrock Z87E-ITX
    CPU:
    Intel® Core™ i7 4790K
    Graphics:
    Nvidia GTX 760
    Mac:
    iMac, Mac mini
    Mobile Phone:
    iOS
    Nov 12, 2013 at 3:00 PM #8
    WonkeyDonkey

    WonkeyDonkey Moderator

    Joined:
    Aug 31, 2010
    Messages:
    3,992
    Mobo:
    Asrock Z87E-ITX
    CPU:
    Intel® Core™ i7 4790K
    Graphics:
    Nvidia GTX 760
    Mac:
    iMac, Mac mini
    Mobile Phone:
    iOS
    Article: Install Bootloader and Extra to EFI Partition

    Interesting article, thanks!

    I'll definitely be trying this out on a test setup soon.

    :)
     
  9. deomkds

    deomkds

    Joined:
    Feb 9, 2012
    Messages:
    1
    Mobo:
    OS X Yosemite 10.10.5
    CPU:
    Core i3 2310M
    Graphics:
    Intel HD3000 (0116)
    Mobile Phone:
    Android
    Nov 12, 2013 at 3:11 PM #9
    deomkds

    deomkds

    Joined:
    Feb 9, 2012
    Messages:
    1
    Mobo:
    OS X Yosemite 10.10.5
    CPU:
    Core i3 2310M
    Graphics:
    Intel HD3000 (0116)
    Mobile Phone:
    Android
    If I do this, can I format the system without worrying about reinstalling the bootloader each time?
     
  10. PencilNotPen

    PencilNotPen

    Joined:
    May 21, 2012
    Messages:
    72
    Mac:
    iMac, MacBook Pro
    Nov 12, 2013 at 3:18 PM #10
    PencilNotPen

    PencilNotPen

    Joined:
    May 21, 2012
    Messages:
    72
    Mac:
    iMac, MacBook Pro
    Good guide, thanks!
    Are important changes ever made to the boot files in Chimera? For example, will this process have to be repeated with newer chimera boot files as newer versions of OS X are released in order to allow the computer to continue to boot the newer versions?
     

Share This Page