summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2008-06-07 00:14:06 +0000
committermarcel <marcel@FreeBSD.org>2008-06-07 00:14:06 +0000
commitf031db47eec4fc1f21691d8473d3a50461c3909b (patch)
tree286b7f62dec8171354cb7cebd1bc2d024dcc0095 /sbin
parente4a5218866cd968d8dbae73678ef94b48e76d848 (diff)
downloadFreeBSD-src-f031db47eec4fc1f21691d8473d3a50461c3909b.zip
FreeBSD-src-f031db47eec4fc1f21691d8473d3a50461c3909b.tar.gz
Document the new -p and -i options for writing bootstrap code into
a partition. Make it clear that the -b option embeds boot code in the meta-data.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/geom/class/part/gpart.832
1 files changed, 24 insertions, 8 deletions
diff --git a/sbin/geom/class/part/gpart.8 b/sbin/geom/class/part/gpart.8
index d0c4297..fdc6740 100644
--- a/sbin/geom/class/part/gpart.8
+++ b/sbin/geom/class/part/gpart.8
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd Jun 5, 2008
+.Dd Jun 6, 2008
.Dt GPART 8
.Os
.Sh NAME
@@ -72,7 +72,8 @@ utility:
.\" ==== BOOTCODE ====
.Nm
.Cm bootcode
-.Fl b Ar bootcode
+.Op Fl b Ar bootcode
+.Op Fl p Ar partcode Fl i Ar index
.Op Fl f Ar flags
.Ar geom
.\" ==== COMMIT ====
@@ -152,12 +153,19 @@ about its use.
.El
.\" ==== BOOTCODE ====
.It Cm bootcode
-Install bootstrap code into the partitioning scheme's metadata on
-.Ar geom .
-Not all partitioning schemes have bootstrap code, so this command
-is scheme-specific in nature.
-For the GPT scheme, bootstrap code is supported but it is the boostrap
-code that's installed in the protective MBR.
+Embed bootstrap code into the partitioning scheme's metadata on the
+.Ar geom
+(using
+.Fl b Ar bootcode )
+or write bootstrap code into a partition (using
+.Fl p Ar partcode
+and
+.Fl i Ar index ) .
+Not all partitioning schemes have embedded bootstrap code, so the
+.Fl b Ar bootcode
+option is scheme-specific in nature.
+For the GPT scheme, embedded bootstrap code is supported.
+The bootstrap code is embedded in the protective MBR rather than the GPT.
The
.Fl b Ar bootcode
option specifies a file that contains the bootstrap code.
@@ -165,6 +173,14 @@ The contents and size of the file are determined by the partitioning
scheme.
For the MBR scheme, it's a 512 byte file of which the first 446 bytes
are installed as bootstrap code.
+The
+.Fl p Ar partcode
+option specifies a file that contains the bootstrap code intended to be
+written to a partition.
+The partition is specified by the
+.Fl i Ar index
+option.
+The size of the file must be smaller than the size of the partition.
.\" ==== COMMIT ====
.It Cm commit
Commit any pending changes for geom
OpenPOWER on IntegriCloud