Date: Sun, 19 Jan 2014 13:24:51 -0200 From: Raimundo Santos <raitech@gmail.com> To: Volker Nebel <vnebel@web.de> Cc: freebsd-amd64@freebsd.org Subject: Re: Booting FreeBSD on a Macintosh? Message-ID: <CAGQ6iC-aKt83cBUR-Tv_zOE6_6Pz5NH8AHJ_P2uvgRRZ3CjfyQ@mail.gmail.com> In-Reply-To: <alpine.BSF.2.00.1401152021130.1411@localhost> References: <alpine.BSF.2.00.1401141804450.1273@localhost> <52D6D32A.9010506@rancid.berkeley.edu> <alpine.BSF.2.00.1401152021130.1411@localhost>
index | next in thread | previous in thread | raw e-mail
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.
Best regards,
Raimundo Santos
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGQ6iC-aKt83cBUR-Tv_zOE6_6Pz5NH8AHJ_P2uvgRRZ3CjfyQ>
