Any version of FreeBSD post 9.1-Release (both i386 and amd64) fails to install on my late 2009 Mac Mini hardware version 3,1.
The problem would appear to be the GPT boot partition code that FreeBSD installs. It changed from 64KB to 512KB at some point after 9.1-Release. Up and until after 9.1-Release, the installation recipe I posted worked successfully. Here is an example:
I should note that it is possible to upgrade a 9.1-Release to 10.3-Release from source as this retains the original 64KB GPT boot partition. However, it is no longer possible to install FreeBSD post 9.1-Release on a new Mac Mini using the GPT partitioning scheme. Bummer. I posted more details about this issue here previously.
After much trial and error I have found that it is possible to install FreeBSD 10.3-Release (I installed the non-UEFI, amd64 version) if you forgo the GPT partitioning scheme and instead use the MBR partitioning scheme. Here is the result:
And here is the new recipe for achieving this:
NOTE: I did not try the UEFI amd64 disc 1 version of 10.3-Release. For completeness I guess I will try it and add a followup. Previous attempts before 10.3 have been unsuccessful in even booting the Mac Mini.
The problem would appear to be the GPT boot partition code that FreeBSD installs. It changed from 64KB to 512KB at some point after 9.1-Release. Up and until after 9.1-Release, the installation recipe I posted worked successfully. Here is an example:
Code:
trev@shadow [/home/trev] $ gpart show
=> 34 976773101 ada0 GPT (466G)
34 128 1 freebsd-boot (64K)
162 4194304 2 freebsd-ufs (2.0G)
4194466 41943040 3 freebsd-ufs (20G)
46137506 83886080 4 freebsd-ufs (40G)
130023586 83886080 5 freebsd-ufs (40G)
213909666 41943040 6 freebsd-ufs (20G)
255852706 419430400 7 freebsd-ufs (200G)
675283106 281018368 8 freebsd-ufs (134G)
956301474 18874368 9 freebsd-swap (9.0G)
975175842 1597293 - free - (780M)
I should note that it is possible to upgrade a 9.1-Release to 10.3-Release from source as this retains the original 64KB GPT boot partition. However, it is no longer possible to install FreeBSD post 9.1-Release on a new Mac Mini using the GPT partitioning scheme. Bummer. I posted more details about this issue here previously.
After much trial and error I have found that it is possible to install FreeBSD 10.3-Release (I installed the non-UEFI, amd64 version) if you forgo the GPT partitioning scheme and instead use the MBR partitioning scheme. Here is the result:
Code:
trev@citadel:~ % gpart show
=> 63 312581745 ada0 MBR (149G)
63 312475590 1 freebsd [active] (149G)
312475653 106155 - free - (52M)
=> 0 312475590 ada0s1 BSD (149G)
0 4194304 1 freebsd-ufs (2.0G)
4194304 2097152 2 freebsd-swap (1.0G)
6291456 20971520 4 freebsd-ufs (10G)
27262976 83886080 5 freebsd-ufs (40G)
111149056 83886080 6 freebsd-ufs (40G)
195035136 20971520 7 freebsd-ufs (10G)
216006656 96468933 8 freebsd-ufs (46G)
312475589 1 - free - (512B)
And here is the new recipe for achieving this:
- Boot the FreeBSD CD/DVD by turning on the Mac Mini and holding down the ALT/Option key until a Windows CD Icon appears. Choose that icon to boot. Do not use the internal CD/DVD drive for the FreeBSD disc as you will not be able to eject it. I found this out the hard way. Luckily I also had an external DVD drive so I could load the OSX installation and use Diskutil to eject the disk.
- When the system has booted to the FreeBSD Installation Menu, choose Install.
- Choose your default keymap.
- Set your fully qualified hostname.
- Select your distribution files.
- Select the Guided Disk Setup option.
- Select the "entire disk" option.
- Change the Partitioning Scheme from the default highlighted GPT to MBR.
- Accept the defaults if you don't mind having everything in the root partition, otherwise delete the default setup and create your own mount points and disk sizes.
- Proceed with the rest of the installation as normal.
- Eject the disc when the installation is completed.
- Boot into an OSX installation DVD (I had a Mac Mini Leopard DVD handy), choose the language, then Utilities, then Terminal from the menu at the top of the screen.
- In the terminal, enter
diskutil list
and look for the FreeBSD partition (it will look like /dev/disk0sX)
- In the terminal, enter
bless -device /dev/disk0sX -setBoot -legacy
(where disk0sX is the identifier you found in step 4 above - if you have one internal hard disk it will be disk0s1 in all probability).
- Exit from the terminal and Quit the installation process
- Reboot and enjoy FreeBSD 10.3!
NOTE: I did not try the UEFI amd64 disc 1 version of 10.3-Release. For completeness I guess I will try it and add a followup. Previous attempts before 10.3 have been unsuccessful in even booting the Mac Mini.