Deleted Added
sdiff udiff text old ( 229847 ) new ( 230059 )
full compact
1.\" Copyright (c) 2007, 2008 Marcel Moolenaar
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/sbin/geom/class/part/gpart.8 229847 2012-01-09 05:51:33Z wblock $
26.\"
27.Dd January 8, 2012
28.Dt GPART 8
29.Os
30.Sh NAME
31.Nm gpart
32.Nd "control utility for the disk partitioning GEOM class"
33.Sh SYNOPSIS

--- 921 unchanged lines hidden (view full) ---

955.Pp
956Create a dedicated
957.Cm freebsd-boot
958partition that can boot
959.Fx
960from a
961.Cm freebsd-ufs
962partition, and install bootstrap code into it.
963This partition must be larger than
964.Pa /boot/gptboot ,
965or the GPT boot you are planning to write, but smaller than 545 KB.
966A size of 15 blocks (7680 bytes) would be sufficient for
967booting from UFS but 128 blocks (64 KB) is used in
968this example to reserve some space for potential
969future need (e.g.\& a larger
970.Pa /boot/gptzfsboot
971for booting from a ZFS partition).
972.Bd -literal -offset indent
973/sbin/gpart add -b 34 -s 128 -t freebsd-boot ad0
974/sbin/gpart bootcode -p /boot/gptboot -i 1 ad0
975.Ed
976.Pp
977Create a 512MB-sized
978.Cm freebsd-ufs
979partition to contain a UFS filesystem from which the system can boot.
980.Bd -literal -offset indent
981/sbin/gpart add -b 162 -s 1048576 -t freebsd-ufs ad0
982.Ed
983.Pp
984Create an MBR scheme on
985.Pa ada0 ,
986then create a 30GB-sized
987.Fx
988slice, mark it active and
989install the

--- 89 unchanged lines hidden ---