"Computing is like air conditioning it gets ineffective as you open Windows" - Linus Torvalds

Installing fedora on Mac Book Pro

Posted: December 19th, 2012 | Author: | Filed under: Mac | Tags: , , , , | 7 Comments »

Fedora 17 provides EFI boot support which makes it possible for us to boot it on Mac. This is a detailed guide on how to install Fedora on your 64 bit Mac Book Pro.

Check if your system is supported


ioreg -l -p IODeviceTree | grep firmware-abi

If this returns “Firmware-abi” = < “EFI64″> then your system is supported.

Dowloading

You need the 64 bit version of fedora 17 (any spin).

Partitioning

Before you install another system you need to partition your Mac HDD to resize your Mac partition and add some extra free space.

1) Open Utilities

Screen Shot 2012-12-19 at 3.33.00 PM


2) Open Disk Utility

Screen Shot 2012-12-19 at 3.33.25 PM

3) Select the “Apple HDD” (The top one in the hierarchy)

Screen Shot 2012-12-19 at 3.33.37 PM

4) Click on partition.

Screen Shot 2012-12-19 at 3.34.34 PM

5) Decrease the size of the Macintosh HD to make some free space.

Screen Shot 2012-12-19 at 3.35.51 PM

6) Click Apply

Building your USB

Unetbootin doesn’t work (atleast for me), you can try but for me the bootloader just hangs in there forever. A simpler method, which actually works, is to make your USB using ‘dd’ command.

1) Get your USB’s Identifier.

Run :

diskutil list

Output:

➜ ~ diskutil list
/dev/disk0
 #: TYPE NAME SIZE IDENTIFIER
 0: GUID_partition_scheme *500.1 GB disk0
 1: EFI 209.7 MB disk0s1
 2: Apple_HFS Macintosh HD 399.2 GB disk0s2
 3: Apple_Boot Recovery HD 650.0 MB disk0s3
 4: Apple_HFS untitled 209.7 MB disk0s4
 5: Microsoft Basic Data 524.3 MB disk0s5
 6: Linux LVM 99.3 GB disk0s6
/dev/disk1
 #: TYPE NAME SIZE IDENTIFIER
 0: GUID_partition_scheme *4.0 GB disk1
 1: EFI 209.7 MB disk1s1
 2: Microsoft Basic Data MY USB 3.7 GB disk1s2

Note: I have multiple OS’s installed on my Mac already, so your output might differ mine.

My disk’s name is “My USB” and we can infer from the output that its identifier is disk1s2 , which is in the disk /dev/disk1 [This might be different for your system]. Make sure you get this step right!

2) Unmount your USB

diskutil unmountDisk /dev/disk1

3) Copy the image onto your USB

su -c "dd if=SOURCE of=/dev/rdisk1 bs=8M"

where SOURCE is the .iso file, and /dev/rdisk1 is your drive.

Notice the r in /dev/rdisk1

Note: This command takes a while and shows nothing on the screen.

Booting

Now, that you have your USB ready, insert it into a slot and boot your mac. As you see the white screen press and hold the “option key”. You should see a screen something like :-

IMG_20121219_150610

Select “Fedora”/”Fedora Media” from the list.

IMG_20121219_150623

Now, you should be able to install fedora like you do it in any other system.

Some Issues with Fedora on mac

1) You can’t increase the sensitivity/speed of your trackpad. There is a setting entry for that purpose but that doesn’t seem to work.

2) Your brightness settings and keyboard backlight settings do not get saved. Every time you reboot you need to readjust them.

3) F* key shortcuts (F1, F2 … F12) doesn’t seem to work. That is because they are already booked to do other functions like increasing volume, brightness, backlight etc, and using Fn + F* combos do not seem to work.

4) Your wireless drivers won’t get installed automatically. I had to download mine and install them manually.

5) The bluetooth mouse support is crappy. I have to restart the bluetooth drivers 5-6 times before I get the external mouse connected. By the way I use Apple magic mouse, which obviously works perfectly with my Macbook pro running OS X Lion.


7 Comments on “Installing fedora on Mac Book Pro”

  1. 1 val said at 2:43 pm on January 5th, 2013:

    Hi Aneesh,

    Thanks for posting the instructions for installing Fedora 17 on Mac Book Pro. I tried them for installing on my Mac OS X v 10.6.8 and ran into the following error:

    Vals-MacBook-Pro-2:~ val$ su -c dd bs=8M if=/Users/val/Desktop/Fedora-17-x86_64-Live-Desktop.iso of=/dev/disk2
    su: illegal option — c
    usage: su [-] [-flm] [login [args]]

    Do you have any suggestions on how to go around it?

    I also tried:

    Vals-MacBook-Pro-2:~ val$ su val -c “dd if=/Users/val/Desktop/Fedora-17-x86_64-Live-Desktop.iso of=/dev/disk2s1 bs=8M”
    Password:

    ^C0+0 records in
    0+0 records out
    0 bytes transferred in 367.510214 secs (0 bytes/sec)
    Vals-MacBook-Pro-2:~ val$

    In this case after waiting for a long time and quitting with Ctrl-C notting gets copied on the USB stick:-(

    Hope you might have some useful suggestions.

    Best regards,

    Val

  2. 2 Aneesh Dogra said at 8:32 am on January 8th, 2013:

    Try using /dev/rdisk2

  3. 3 wintermute said at 2:53 am on January 11th, 2013:

    would you mind describing the manual install of the wireless firmware??
    thank you..

  4. 4 Anup Vasudevan said at 5:27 am on January 23rd, 2013:

    Hi

    Does dual boot work? We dont need rEFLT? I got till resizing the HDD but got a little spooked after that because the mac started acting a little funny (hanging suddenly and so on)

    Thanks
    Anup

  5. 5 Aneesh Dogra said at 6:02 am on January 24th, 2013:

    @Anup: I don’t think so. I think mac’s EFI boot manager is more than enough for our needs. I only know about Mac Book Pro late 2011 edition, but I think it should be the case in all Mac Book Pro’s as EFI boot hasn’t really been changed in Mac.

    Plus, regarding the HDD partition, I can’t reckon how that could cause any problems.

  6. 6 Isioma said at 1:17 am on February 20th, 2013:

    I got the -c illegal option error as well. To work around it, first I executed the command:
    > su –
    to switch to root user. You have to enter your root password, if a root account has not been enabled follow the steps on this knowledge base article http://support.apple.com/kb/ht1528.
    Next, I executed the command inside the quotes but without the quotes
    > dd if=SOURCE of=/dev/rdisk1 bs=8M
    I ran into some trouble with the bs option. After some googling I found that the the M should be lowercase. The final command I executed was:
    > dd if=SOURCE of=/dev/rdisk1 bs=8m
    The final output was:
    111+1 records in
    111+1 records out
    932184064 bytes transferred in 184.745156 secs (5045784 bytes/sec)

    The output’s symmetry is suspect, but I am hopeful it worked.

  7. 7 Dual Booting a Mac Book Pro said at 6:24 am on March 2nd, 2013:

    [...] http://lists.fedoraproject.org/piper…ry/428658.html And this is a good page but for Fedora 17 http://anee.me/installing-fedora-on-mac-book-pro/ Hope this [...]


Leave a Reply