A Safe Haven From the World

Archive for January, 2013

Dual-booting Windows 8 and Mountain Lion natively using EFI

with 123 comments


This is NOT about installing Windows 8 on a Mac, this is about using Apple’s EFI to boot Windows.

(If you don’t know what an EFI is, see Wikipedia)

Okay, so here’s what’s going on:

Apple has used EFI to boot OSX for years, but Windows has not supported this method of booting.

With Windows 8, Microsoft claims that you can boot with EFI so long as the drive you’re booting on has an efi partition and uses a GUID partition table.

Here’s the kicker, for years now, OSX has been using a Hybrid MBR partition table… that is they are using a GUID partition table with a matching MBR partition table embedded into it. This means that older versions of Windows can see the partition information from the older MBR system and will work properly using a legacy bootloader. But if you have an EFI installer for Windows, it will not let you install (or even BSOD!) if you try to use it as it sees the MBR and ignores the GUID.

A lot of posts online cite that Apple’s EFI implementation is based on EFI v1.1 and that Windows supports only EFI v2 and newer. This is NOT the case. It doesn’t work because the Windows installer sees the MBR in the hybrid partition table and decides that you are NOT using a GUID partition table even though you are.

Luckily, there is a way around this to get a fully native EFI-booted Windows 8 installation! But beware, this path (while awesome) is paved with daggers, so be prepared to pull your hair out in frustration.

Warning: These steps require you tocompletely  erase your hard drive! Make sure you have all the materials and have backed up all of your data before proceeding.


  • A recent MacBook Pro (this will probably work on other Macs, but I don’t have any to test with) I’ve tested this on the 1st-gen Retina 15″ and a 13″ 2nd-gen i5 model.
  • A disk drive capable of reading DVDs (you’ll need an external drive for MacBook Retinas or MacBook Airs)
  • A Mountain Lion Install Disk or Netboot Installer
  • A CD/USB drive with the “Windows Support” files from Bootcamp
  • A Windows 8 Pro Install DVD


  1. Put the Windows 8 Disk in the disk drive
  2. Option-boot the computer and choose to boot off the “Windows” disk (Do not choose “EFI Boot” but make sure that it does show up, you’ll need to use it later)
  3. Once the installer gets to the setup screen, hit shift+f10. This will bring up a command prompt
  4. Type the following commands (this assumes that you only have one hard drive):
    1. diskpart (this puts you into the windows partitioning shell)
      1. select disk 0 (this selects the primary hard drive, make sure you don’t have any extra drives connected)
      2. clean (this erases your entire hard drive by removing all partition information)
      3. convert gpt (this converts your hard drive from an MBR partition table to a GUID partition table)
      4. create partition efi size=200 (this creates the efi partition where the bootloader will live)
      5. format fs=fat32 (this formats the EFI partition as fat32 so that Windows can write to it)
      6. create partition msr size=128 (this creates a “MicroSoft Reserved” partition… because microsoft)
      7. create partition primary (this uses the rest of your free space to create a usable partition)
      8. format fs=ntfs quick label=Windows (this formats the Windows partition and labels it as “Windows” which is what OS X will see)
      9. exit (this exits the windows partitioning shell)
    2. wpeutil reboot (this tells the computer to reboot)
  5. Option-boot the computer when it reboots, but this time choose “EFI Boot” instead of “Windows”
    1. Remember to press the any key to boot into the installer!
  6. Choose to use a Custom Install and install Windows 8 to “Partition 3” (The only primary partition)
    1. Make sure you leave the install disk in the drive through the whole install or you could get a BSOD
  7. Install the Windows Support software from your CD/USB drive to gain full functionality of your computer
    1. Congratulations! You now have a natively-EFI-booting Windows 8 Install! Now, on to dual-booting OSX…
  8. Open “Disk Management” in Windows.
    1. Find your “C Drive” partition and resize it by right-clicking on it and choosing “shrink volume”
      1. Shrink it by the size you’d like your OSX installation to be. ie. if you want to give OSX 100GB, use 102400MB
    2. Right-click on the now empty area at the end of the drive and make a new “Simple volume” Don’t format it.
  9. Reboot the computer into your OSX install disk/Netboot
  10. Open Disk Utility
    1. Choose “disk0s4” as this will be the 4th partition on disk 0
    2. On the “Erase” tab choose “Mac OS Extended (Journaled)” since this is what OSX likes to use.
    3. Give it a label that you like (Apple defaults to “Macintosh HD”)
    4. Hit Erase
    5. Exit Disk Utility
  11. Install OSX on your new partition.
  12. Congratulations! You are now dual-booting OSX and Windows in a 100% EFI environment! Happy computing 🙂

Note 1: If you get a BSOD during install, make sure that you have NOT removed the Windows 8 install DVD from the disk drive… during install, removing the DVD at any time will produce a BSOD even though the OS no longer needs the disk to install.

Note 2: Windows now shows up in option-boot as “EFI Boot” instead of “Windows”

Note 3: Because we created the partition that OSX uses in windows, it no longer shows up in “My Computer” in Windows… Here’s how to fix that:

  1. Open “Disk Management”
    1. Right-click on the partition that you created for OSX (it should be labeled as an HFS partition)
    2. Choose “Change Drive Letter and Paths”
      1. Choose “Add”
        1. Assign it to a drive letter of your liking… I used “E”
        2. Hit OK
      2. Hit OK again
  2. You now have read-only access to your Mac Partition!

Update 1: I’ve been informed that for some models the sound does not work in Windows when booted via EFI. It appears to affect models that use the Cirrus audio controller. I’ve gotten ahold of a test unit and will see if there’s a workaround.

Update 2: Added formatting into step 4 to resolve possible BCD-related problems.

Update 3: Added “select disk 0” to step 4, you can’t do anything if you don’t specify the disk.

Written by David

January 18th, 2013 at 12:51 pm

Posted in EFI,OSX,Windows

Tagged with , , , , ,

Apple OSX Mountain Lion (10.8) Fix List

with one comment

Ok, so Mountain Lion (10.8) is worlds better than Lion (10.7), but it still does some silly things… this is how to fix it:

In System Preferences:


  • Sidebar Icon Size -> Small; You can actually see all the sidebar items in Finder now!
  • Show Scroll Bars -> Always; (This one is up to your preference)
  • Check “Close windows when quitting an application”; The window auto-open feature is annoying as hell…


  • Check “Double-click a window’s title bar to minimize”; Why did they ever disable this feature?

Mission Control:

  • Uncheck “Show Dashboard as a space”; Why does it use up a whole desktop for gadgets? Let’s put dashboard back how it was…
  • Uncheck “Automatically rearrange spaces…”; Why do my desktops not stay in order, when they automatically change order it’s easy to lose track of what you’re doing!

Language & Text: “Text” Tab:

  • Uncheck “Correct spelling automatically”; If you thought autocorrect on a smartphone was bad, check it out on your computer…

Security and Privacy:

  • Allow applications downloaded from: Anywhere; Thank you Apple, I know where I got my program…
  • “Privacy” Tab: Diagnostics and Usage: Uncheck “Send…”; I’m sure you already know this one…
  • I trust you to know what rest of these settings should be thanks to common sense and your own preferences


  • If this is an option, set this to either “Scaled” or “Manual”; the best option is the option you have actual control over…

Trackpad: “Scroll & Zoom” Tab:

  • Uncheck “Scroll direction: natural”; Natural? You’re calling the opposite of what everyone has been doing for over a decade natural? WTF?

Network: “Wi-Fi” Section:

  • Uncheck “Ask to join new networks”; Seriously, I’ll connect to a network when I’m ready to connect, not before… your popup is just in my way Apple.

In Finder:(In Finder Preferences)

“General” Tab:

  • Check all the things you want on your desktop, why they got rid of Hard Disks and such from this, I have no idea.
  • “New Finder windows show”: your profile or the root of your hard drive… duh…

“Sidebar” Tab:

  • Uncheck “All My Files”; This feature is totally worthless… thanks Apple.
  • Check your profile… you know, so you can get to it easily…
  • Check “Hard disks”; This one looks like it’s already checked, but it’s not, it doesn’t show your system drive… make sure it shows a check mark in the box.

“Advanced” Tab:

  • Check “Show all filename extensions”; Because we’re not dumb users, we want to see what the extension is so we can decide what to open it in.
  • “When performing a search”: “Search the Current Folder”; If I want to search the whole drive, I’ll either use Spotlight or start the search from the root of the drive…


Also, if you like your desktop icons to be orderly you can right-click on the desktop and click “Show View Options”. If you set “Sort by” to “Snap to Grid” all the icons will align themselves in a grid pattern wherever you drop them.

And last, but not least: When you shut down, press spacebar to uncheck the “Reopen windows when logging back in” option. This should then remain unchecked in future reboot cycles.

That’s it, I’m probably missing a few things, but this should make things a bit better for the user that doesn’t care about how Apple says it SHOULD be.



Written by David

January 14th, 2013 at 10:22 pm

Posted in OSX

Tagged with , , , ,