Document that SI unit suffixes are supported for -b and -s options
of add verb. Mention about maximum size limit for "freebsd-boot" partition. It should be smaller than 545 KB (hardcoded in pmbr). Show usage of SI unit suffixes in example. Approved by: mav (mentor) MFC after: 1 week
This commit is contained in:
parent
318a43da85
commit
959059ef9e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210408
@ -24,7 +24,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd June 3, 2010
|
.Dd July 23, 2010
|
||||||
.Dt GPART 8
|
.Dt GPART 8
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -84,9 +84,9 @@ utility:
|
|||||||
.\" ==== ADD ====
|
.\" ==== ADD ====
|
||||||
.Nm
|
.Nm
|
||||||
.Cm add
|
.Cm add
|
||||||
.Fl b Ar start
|
|
||||||
.Fl s Ar size
|
|
||||||
.Fl t Ar type
|
.Fl t Ar type
|
||||||
|
.Op Fl b Ar start
|
||||||
|
.Op Fl s Ar size
|
||||||
.Op Fl i Ar index
|
.Op Fl i Ar index
|
||||||
.Op Fl l Ar label
|
.Op Fl l Ar label
|
||||||
.Op Fl f Ar flags
|
.Op Fl f Ar flags
|
||||||
@ -171,9 +171,13 @@ Add a new partition to the partitioning scheme given by
|
|||||||
The partition begins on the logical block address given by the
|
The partition begins on the logical block address given by the
|
||||||
.Fl b Ar start
|
.Fl b Ar start
|
||||||
option.
|
option.
|
||||||
Its size is expressed in logical block numbers and given by the
|
Its size is given by the
|
||||||
.Fl s Ar size
|
.Fl s Ar size
|
||||||
option.
|
option. SI unit suffixes are allowed. One or both
|
||||||
|
.Fl b
|
||||||
|
and
|
||||||
|
.Fl s
|
||||||
|
options can be ommitted. If so they are automatically calculated.
|
||||||
The type of the partition is given by the
|
The type of the partition is given by the
|
||||||
.Fl t Ar type
|
.Fl t Ar type
|
||||||
option.
|
option.
|
||||||
@ -542,7 +546,7 @@ from a
|
|||||||
partition, and install bootstrap code into it.
|
partition, and install bootstrap code into it.
|
||||||
This partition must be larger than
|
This partition must be larger than
|
||||||
.Pa /boot/gptboot ,
|
.Pa /boot/gptboot ,
|
||||||
or the GPT boot you are planning to write.
|
or the GPT boot you are planning to write, but smaller than 545 KB.
|
||||||
A size of 15 blocks (7680 bytes) would be sufficient for
|
A size of 15 blocks (7680 bytes) would be sufficient for
|
||||||
booting from UFS but let's use 128 blocks (64 KB) here in
|
booting from UFS but let's use 128 blocks (64 KB) here in
|
||||||
this example, in order to reserve some space for potential
|
this example, in order to reserve some space for potential
|
||||||
@ -569,7 +573,7 @@ Create a 512MB-sized
|
|||||||
.Cm freebsd-ufs
|
.Cm freebsd-ufs
|
||||||
partition that would contain UFS where the system boots from.
|
partition that would contain UFS where the system boots from.
|
||||||
.Bd -literal -offset indent
|
.Bd -literal -offset indent
|
||||||
/sbin/gpart add -b 0 -s 1048576 -t freebsd-ufs da0
|
/sbin/gpart add -s 512M -t freebsd-ufs da0
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
After having created all required partitions, embed bootstrap code into them.
|
After having created all required partitions, embed bootstrap code into them.
|
||||||
|
Loading…
Reference in New Issue
Block a user