Boot Camp El Capitan

Boot

Nov 10, 2015 On supported Macs running OS X El Capitan, Boot Camp comes with a modified interface that places the ISO image selector and partitioning on a single screen, allowing a user to easily select an ISO. It seems, from reading the comments on the page, that it's probably limited to the latest version, due to the way the older macs use a bios emulation. I tested it on the mac i have here, a 2011 macbook pro 13 inch, and i can confirm the type of screen they speak of, isn't on mine either.

With Apple’s new System Integrity Protection (SIP) in OS X 10.11, the Mac is now ever more secure. But with SIP comes some additional restrictions that affect how System Administrators can make Windows bootable during deployments.

SIP prevents any user (including the all powerful root user) from writing to specific locations in OS X (mainly in the System Folder). Rich Trouton has some great info on SIP at his Der Flounder blog here that cover the folders that are protected and some great information on NetBoot and SIP.

One of the protections that SIP puts into place is a restriction from modifying the startup disk programatically:

If you're running OS X El Capitan 10.11 or later on a Mac, Windows installation is going to be a breeze since those models use the computer's internal drive to temporarily store Windows. I had a Windows partition before I installed El Capitan, and now I can't boot into it. Recovery/transformation command (? For help): v No problems found. 271968965 free sectors (129.7 GiB) available in 2.

Configuring System Integrity Protection (developer.apple.com)

Note: To safeguard against disabling System Integrity Protection by modifying security configuration from another OS, the startup disk can no longer be set programmatically, such as by invoking the bless(8) command.

You can still set the Startup Disk using the Option key at startup, or by using the Startup Disk System Preference Pane. However, you can no longer change NVRAM or the boot sector on the disk. NVRAM holds the currently selected disk for next reboot.

In prior versions of OS X, you would use the “bless” command to change the bootable disk. This now fails, as “bless” writes to NVRAM, which is protected by SIP (even for the root user). Bless is still on the system for a couple of reasons. First, if SIP is disabled, the prior functionality returns. Second, Apple utilities (such as the Startup Disk preference pane) use bless to set the selected startup disk. But how is Apple able to use “bless” and restrict its use for anyone else? OS X uses digital signatures to determine if bless can be run. Only Apple apps signed with a identity from Apple and a correct entitlement are allowed to run the bless command.

This all relates to Boot Camp and booting Windows through the boot sector. The boot sector is the first sector on a hard disk, and is usually used when legacy booting Windows. SIP restricts access to the device that OS X is booted from (usually /dev/disk0), even for the root user.

This is where the situation gets interesting. Modern Macs always boot via EFI, but Windows hardware has only recently started natively booting EFI. While there was some support for EFI booting Windows 7, Apple didn’t support EFI booting Windows until Windows 8. With the newest Apple hardware, Windows 8 or later is required, and EFI booting is the only way that Windows will boot on the Mac.

Usually you don’t have to worry about any of this, since Boot Camp Assistant and the Windows installer will set everything up correctly. But what happens if you are mass deploying Boot Camp and having issues?

If you use Disk Utility to create a Boot Camp partition on El Capitan (10.11) or earlier, OS X will create what is called a “hybrid master boot record (MBR)”. This lets Windows boot via “legacy” mode, which (as mentioned before) is not supported on the newest Macs. You can see it in OS X using the fdisk command:

SIP does not prevent you from reading information (such as the Master Boot Record), but does prevent any writing to the MBR.

If you use Boot Camp Assistant to create the Boot Camp partition, you’ll get a standard EFI “guard” MBR:

The hybrid MBR has an entry for each of the first 4 partitions. The guard MBR has only a single entry that covers the entire disk (used to protect legacy tools from doing bad things).

The difference is important, since it affects how Windows will boot. If Windows 7 or earlier is running on older Macs, it needs to have a hybrid MBR. If Windows 8 or later is running new Macs, a standard “guard” MBR is required. If the wrong type is used, Windows will refuse to boot (usually with a black or blue screen). The common way to resolve this issue was to write a new MBR, but since SIP restricts access to the master boot record, it seems impossible unless you disable SIP.

However, there are a couple of workarounds. Since Apple tools can write a MBR, you can use this to get the MBR in the correct mode. Here are the tools and what they do:

Disk Utility (or diskutility command line):

  • If a FAT or XFAT partition is created in partition 4, a hybrid MBR is created.
  • If a HFS+ partition is created in partition 4, a guard MBR is created.
  • If partition 4 is erased (rather than deleted and then created), the MBR will not change.
  • If a partition is deleted and partition 4 becomes a Windows partition, a hybrid MBR is written.

Boot Camp Assistant

  • New Macs (support only Windows 8 and later): A guard MBR is written.
  • Older Macs (supporting Windows 7): A hybrid MBR is written.

Using these tools, you can create the MBR in the state that you want. If you are on a newer Mac, and want a guard MBR, you have 2 options:

1. Use Disk Utility, and create a small (10 MB or so ) HFS+ partition at partition 4 and the Windows partition at partition 5. You can also use the disk utility command line:

This takes a standard OS X partitioned disk and shrinks the OS X partition to 400 GB, create a 10 MB HFS+ partition, and fills in the rest of the space with a MS-DOS partition.

This results in a guard master boot record. You can’t delete the HFS+ partition after Windows is installed since that results in a hybrid MBR being written.

Boot Camp For El Capitan

2. Use Boot Camp Assistant. Boot Camp assistant will create a disk layout that looks like this:

You can see from the above screen shot that the BOOTCAMP partition is created on slice 5, right after the OSXRESERVED partition used to install Windows. After the next reboot into OS X, OS X will automatically delete the OSXRESERVED partition and put the space back into Core Storage. When this partition is deleted, the MBR is not converted from guard to hybrid. The MBR will remain a guard MBR, which is exactly what you want for EFT-booting Windows such as Windows 8 or later.

Apple is making great strides in securing OS X, and SIP goes a long way to protect the system. With some knowledge and understanding, you can still get the same or similar behaviors from prior versions of OS X, and with the extra protections of SIP.

Do you have Windows running on your Mac in a Boot Camp partition? Check out Winclone and Boot Runner to backup, migrate, and manage your Boot Camp partition.

Find this article interesting? Let me know what you think by tweeting at me on Twitter: @tperfitt

Contents

2. El Capitan Features
3. El Capitan Download & Install
  • 3.3 Dual Boot Windows 10 on Mac OS X 10.11
4. OS X 10.11 Problems
5. Mac OS X 10.11 Tips
6. Software for OS X 10.11
7. Compare OS

Not only has Apple been diligently working on a new OS, El Capitan, but Microsoft isn’t too far behind, either. In fact, their newest version of Windows is, in my humble opinion (although there are a lot of people who agree with me), the best one they’ve ever released. Many of us were unhappy with how Windows 8 looked, but the creators rectified that mistake by combining the familiarity of Windows 7 with the productivity of its successor.

Another great thing about this new OS is that is not solely available to Microsoft users, but Apple users can enjoy it, as well. Now, as a Mac user, you probably don’t want to part with your iOS, especially since you’ve gone through all that trouble of downloading El Capitan while it’s still in beta. What you can do is dual boot them, so you’ll get the best of both worlds. If you don’t really know how to go about this, I will walk you through the process.

Capitan

Detailed Guide to Twin Boot Windows 10 on Mac OS X El Capitan

You don’t have to install Mac OS X El Capitan on your Mac device, you can also install it on an external hard drive, most especially when you want to access the OS quickly. You can consider Thunderbolt drives which are similar to the internal drives on Mac, or you can simply use the USB 3.0 external drive if you don’t have the Thunderbolt on your Mac. You will have to format an external drive before installing Mac OS X El Capitan, this will help to install the Mac OS X El Capitan safely on the hard drive and at the same time the configuration of your device will not be changed.

Step 1. Download Windows 10

Obviously, you need an Internet connection, but I don’t want to be Captain Obvious here. So, go to their download page and sign up for the Insider Program. Once you’re signed in, scroll down and you’ll see two ISO files: x64 or x86. Depending on your OS, choose the one you need. If you’re not sure, x64 is for 64-bit OS, while x86 is for 32-bit. Not that x64 can install both version, but it’s still recommended to use the one that is more suitable.

Step 2. Create W10 Installer

For this step, you’ll need Boot Camp Assistant. Open it up and check the options that say “Create a Windows 7 or later version install disk” and “Download the latest Windows support software for Apple,” then click 'Continue'. Now insert a USB drive into your computer (it has to have at least 16GB) and move the Windows ISO file to it. Boot camp will then ask you to confirm it, since the flash drive will be converted to FAT and everything on it will be deleted, so click 'Continue'. The file will start copying and will be renamed to WININSTALL. It shouldn’t take more than 10 minutes and, once it is done, you can move on to the next step.

Step 3. Make a new Partition

What will make this process easier is that you’ll be able to use Boot Camp Assistant for it, as well. Instead of checking the same boxes you did last time, select the one that says 'Install Windows 7 or later version' and go to 'Continue'.

CampStep 4. Choose a Size

Next, you’ll be asked to choose the size of your partition. You can go with any size that you want, but it’s recommended to have at least 30GB if you’re trying to install Windows 10 for the first time, or 40GB if you’re just updating it. It’s better to choose a little more extra space, just in case. Once you do that, click on 'Install'. When the installation has finished, your Mac will automatically restart.

Step 5. Set up Windows 10

Next, you’ll see the logo of Windows. Choose the language you want the OS to use and hit 'Install'. You’ll see two types of installation: the Upgrade and the Custom one. Choose the custom one and the partition you’ve created earlier. When you're done with that, click on 'Format' and then, 'Next'. Then you just wait until Windows finishes the rest on its own.

Step 6. Sign in

You’ll be asked to create an account and set up a pin, just like you would if you were installing it on a Windows computer. The only new thing with Windows 10 is that there’s now a pin, not a password, but it’s pretty similar, so you shouldn’t have any trouble with it.

Step 7. Juggling between Windows 10 and El Capitan

From that point forward, you can normally use your new Windows 10. In case you want to switch between the two systems, you just need to turn off your computer and hold the Alt key when it’s booting again. It will open the 'Start Manager' where you can choose to use either Windows or Apple.

El Capitan Camp Site

Step 8. Removing Windows 10 (Optional)

El Capitan Beach Camping

If at any point you decide that you don’t want to have Windows 10 on your Mac, you can simply delete it. What you do is you go to 'Disk Utility', select the file that should be called Macintosh HD and click on 'Partition'. Then, choose the smaller one on the bottom that is untitled and click the minus (-) sign. Click on 'Remove' and voila – Windows 10 will be deleted, alongside anything you had stored on it.