Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jan 2014 10:33:29 -0600
From:      Nathan Whitehorn <nwhitehorn@freebsd.org>
To:        Raimundo Santos <raitech@gmail.com>, Volker Nebel <vnebel@web.de>
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: Booting FreeBSD on a Macintosh?
Message-ID:  <52DBFE59.3060101@freebsd.org>
In-Reply-To: <CAGQ6iC-aKt83cBUR-Tv_zOE6_6Pz5NH8AHJ_P2uvgRRZ3CjfyQ@mail.gmail.com>
References:  <alpine.BSF.2.00.1401141804450.1273@localhost> <52D6D32A.9010506@rancid.berkeley.edu> <alpine.BSF.2.00.1401152021130.1411@localhost> <CAGQ6iC-aKt83cBUR-Tv_zOE6_6Pz5NH8AHJ_P2uvgRRZ3CjfyQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01/19/14 09:24, Raimundo Santos wrote:
> On 15 January 2014 17:26, Volker Nebel <vnebel@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.
>

It does, in fact, if you select an MBR scheme.
-Nathan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52DBFE59.3060101>