In the end, I couldn't make the machine boot from the DVD. However, I found a workaround that I want to share for anyone with a similar problem: I used VMware Fusion to boot the Boot Camp partition from OS X. I then set up the VM to boot from the iso I made the DVD from (might have worked with the DVD as well, didn't try). After running through the part of the installation where the base system was written to disk and the system wanted to restart, I turned off the VM, booted from the Boot Camp partition and (with Win7 DVD in drive) then ran through the rest of the installation procedure without problem.
I am not really sure why you would want to install Windows 8.1 without BootCamp.
The USB stick needs to be a little bigger than the .iso
file you are going to be burning. It doesn't matter if there is any data on it, this will totally erase the whole thing.
Steps To Achieve Victory
- Download the ISO you want to use
Open Terminal (in /Applications/Utilities)
2.1 Navigate to the path where the .iso file is located
2.2 Use ls
to list all the folders
2.3 cd /path/to/iso
to dive in to folder or cd ..
to go back the path
- Convert
.iso
to .img
using hdiutil:
hdiutil convert -format UDRW -o /path/to/target.img /path/to/source.iso
- Rename if OS X gave it a
.dmg
ending:
mv /path/to/target.img.dmg path/to/target.img
- Type
diskutil list
to get a list of currently connected devices
- Insert USB drive you want to use
- Run
diskutil list
again to see what your USB stick gets assigned
eg - /dev/disk3
- Run
diskutil unmountDisk /dev/diskN
(where N
is the number assigned to your USB stick, in previous example it would be 3
)
- Run
sudo dd if=/path/to/target.img of=/dev/diskN bs=1m
(if you get an error, replace bs=1m
with bs=1M
- Run
diskutil eject /dev/diskN
and remove your USB stick
- The USB stick will now be ready to use
IMPORTANT For the step #9 you can use the destination to /dev/rdiskN
to reduce the copy time.
NOTE: Sometimes, not always, Step #4 will be necessary. Not all the time. I am not sure why it will add the .dmg
ending and other times leave it alone.
NOTE 2: Might I suggest you learn the name of the .iso
you downloaded, or just rename it win8.1.iso
or something, and put it on your Desktop folder. That way, when you are typing commands like #3 and #4 etc, etc, you can type it like this:
hdiutil convert -format UDRW -o ~/Desktop/win8.1.img ~/Desktop/win8.1.iso
and
mv ~/Desktop/win8.1.img.dmg ~/Desktop/win8.1.img
and step #9 would look like this:
sudo dd if=~/Desktop/win8.1.img of=/dev/diskN bs=1m
IMPORTANT - You can track the progress by pressing CTRL + T It will show the process info and records in and out, since we use the bs=1m
each record is 1Mb in size so you can easily track the progress.
I don't mean to be insulting with Note and Note2, I am just making sure that you know what all these commands mean. It's the simplest method. Unless someone else comes up with something better.
Best Answer
Installing Windows 7 or 10 Pro 64 bit without DVD or Flash Drive
If you are trying to install Windows 7 on a 2012 through 2014 Mac, then you should read my answer to this question.
Here I assume your computer is configured as required by the Boot Camp Assistant. (In other words, you will be installing Windows to the 4th partition on disk 0.) Also, your firmware is up to date and you have downloaded the correct "Boot Camp Support Software" for your model Mac computer. Before starting, remove all DVD's and external devices from your Mac.
(Hint: For a better view, click on an image or open an image in a new window.)
Create a MS-DOS (FAT) formatted partition on your Macs internal drive. This is where Windows 7 will be installed. You can use the Bootcamp Assistant, the Disk Utility, or commands (
distutil
,gpt
and/orfdisk
) entered in a Terminal window. Other third party tools, such asgdisk
, can also be used. Give the label for this partition the name "BOOTCAMP". When finished, quit all applications.Make sure the drive is using the GPT/MBR hybrid partitioning scheme. See my answer to the question "How to convert a drive from the GPT format to the hybrid GPT/MBR format when using High Sierra (macOS 10.13.2)" for a procedure that accomplishes this task.
Download and install a free copy of VirtualBox. I used VirtualBox 5.0.14 r105127, Copyright © 2016.
Do the following to transfer the "Boot Camp Support Software" to a partition compatible with VirtualBox. Create folder named "VirtualBox" in your Documents folder. Open the Disk Utility and from the menu bar select File->New->Blank Disk Image. Create this image in the "VirtualBox" folder using the following parameters.
Using the Finder application, copy the "Boot Camp Support Software" to this new partition. When finish, this new partition should appear in the Finder as shown below. (For readers with older Macs, you may only have the "BootCamp" folder.)
This step will create the file needed by VirtualBox to access the partition containing the "Boot Camp Support Software". In a Terminal application window, enter the following commands.
The result should be the creation of the file
bcss.vmdk
in your "VirtualBox" folder. Later, you will select this file to give a virtual machine access to this partition.This step will create the files needed by VirtualBox to access the physical partition where you will install Windows. In a Terminal application window, enter the following commands.
The result should be the creation of the files
bootcamp.vmdk
andbootcamp-pt.vmdk
in your "VirtualBox" folder. Later, you will select the filebootcamp.vmdk
to give a virtual machine access to the physical partition.Configure the virtual machine. Open the VirtualBox application and click on icon above the New label. Enter or select the values shown below, then click the "Continue" button.
Use the default settings except for the hard drive. Choose the "Use an existing virtual hard drive file" button. Navigate to your "VirtualBox" folder. Highlight the
bootcamp.vmdk
file. Before clicking the "Open" button, enter the following commands in the same Terminal application window.Open the
bootcamp.vmdk
file. Your window should appear similar to what is shown below.Click the "Create" button.
After returning to the VirtualBox application's "Oracle VM VirtualBox Manager" window, click on the icon above the "Settings" label. Next, click on the icon above the "Storage" label. In the "Storage Tree", "Controller: SATA" should be highlighted. Right click on this highlighted area and select "Add Hard Disk". Choose the "Use an existing virtual hard drive file" button. Navigate to your "VirtualBox" folder. Highlight the
bcss.vmdk
file. Before clicking the "Open" button, enter the following commands in the same Terminal application window.Open the
bcss.vmdk
file. Next, select the "Use Host I/O Cache" option. Your window should appear similar to what is shown below.Highlight the Empty CD/DVD and select "Choose Virtual Optical Disk File..." to attach your Windows 7 iso file. (Hint: Look for the CD/DVD icons)
Click OK to close the window. Your "Oracle VM VirtualBox Manager" window should appear similar to what is shown below.
In this step, you will copy the necessary files to the physical partition, so later you can restart your Mac and install Windows. Enter the following commands in the same Terminal application window.
Next, click on the icon above the "Start" label to boot from the Windows 7 iso file. Press the space bar, if prompted to "Press any key to boot from CD or DVD."
When the display below appears, click the "Next" button.
When the display below appears, select "Repair your computer".
With the button "Use recovery tools that can help fix problems starting Windows." selected, click the Next button.
Select the "Command Prompt" option.
Insure the drive letters
C
throughF
are not assigned by default to a volume by entering the following commands.Enter the following to determine a list of the current volumes.
The image below displays the volumes found on my Mac. You may get different results.
Enter the following commands, to assign the drive letters
D
,C
andE
to the CD-ROM volume and the volumes labeled "BOOTCAMP" and "BCSS", respectively. In the image shown above, these are volumes 0, 3 and 4. If your volume indices are different, make the appropriate substitutions. Also, NTFS format the "BOOTCAMP" volume.When finished, the volume letters should appear similar to what is shown below.
Next, enter the commands givens below. The
bootsect
command writes boot code to a Volume Boot Record (VBR) of a partition and Master Boot Record (MBR) of the corresponding drive.The next sequence of commands creates a Virtual Hard Disk (VHD) file. The VHD represents a virtual flash drive from which Windows will be installed on to the physical "BOOTCAMP" partition.
Finally, copy the Windows installer iso and "Boot Camp Support Software" files first to VHD, then directly to the physical partition where Windows is to be installed. Exit the Command Prompt window when finished.
Select the "Shut Down" button to shutdown the virtual machine. Quit the VirtualBox application.
This step will involve configuring Master Boot Record (MBR) of your physical internal drive. The MBR is stored on the first 512 bytes of this drive. This space is shared by boot code and the MBR partition table.
In a Terminal application window, enter the following commands. The first
fdisk
command flags the "BOOTCAMP" partition as the active partition. The secondfdisk
command changes the "BOOTCAMP" partition id to 7. The finalfdisk
command copies the boot code from the MBR of the disk containing the "Boot Camp Support Software" partition to the MBR of the physical disk containing the "BOOTCAMP" partition.This is the step where you install Windows to your "BOOTCAMP" partition. Restart your Mac and hold down the option/alt key. Select the Windows icon to boot from the "BOOTCAMP" partition. Open a Command Prompt window, by navigating through the displays as you did in step 7. Enter the commands below to attach the "FLASHDRIVE" partition stored in the Virtual Hard Disk (VHD) file.
On my Mac, the output from the
list volume
command showsE
to be the drive letter assigned to the "FLASHDRIVE" partition. If your drive letter is different, make the correct substitution when entering thee:\setup
command given at the end of this step. Next, remove all the files, but one, from the "BOOTCAMP" partition.Start installing Windows 7 by entering the command given below. Select "BOOTCAMP" as your installation partition.
The installation files are stored in the "FLASHDRIVE" partition. Since this partition is stored as a VHD file in the "BOOTCAMP" partition, do not try to reformat the "BOOTCAMP" partition. You will remove these installation files in a later step. When your Mac restarts, it will boot to OS X. This is to be expected. From the "System Preferences" select Windows as your startup disk and restart the Mac. Your Windows installation will continue.
Once Windows finishes installing, the "Boot Camp Support Software" can be applied. To access this software, the
c:\flashdrive.vhd
file, containing the "FLASHDRIVE" partition, needs to be attached. Click on the "Start" button, type indiskmgmt.msc
and hit the return key. Once in Disk Management, click on Action in the menu bar and select Attach VHD. Select the file location and check "Read-only" to prevent writes to the VHD file. After you hit "OK", the drive will show up in Disk Management with a blue icon. Close Disk Management.In the AutoPlay popup window, select "Open folder to view files." (If no popup appears, use the Windows Explorer to open the drive labeled "FLASHDRIVE".) The
setup.exe
file can be found in the folder labeled "BootCamp". Execute this application to install the "Boot Camp Support Software". The VHD file will detach when the computer restarts.c:\flashdrive.vhd
file to the Recycle Bin. If you get an error message about the file being open, restart the computer and try again.Clean Up
The "Virtual Box" folder can be deleted. You will probably need to eject the "BCSS" partition first.
You can delete the "BootCamp" virtual machine. This can be done from the VirtualBox application. If VirtualBox does not remove all the files, you can remove them manually. Look in the
~/"VirtualBox VMs"
folder.You can delete the Windows 7 iso file.
You can remove the VirtualBox application, but since it takes such little space, I would not bother.