iMac - Install Dual Boot Windows on old upgraded iMac
I recently decided to install Windows 10 on my iMac as a secondary OS. Turns out, this is more difficult than just inserting a DVD and hit install since I upgraded my mid-2011 iMac with an external SSD as the main operating system.
This is a guide on "How to install Windows 10 on an old upgraded iMac".
- Deactivate System Integrity Protection
- Boot on old OS
- Download necessary files
- Create partition
- Setup partition table
- Setup VirtualBox
- Install Windows
- Start Windows
- Install Windows drivers
- Activate SIP
- Related links
- Upgraded iMac mid 2011 - I previously upgraded my iMac with an external SSD to make it faster. This guide will work on many other platforms (presumingly) but I couldn't verify which systems. Let me know if it worked on your particular setup.
- At least 40Gb storage on your external SSD - That space will be used for the Windows installation.
- USB Stick with at least 8Gb - We will copy the windows drivers onto there. You could use this one here: SanDisk Ultra 32GB *
Deactivate System Integrity Protection
El Capitan's System Integrity Protection is a new feature which prevents even the administrators to overwrite or modify any system files. Thus, this feature is essential for increasing system security on the operating system. Hence, please make sure to re-enable this feature as soon as you are done with this guide.
- Restart your iMac.
- Hold down Command-R until you see a progress bar.
- In the top menu, select Utilities and than Terminal.
- Type in
csrutil disable(Terminal should say that SIP is disabled).
- From the Apple menu, restart your iMac
- (Make sure that you reenable that feature after you are done with this guide using
Boot on old OS
Since we want to install Windows 10 on the SSD (to make it run faster) and we have to modify the SSD partitions to do so, we have to start using the old installation of the OS (which you should have kept). If you don't have the OS installation on the HDD anymore, this guide might work with some slight modifications but I cannot guarantee.
- Restart your iMac
- Hold the Command key
- Select your HDD as the boot device
Download necessary files
We will need those programs and files in order to set up Windows 10. We will use VirtualBox as a way to start the Windows installation on the SSD (on a separate partition). This partition will be modified using GPT fdisk. We will use the ISO file for the installation and in order to install the iMac specific drivers, we have to download those from Apple using BootCamp.
- Download Windows 10
- Download drivers for Windows 10
- Start the BootCamp program installed under Application -> Utilities
- From the menu, select Actions -> Download Windows Support Software (If this step fails please consult Step 2 and 3 of this guide)
- Copy all its content onto a USB-Stick (formatted for Windows).
- Download and install GPT fdisk (The installation might prompt an unsigned app. Right click on the file and hit open.)
- Download and install VirtualBox (only for installing; can be deleted afterward.)
We are preparing the SSD by splitting the filesystem that is currently installed (i.e. the MacOS) into two, one for MacOS and one for Windows. To do so, we have to reduce the size of the MacOS system, since we can not have two operating systems on one partition.
- Start Disk Utilities from Applications -> Utilities
- Choose the SSD where you want to install Windows on (not the partition on that drive).
- Click the button called "Partition"
- Click the little + button underneath the cake chart
- Resize the new partition to at least 40Gb (better is 60Gb) (Make sure you have enough free space on the SSD)
- Rename the new partition to BOOTCAMP
- Select FAT as the format.
- Click Apply (will take about a minute).
Setup partition table
Windows installations require a GUID Partition Table (GPT) in order to be installed on a hard drive with EFI boot (what we want). Thus, we want to convert our hybrid MBR back to a GPT disk partition. That is where we use the GPT fdisk tool.
- Open the terminal (Applications -> Utilities)
diskutil listand find our BOOTCAMP partition. Remember the disk number found under the identifier (i.e. disk1s1 -> disk1).
sudo gdisk /dev/disk0but instead of disk0 use the disk part from the previous step
- You will have to enter your password (you will not see that you are typing). Submit using Enter.
- Type p and submit with Enter. Verify that the BOOTCAMP partition is listed (Else hit CTRL+C and restart from 2.).
- Type x + Enter to start expert mode.
- Type n + Enter to create a GPT. (The program will print nothing...)
- Type w + Enter to write this change.
- Close the terminal
In order to install Windows to the SSD (which is not the main hard drive of your system), we have to use a virtual environment. We will use VirtualBox since it is free to use. However, before VirtualBox can write to our SSD, we have to eject all the partitions from the SSD card (do so by right-clicking them).
- Open terminal (Application -> Utilities)
diskutil listand search for the BOOTCAMP partition and remember the disk on which it is (disk1 in my case).
- Create a virtual disk using this command:
sudo VBoxManage internalcommands createrawvmdk -filename “bootcamp.vmdk” -rawdisk /dev/disk1where you have to replace disk1 with your actual disk.
- Enter your password and submit using Enter. (If this step failed with a "Resource busy" error, you didn't eject all partitions from that external device).
- Start VirtualBox using this command:
sudo /Applications/VirtualBox.app/Contents/MacOS/VirtualBoxwhich will open the program.
- Click the "New" button in the toolbar
- Enter a name like "Win10" and set the type to "Microsoft Windows" with version "Windows 10 (64-bit) and continue.
- Accept the default memory size (is only used for the installation and not for running Windows 10).
- In the Hard Disk prompt, select "Use existing virtual hard disk file" and select the file you created called "bootcamp.vmdk" (located under your home folder).
- Click "create".
- Under "Storage" you see "SATA Port 0: bootcamp.vmdk". Click add and select the Windows 10 ISO file you have downloaded earlier.
Now it is finally time to install Windows. But you might have already expected it will not be as straight forward as a normal Windows installation.
- Start the VirtualBox instance you've created beforehand
- Follow the Windows installation until you can select "Custom: Install Windows only (advanced)"
- You will see a list of all partitions on your machine. Select the "BOOTCAMP" partition.
- Since this partition is not in NTFS format, we have to format it Do not delete this partition. Just format it.
- After this formatting is done, hit Next.
- Windows is installing!
- When the message "Windows needs to restart" appears: You have to kill the VirtualBox by closing the window it is in and then "Power off".
At this point, you have successfully installed Windows and all that is left to do is to install the drivers (which will be as simple as executing a setup file).
In order to boot to your second operating system (in fact the third one: twice MacOS and once Windows) you have to restart your mac and start the boot menu:
- Shut down your machine.
- Turn on your iMac and immediately hold down the Option key.
- Select the BOOTCAMP partition
- Proceed with the Windows installation (wireless mice and keyboards won't work until we have installed the drivers in the next step...)
Note: this can take a little while...
Install Windows drivers
Installing the drivers is as simple as installing the software that you already loaded onto the USB-Stick:
- Open Windows Explorer (if you have a wired keyboard press Win+E or for an Apple keyboard layout Command + E).
- Navigate to your USB-Stick
- Open the folder called "Windows Support Software" and then "BootCamp".
- Execute the "Setup.exe" file
You have successfully installed Windows under your iMac. Please don't forget to activate the SIP again:
See the first section of this guide.
Many thanks to the following articles that helped me to put this article together:
Reference 1: Tom Nelson. "Tech Tip: How to Use Boot Camp on an External Drive". Internet: https://blog.macsales.com/40947-tech-tip-how-to-use-boot-camp-on-an-external-drive, May 9, 2017 [Jan. 31, 2019].
Reference 2: Github user OZNU. "How to Install / Bootcamp Windows 10 on a mid-2011 iMac using USB". Internet: https://gist.github.com/oznu/8796d08d73315483c3b26e79a8e3d350, Apr. 4, 2016 [Jan. 31, 2019].
* Everything followed by a star (*) is a link from the Amazon Partner program. This program allows me to earn a little bit of money if you buy a product after clicking this link. Note that this does not effect the price of the product, so you have no disadvantage using this link. Learn more here!