Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 May 2011 15:29:39 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222359 - head/sbin/geom/class/part
Message-ID:  <201105271529.p4RFTdY2041315@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Fri May 27 15:29:39 2011
New Revision: 222359
URL: http://svn.freebsd.org/changeset/base/222359

Log:
  Add example how to create MBR and BSD schemes and install boot code.

Modified:
  head/sbin/geom/class/part/gpart.8

Modified: head/sbin/geom/class/part/gpart.8
==============================================================================
--- head/sbin/geom/class/part/gpart.8	Fri May 27 14:30:19 2011	(r222358)
+++ head/sbin/geom/class/part/gpart.8	Fri May 27 15:29:39 2011	(r222359)
@@ -24,7 +24,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd May 03, 2011
+.Dd May 27, 2011
 .Dt GPART 8
 .Os
 .Sh NAME
@@ -842,6 +842,33 @@ partition that would contain UFS where t
 /sbin/gpart add -b 162 -s 1048576 -t freebsd-ufs ad0
 .Ed
 .Pp
+Create MBR scheme on
+.Pa ada0 ,
+then create 30GB-sized FreeBSD slice, mark it active and
+install boot0 boot manager:
+.Bd -literal -offset indent
+/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
+.Ed
+.Pp
+Now create BSD scheme (BSD label) with ability to have up to 20 partitions:
+.Bd -literal -offset indent
+/sbin/gpart create -s BSD -n 20 ada0s1
+.Ed
+.Pp
+Create 1GB-sized UFS partition and 4GB-sized swap partition:
+.Bd -literal -offset indent
+/sbin/gpart add -t freebsd-ufs -s 1G ada0s1
+/sbin/gpart add -t freebsd-swap -s 4G ada0s1
+.Ed
+.Pp
+Install bootstrap code for the BSD label:
+.Bd -literal -offset indent
+/sbin/gpart bootcode -b /boot/boot ada0s1
+.Ed
+.Pp
 Create VTOC8 scheme on
 .Pa da0 .
 .Bd -literal -offset indent



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