Note: If you can use the Boot Camp Assistant application to install Windows, I would suggest you do so. These instructions are mainly for those who have a special configuration which prohibits the use of the Boot Camp Assistant application to install Windows. Of course when install Ubuntu on your Mac, you should expect different values that. Dec 14, 2013 Install Ubuntu by partitioning the boot camp drive that Windows is located on, and install both Ubuntu and GRUB bootloader onto the new partition. (There are programs that allow Mac OS X to write to ext2, you'll just have to mount your ext3 partition as ext2 in Mac OS X) Start the computer and boot back into Mac and install rEFIt.
The primary version of this doc is located here:https://help.ubuntu.com/community/MacBook
All the information here should be moved over.
The purpose of this is to allow for Triple Booting on an Intel Mac using OS X 10.4.6+, Ubuntu Linux, and XP SP2. You will need a slipstreamed XP-SP2 CD and an Ubuntu Dapper Drake 6.06 Live CD (which is just the regular installation disc). I've tested this on a 20' 2.0Ghz iMac, but I am assuming it will work on all available Intel iMac platforms thus far. This also seems to work on the MacBook and 15' MacBook Pro. Haven't tested on a Mac Pro yet. Some resolvable issues with the 17' MacBook Pro.. notes below.
This guide also works for the newly released Edgy Eft (Ubuntu 6.10).To install edgy, you will either need a network connection or the DVD version.
Open up a terminal and type the following command (changing values for the drive sizes you want). Keep in mind that these partition sizes are final after they are set!
Take the device that your Mac OS is installed on, in this case disk0s2, and resize it into 3 new partitions.Syntax is like this:
i.e.
Restart and verify by running diskutil list that the partitions were made correctly.
Now, download and install rEFIt by following their instructions.
Restart and boot off of the XP-SP2 slipstreamed disc. Select and then quick format the drive marked as C: as fat32 if you want read-write access or NTFS if you want the increased speed and security; it should be the last drive. If it isn't then you have a typo in your partition code. If you do not format the drive with the installer, Windows might not boot. Do NOT remake the partitions at this point or you will hose up the whole thing. Set up Windows as you would normally - you can use Boot Camp to create a driver CD for Windows.
Boot off of the Ubuntu installation disc. The majority of the Ubuntu install walkthrough came from this site.
Open Applications-Accessories-Terminal and type:
In Edgy, you may need to do this instead:
As the installer will not accept an ext2 filesystem mounted at '/'.
Double click the installer on the Desktop and fill out each box correctly.
When it comes time to set up the partitions, do so manually. Because we only are able to have four primary partitions setup for the MBR mirror and Apple has already taken the first spot with the EFI System Partition, we will need to only mount the / drive to /dev/sda3, nothing else, not even a swap. This will cause an error to get thrown about decreased performance or installations errors from the lack of a swap.. it will be fine and will actually install faster (I had 1 gig of RAM, so I can't guarantee anything under that). I recommend formatting the partition.
After awhile it will toss an error when it tries to install GRUB and throw a bunch of errors in an output screen; click past that.(If you do not get an error, see the Talk page)
Open Terminal and type:
Create and make a swap file. The following command will make an empty 2 gig file at /swapfile: (beware it might take some time)
Make the file a swap file:
Set Ubuntu to use the swap:
And enable it at boot time by editing /etc/fstab with a text editor like nano and adding the following line (each item is separated by tabs):
Example command to type:
Open a new Terminal window that isn't chrooted into the Ubuntu installation. Install lilo and some kernel updates:
If you are using the CD version of edgy, you will need a network connection to install the above packages.Edgy users should do this in the chrooted terminal.UPDATE: Edgy users dont need to do this download. Follow this guide which is super easy and uses grub. https://help.ubuntu.com/community/MacBookYou will need to run instead of the above:
When that finishes, we will make the /etc/lilo.conf config file by hand with a text editor) (edgy users still in the chroot):Example command to type:
Contents of file:
Edgy users need to add:
To the end of the lilo.conf file. This is because the GUI booting crashes Ubuntu.
Open a new Terminal window that isn't chrooted into the Ubuntu installation:
Edgy users need to use 'sudo parted /dev/sda' instead of 'sudo parted'. This should be executed in a normal terminal
Switch back to the chrooted terminal:
Edgy users may need to do:
If lilo complains about a CHS/LBA mismatch.
Reboot, use the rEFIt partition tool to make sure the MBR and GPT maps are in sync.You should now be Triple Booting! There are proprietary ATI drivers out there for Intel Macs running Linux, so check out their site. For more info about setup after initial installation, try this site, which provided the majority of the walkthrough for the Linux installation.
This *SHOULD* be the end. If you have issues or errors when running lilo continue to the bottom of the page..
[edit]
Problem Freezing on the rEFIt penguin watermark, first time booting Ubuntu from HD
If you run into this problem after everything above, try booting in Windows and OS X a couple of times, and maybe also try shutting down the computer before booting Linux again. I did this, and LILO fixed itself (don't ask me how) so now I can boot into whatever I like.
This fix was an idea in Brian W. Carver's Triple Boot Debian tutorial. -AC
End section about frozen first boot
If you run into this problem after everything above, try booting in Windows and OS X a couple of times, and maybe also try shutting down the computer before booting Linux again. I did this, and LILO fixed itself (don't ask me how) so now I can boot into whatever I like.
This fix was an idea in Brian W. Carver's Triple Boot Debian tutorial. -AC
End section about frozen first boot
Issues on 17' MBP
I've had issues with this portion on a 17' MacBook Pro.. not sure if it is because of partition table issues or architecture yet..Solution was to run:
I've had issues with this portion on a 17' MacBook Pro.. not sure if it is because of partition table issues or architecture yet..Solution was to run:
Then reboot into rEFIt, sync with partition manager; then boot off CD once again and run:
WARNING: This may kill your MBR at this point..
Mac Boot Camp Ubuntu Howtogeek Free
Instead of lilo (not lilo -P fix) I used following commands and sync with rEFIt after that:
Exit out of the chrooted terminal and unmount all partitions:
Reboot, use the rEFIt partition tool to make sure the MBR and GPT maps are in sync.
End section about 17' MBP issues
End section about 17' MBP issues
As usual, the typical disclaimer.. Kainewynd2
See the Talk page if you just get a blank screen when trying to boot Edgy.
Mac Boot Camp Faq
Creating the Swap File[edit]
'dd' always work faster with a larger block size. So when creating your '/swapfile' do it in 1 MiB blocks.
Takes only 20.5 sec on my 2007 Macbook.
Retrieved from 'https://wiki.onmac.net/index.php?title=Triple_Boot_via_BootCamp_Ubuntu&oldid=7029'
Installing Windows on a Mac should be a piece of cake with Bootcamp, but thatrarely is the case. In fact, I would personally say that Boot Camp Assistantis one of the worst apps that comes with OS X and unlike the rest, it doesn’twork seamlessly.
A few of its drawbacks:
- It only supports a drive with a single partition.
- It often throws very obscure error messages with limited detail.
- It re-downloads 1.6 GB Windows drivers every single time it runs. These areplaced under
/Library/Application Support/BootCamp/WindowsSupport.dmg
anddeleted and re-downloaded each time Boot Camp Assistant starts processing.
This post did take a lot of work to complie and I did bone my hard drive afew times while trying certain ideas, so please throw out a thanks if ithelped you out :)
Disclaimer: This guide below contains procedures which can potentiallydestroy your partitions and data. I accept no responsibility for such loss soplease proceed at your own risk.
Update (2016-07-20): I have updated this post with further improvementsrelating to downloading of Boot Camp drivers and ensuring that a Hybrid MBR isnot used (which would cause issues when installing Windows).
- An 8 GB or larger USB stick
- A copy of the Windows 10 ISO
- A valid Windows 10 license
- A downloaded copy of unetbootin
- Start Boot Camp Assistant
- Select Action / Download Windows Support Software
- Choose your Downloads directory, enter your password and then clickSave
What is dev c. This will be the only step that we will use Boot Camp Assistant for.
Formatting Your USB Stick
Attach your USB stick and start Disk Utility, select your USB drive in theleft panel under External, click Erase and set the options as follows(exactly) and click Erase:
Name: FAT32
Format: MS-DOS (FAT)
Scheme: Master Boot Record
Format: MS-DOS (FAT)
Scheme: Master Boot Record
Turning Your USB Stick into a Windows Installer
Open unetbootin, enter your password, set the options as follows andclick OK:
Diskimage: checked, set to ISO and browse to your Windows 10 ISO
Type: USB Drive
Drive: Your USB drive (you should only see one entry here)
Type: USB Drive
Drive: Your USB drive (you should only see one entry here)
If you see more than one drive listed, you may confirm which is your USB driveby opening the Terminal and typing:
You’ll see your USB drive in the output and it should look something like this:
Once you have kicked off unetbootin, grab a snack while the Windows ISO iscopied to the USB stick. This process takes around 15 minutes to complete.
Finishing Up
When this has completed, you may right click on the USB stick in Finder,select Rename “FAT32” and rename it as you like (I’ll call mine“WINDOWS 10”).
Finally, copy the WindowsSupport in your Downloads directory tothe Windows 10 USB stick so it’s easy to get to after our installation.
Run Windows On Mac
In Disk Utility, select your internal hard drive on the left panel, andclick on Partition.
Click the + button and create a new partition of your desired size for yourWindows installation and name it as you wish (I’ll call mine “BOOTCAMP”). Ensure that the Format is set to MS-DOS (FAT) and click on Apply.
Huge thanks to Rod’s post from the superuser post titledWindows detects GPT disk as MBR in EFI boot.
Once you add a FAT32 partition with either Boot Camp Assistant or Disk Utility,your disk is converted into a hybrid GPT / MBR disk which is actually notsupported by newer versions of Windows. In this step, we revert thisadditional change made by Disk Utility by switching back to a pure GPTpartition table.
- Dowload the latest version ofGPT fdiskby browsing to the version, then gdisk-binaries and clicking the filewith the *.pkg extension (e.g. gdisk-1.0.1.pkg).
- Install GPT fdisk by running the installer you downloaded
- Open a Terminal and check the state of your MBRIf your MBR partition is set to hybrid, please continue with step 4,otherwise if it is set to protective, you may skip the rest of thissection. Simply type q and hit return to exit GPT fdisk.
- Type p to view the existing partition table and verify you’re workingon the correct disk
- Type x to enter the expert menu
- Type n to create a fresh protective MBR
- Type w to save your changes and confirm the change when asked
- Type q to exit GPT fdisk
- Run GPT fdisk to show your disk layout:Your partition table should look something like this:
Disconnecting All Devices From USB Ports
This step is critical as I have had rather serious problems during Windowsinstallation when certain external drives are connected.
Unplug everything from your Mac except your keyboard (if wired) and yourbootable Windows USB stick (which we prepared earlier).
If your Mac contains multiple physical drives, you will need to disconnectall disks except the one which you intend to install Windows on or you mayencounter the following error:
Windows could not prepare the computer to boot into the next phase of installation. To install Windows, restart the installation.
Booting From the USB Stick
Ensure that the USB stick containing the Windows installer is inserted andthen restart your Mac while holding down the option (alt) key.
You should now be presented with a list of bootable drives. Select the USBdrive (usually titled “EFI Boot”) to begin installing Windows.
Correcting Your Windows Hard Disk Partition
When you are asked Where do you want to install Windows?, select theWindows partition created earlier (which I called “BOOTCAMP”) and clickDelete.
Next, select the chunk of Unallocated Space and click on New to createa proper Windows NTFS partition.
Note: OS X only supports creation of FAT filesystems, so this is why we needto re-create the partition ourselves during install.
Completing the Installation
Allow the installer to complete and boot into Windows.
Installing Boot Camp Support Software
Once Windows is up and running, install the Boot Camp Support software runningWindowsSupport/BootCamp/Setup.exe on your USB stick.
Note: The installer takes a little while to show up, so please be patient.
You may encounter a known issue whereby the Boot Camp Support Softwareinstaller locks up while installing Realtek audio.
If this occurs, you will need to open Task Manager and kill theRealtekSetup.exe process.
After the installer has completed, answer No when prompted to rebootand install the Realtek drivers manually by running%USERPROFILE%AppDataLocalTempRarSFX0BootCampDriversRealTekRealtekSetup.exe.If you can’t find this file, check any other directories starting withRARSFX under %USERPROFILE%AppDataLocalTemp.
Once complete, reboot Windows.
- The latest version of SharpKeys
- The flipflop-windows-sheel binary (see README for a download link)
Mapping Your Mac Keyboard
Install and run SharpKeys and then configure the following mappings tocorrect your Mac keyboard so that it behaves like a regular Windows keyboard:
Function: F13 -> Special: PrtSc
Special: Left Alt => Special: Left Windows
Special: Left Windows => Special: Left Alt
Special: Right Alt => Special: Right Windows
Special: Right Windows => Special: Right Alt
Special: Left Alt => Special: Left Windows
Special: Left Windows => Special: Left Alt
Special: Right Alt => Special: Right Windows
Special: Right Windows => Special: Right Alt
Note: for F13, you’ll need to select Press a key and click F13 on yourkeyboard.
Switching to Natural Scrolling
If you wish to flip scrolling direction to match that on OS X, runFlipWheel.exe and then click on Flip All.
Enabling Num Lock on Boot
Paste the following into a file named Enable NumLock on Boot.reg thenimport this into the registry to enable NumLock when Windows boots up(it doesn’t by default).
Completing Configuration
That’s it, give your machine one last reboot and you’ll have a fully workingWindows 10 installation.
Note: I have found Apple’s Magic Mouse to be extremely unreliable usingthe Boot Camp drivers from Apple. As such, I recommend purchasing a Logitech(or similar) mouse for use in Windows. I have no trouble plugging thewireless receiver for my Logitech mouse into one of the USB ports of my wiredApple Keyboard and it’s so tiny that you can’t see it at all.
Removing the Windows Partitions
If you decide to remove Windows, you may find that Disk Utility doesn’t allowyou to delete the two partitions that have been created by the Windowsinstaller.
This happens due to the fact that the first small partition created is of atype called Microsoft Reserved which OS X’s Disk Utility doesn’t support.
The safest way to delete these partitions is through the Windows installer. Sosimply boot from your USB stick as we did before and when you reach theWhere do you want to install Windows? question, you may delete your“BOOTCAMP” partition and the small 16 MB partition of type MSR (Reserved)just above the BOOTCAMP partition.
Once done, simply quit the installer by clicking the X in the top right cornerof each Window and reboot back into OS X.
Removing the Boot Entry
Even though we have removed the Windows partition, a boot entry will still bepresent when holding down option (alt) during boot.
Mac Boot Camp Vista
You may remove these items by running the following in your Terminal: