This article will show you an extremely easy way to add Windows 8 to your Hackintosh boot drive in just a few simple steps. This should work with any Lion or Mountain Lion install with your current bootloader as long as the logic board is full UEFI. Be prepared to re-install your bootloader's boot files if necessary.
CREDIT
This process was originally suggested by a guide at Mac-Hacks and enhanced in a tutorial at Gadget Unit. I further enhanced the process for Hackintosh.
PREPARATION
You will need your original OS X Installer drive. You will also need a Windows 8 Installer. Either the DVD or an ISO copied to an 8GB memory stick. If your Windows 8 DVD won't boot via EFI, you will have to set the Firmware Boot OS setting to Other rather than Windows 8, at least until after installing Windows 8. This will allow booting the DVD.
The easiest way to copy the Windows 8 ISO to a memory stick from OS X is to mount the ISO by double-clicking the file and format a USB flash drive in MS-DOS (FAT) with Disk Utility. Then open Terminal and enter the following:
That's it! Give it a few minutes to complete. When it's done, unmount both and remove the USB Drive. I recommend that any external drives are removed until this install is complete.
RESIZE OS X
Insert your OS X Installer drive and startup from it. Proceed to run Disk Utility. Select your boot drive (The drive above your Boot Volume).
Attachment 5247
Select the Partition tab and then adjust the size of your Mac OS volume to clear the space for Windows below it.
Attachment 5248
Press Apply to confirm the changes. If your OS X install has a Recovery partition, it will have automatically moved to immediately after the reduced partition. Quit out of Disk Utility and select Shut Down from the Apple menu.
INSTALL WINDOWS 8
Remove the OS X Install drive and insert the Windows 8 Install disk. If using the Windows 8 DVD, startup the computer, insert the DVD. Press the key to select Startup Drive for your computer and boot the Windows 8 Installer.
At the initial Installation screen, press <Shift> + <F10> to open the Command Prompt screen. Enter diskpart and then the following commands:
We have now created all the partitions necessary for a proper Windows 8 install. Now we need to copy over the Installation files to the Windows partition. Enter the following commands:
The dism (Deployment Servicing and Management) tool is now installing the typical Windows 8 install to your Windows partition. This is going to take a few minutes. Now's a great time to take a break and stretch
Next we'll install the Windows EFI boot files:
You should receive a message that the boot files were successfully copied. You should now shutdown and remove your Windows Installer drive. Note, the final parameter, /f UEFI is really only necessary if you are installing from a DVD that booted through the Legacy loader.
Restart your computer pressing the necessary key to select the boot drive and select the EFI Partition. If you used Clover, simply select the Windows EFI Startup. Windows should proceed to complete the installation. When prompted, enter your Activation information.
RESTORE BOOTLOADER
If you have Clover installed, then all you need to do is set Clover Boot as the first EFI option your firmware's boot list.
Other bootloaders simply require booting through your USB Installer and running the bootloaders installer again. If available, you can use the custom option of installing Boot0 only since that's all the Windows install would have changed.
CREDIT
This process was originally suggested by a guide at Mac-Hacks and enhanced in a tutorial at Gadget Unit. I further enhanced the process for Hackintosh.
PREPARATION
You will need your original OS X Installer drive. You will also need a Windows 8 Installer. Either the DVD or an ISO copied to an 8GB memory stick. If your Windows 8 DVD won't boot via EFI, you will have to set the Firmware Boot OS setting to Other rather than Windows 8, at least until after installing Windows 8. This will allow booting the DVD.
The easiest way to copy the Windows 8 ISO to a memory stick from OS X is to mount the ISO by double-clicking the file and format a USB flash drive in MS-DOS (FAT) with Disk Utility. Then open Terminal and enter the following:
Code:
sudo ditto <drag mounted Windows Installer Here> <drag mounted USB Drive here>
That's it! Give it a few minutes to complete. When it's done, unmount both and remove the USB Drive. I recommend that any external drives are removed until this install is complete.
RESIZE OS X
Insert your OS X Installer drive and startup from it. Proceed to run Disk Utility. Select your boot drive (The drive above your Boot Volume).
Attachment 5247
Select the Partition tab and then adjust the size of your Mac OS volume to clear the space for Windows below it.
Attachment 5248
Press Apply to confirm the changes. If your OS X install has a Recovery partition, it will have automatically moved to immediately after the reduced partition. Quit out of Disk Utility and select Shut Down from the Apple menu.
INSTALL WINDOWS 8
Remove the OS X Install drive and insert the Windows 8 Install disk. If using the Windows 8 DVD, startup the computer, insert the DVD. Press the key to select Startup Drive for your computer and boot the Windows 8 Installer.
At the initial Installation screen, press <Shift> + <F10> to open the Command Prompt screen. Enter diskpart and then the following commands:
Code:
list disk
select disk X X = The disk number of your destination drive. Usually 0.
list partiton Verify that you have partition 1-EFI, 2-OS X and possibly 3-Recovery.
create partition msr size=128
create partition primary
format fs=ntfs quick label=Windows
assign letter=C
select partition 1 This is the System or EFI partition.
assign letter=S
list volume Note the letter of your Install drive or DVD. I'll assume it's D. If not, change the D designations below accordingly.
exit
We have now created all the partitions necessary for a proper Windows 8 install. Now we need to copy over the Installation files to the Windows partition. Enter the following commands:
Code:
cd \Windows\System32\
dism /apply-image /imagefile:D:\sources\install.wim /index:1 /applydir:C:\
The dism (Deployment Servicing and Management) tool is now installing the typical Windows 8 install to your Windows partition. This is going to take a few minutes. Now's a great time to take a break and stretch
Next we'll install the Windows EFI boot files:
Code:
C:
bcdboot C:\Windows /l en-us /s S: /f UEFI
You should receive a message that the boot files were successfully copied. You should now shutdown and remove your Windows Installer drive. Note, the final parameter, /f UEFI is really only necessary if you are installing from a DVD that booted through the Legacy loader.
Restart your computer pressing the necessary key to select the boot drive and select the EFI Partition. If you used Clover, simply select the Windows EFI Startup. Windows should proceed to complete the installation. When prompted, enter your Activation information.
RESTORE BOOTLOADER
If you have Clover installed, then all you need to do is set Clover Boot as the first EFI option your firmware's boot list.
Other bootloaders simply require booting through your USB Installer and running the bootloaders installer again. If available, you can use the custom option of installing Boot0 only since that's all the Windows install would have changed.
source
source
Post a Comment