Booting FreeBSD on a Macintosh?

Raimundo Santos raitech at gmail.com
Sun Jan 19 15:25:12 UTC 2014


On 15 January 2014 17:26, Volker Nebel <vnebel at web.de> wrote:

> Is type freebsd-boot wrong?


Hello Volker,

in MBR you do not need a boot partition. With the way MBR works you just
need to set an active boot partition and write the right boot code where
you need it.

mdoc.su/f/gpart manpage have good example of doing this:

Create an MBR scheme on *ada0*, then create a 30GB-sized FreeBSD slice,
     mark it active and install the *boot0* boot manager:

	   /sbin/gpart create -s MBR ada0
	   /sbin/gpart add -t freebsd -s 30G ada0
	   /sbin/gpart set -a active -i 1 ada0
	   /sbin/gpart bootcode -b /boot/boot0 ada0

     Now create a BSD scheme (BSD label) with space for up to 20 partitions:

	   /sbin/gpart create -s BSD -n 20 ada0s1

     Create a 1GB-sized UFS partition and a 4GB-sized swap partition:

	   /sbin/gpart add -t freebsd-ufs -s 1G ada0s1
	   /sbin/gpart add -t freebsd-swap -s 4G ada0s1

     Install bootstrap code for the BSD label:

	   /sbin/gpart bootcode -b /boot/boot ada0s1

Never try MBR creation within installer paprtition manager, maybe it create
all these for you.

Best regards,
Raimundo Santos


More information about the freebsd-amd64 mailing list