gpart.8 (229847) | gpart.8 (230059) |
---|---|
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.\" | 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 $ | 25.\" $FreeBSD: head/sbin/geom/class/part/gpart.8 230059 2012-01-13 12:40:33Z des $ |
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. | 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 | 963This partition must be larger than the bootstrap code 964.Po 965usually either 966.Pa /boot/gptboot 967or |
970.Pa /boot/gptzfsboot | 968.Pa /boot/gptzfsboot |
971for booting from a ZFS partition). | 969.Pc , 970but smaller than 545 kB since the first-stage loader will load the 971entire partition into memory during boot, regardless of how much data 972it actually contains. 973This example uses 94 blocks (47 kB) so the next partition will be 974aligned on a 64 kB boundary without the need to specify an explicit 975offset or alignment. |
972.Bd -literal -offset indent | 976.Bd -literal -offset indent |
973/sbin/gpart add -b 34 -s 128 -t freebsd-boot ad0 | 977/sbin/gpart add -b 34 -s 94 -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 | 978/sbin/gpart bootcode -p /boot/gptboot -i 1 ad0 979.Ed 980.Pp 981Create a 512MB-sized 982.Cm freebsd-ufs 983partition to contain a UFS filesystem from which the system can boot. 984.Bd -literal -offset indent |
981/sbin/gpart add -b 162 -s 1048576 -t freebsd-ufs ad0 | 985/sbin/gpart add -s 512M -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 --- | 986.Ed 987.Pp 988Create an MBR scheme on 989.Pa ada0 , 990then create a 30GB-sized 991.Fx 992slice, mark it active and 993install the --- 89 unchanged lines hidden --- |