From owner-man-jp-reviewer@jp.freebsd.org  Thu Jan 27 21:22:37 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id VAA38243;
	Thu, 27 Jan 2000 21:22:37 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from smtp8.dti.ne.jp (smtp8.dti.ne.jp [202.216.228.43])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id VAA38238
	for <man-jp-reviewer@jp.freebsd.org>; Thu, 27 Jan 2000 21:22:37 +0900 (JST)
	(envelope-from takaha@eurus.dti.ne.jp)
Received: from rynex (PPP23.tama-ap5.dti.ne.jp [210.170.192.23]) by smtp8.dti.ne.jp (8.9.3/3.7W) with SMTP id VAA29327 for <man-jp-reviewer@jp.freebsd.org>; Thu, 27 Jan 2000 21:22:29 +0900 (JST)
Date: Thu, 27 Jan 2000 21:22:29 +0900 (JST)
Message-Id: <200001271222.VAA29327@smtp8.dti.ne.jp>
From: takaha@eurus.dti.ne.jp (Daisuke Takahashi)
To: man-jp-reviewer@jp.freebsd.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
X-Mailer: mnews [version 1.21] 1997-12/23(Tue)
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: man-jp-reviewer 1965
Subject: [man-jp-reviewer 1965] disklabel.8 (4.0-current)
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org
X-Originator: takaha@eurus.dti.ne.jp


$B9b66$G$9!#(B
disklabel.8$B$NLu$r%a!<%k$7$^$9!#(B
diff$B$r$H$k$H(B600$B9T6a$/$"$j$^$7$?$,!"J8>O$N%l%$%"%&%HJQ99$,B?$+$C$?$N$G(B
$B$[$H$s$I$,85$NLu$r(Bcut&paste$B$r$9$k$@$1$G$9$_$^$7$?!#(B

$B$?$@0J2<$N0lJ8$,$&$^$$$3$HF|K\8l$K$J$j$^$;$s$G$7$?!#(B

$B86J8(B: disklabel forms require a disk device name, which should
      always be the raw "complete" (or "c") partition

$BLu(B: $B%G%#%9%/%G%P%$%9L>$O>o$K%m!<(B "$BA4BN(B" (or "c") $B$N(B
    $B%Q!<%F%#%7%g%s$H$J$j$^$9!#(B

$B%G%P%$%9L>$K>JN,7O$rMQ$$$?>l9g!"I,$:A4BN$rI=$9%Q!<%F%#%7%g%s(B(c)$B$N(B
$B%m!<%G%P%$%9$r;X$9!"$H$$$&0UL#$J$N$G$9$,$3$3$^$GJQ$($F$7$^$C$F$b(B
$B$h$$$G$7$g$&$+(B?

---
Daisuke Takahashi / $b$7$+$7$F2K$G$9$+!)


--- disklabel.8.orig	Thu Jan 27 20:48:47 2000
+++ disklabel.8	Thu Jan 27 21:15:27 2000
@@ -33,13 +33,13 @@
 .\" SUCH DAMAGE.
 .\"
 .\"	@(#)disklabel.8	8.2 (Berkeley) 4/19/94
-.\" %FreeBSD: src/sbin/disklabel/disklabel.8,v 1.10.2.2 1999/08/29 15:12:45 peter Exp %
+.\" %FreeBSD: src/sbin/disklabel/disklabel.8,v 1.15 1999/08/28 00:12:34 peter Exp %
 .\"
 .\" jpman %Id: disklabel.8,v 1.2 1997/03/31 14:09:16 horikawa Stab %
 .\"
-.Dd April 19, 1994
+.Dd July 30, 1999
 .Dt DISKLABEL 8
-.Os BSD 4.2
+.Os FreeBSD
 .Sh $BL>>N(B
 .Nm disklabel
 .Nd $B%G%#%9%/%i%Y%k$NFI$_=q$-$r9T$&(B
@@ -73,7 +73,7 @@
 .Fl B
 .Oo
 .Fl b Ar boot1
-.Op Fl s Ar boot2
+.Fl s Ar boot2
 .Oc
 .Ar disk
 .Oo Ar disktype Oc
@@ -83,7 +83,7 @@
 .Fl B
 .Oo
 .Fl b Ar boot1
-.Op Fl s Ar boot2
+.Fl s Ar boot2
 .Oc
 .Ar disk Ar disktype
 .Oo Ar packid Oc
@@ -93,7 +93,7 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!<%k$9$k$?$a$K;H$o$l$^$9!#(B
-$B$3$l$O!"%G%#%9%/%i%Y%k<+?H$KBP$7$F$OK\<AE*$K$OFI$_9~$_%3%^%s%I$G!"(B
-$B$9$Y$F$N%*%W%7%g%s$O$9$G$K5-$7$?$h$&$K(B
-$B%V!<%H%W%m%0%i%`$rFCDj$9$k$N$K4X$9$k$b$N$G$9!#(B
-$B$"$H$N(B 2 $B$D$N7A<0$OF1MM$K!"%G%#%9%/%i%Y%k$r=q$-9~$s$@$jI|85$7$?$j$9$k$N$HF1;~$K(B
-$B%V!<%H%9%H%i%C%W%3!<%I$r%$%s%9%H!<%k$9$k$b$N$G$9!#(B
+.El
 .Sh $B4XO"%U%!%$%k(B
 .Bl -tag -width Pa -compact
 .It Pa /etc/disktab
 .It Pa /boot/
 .It Pa /boot/boot<n>
+.Sh $BJ]B8$5$l$?%U%!%$%k$N7A<0(B
+.Nm
+$B$O(B
+$B%G%#%9%/%i%Y%k$r3NG'!"JT=8!"$^$?$OI|85$9$k:]$K(B
+$B%"%9%-!<7A<0$N%i%Y%k$r;HMQ$7$^$9!#(B
+$B%U%)!<%^%C%H$O0J2<$N$H$*$j$G$9!#(B
+.Bd -literal -offset 4n
+# /dev/rda1c:
+type: SCSI
+disk: sd0s1
+label: 
+flags:
+bytes/sector: 512
+sectors/track: 51
+tracks/cylinder: 19
+sectors/cylinder: 969
+cylinders: 1211
+sectors/unit: 1173930
+rpm: 3600
+interleave: 1
+trackskew: 0
+cylinderskew: 0
+headswitch: 0           # milliseconds
+track-to-track seek: 0  # milliseconds
+drivedata: 0 
+
+8 partitions:
+#        size   offset    fstype   [fsize bsize bps/cpg]
+  a:    81920        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 84*)
+  b:   160000    81920      swap                        # (Cyl.   84* - 218*)
+  c:  1173930        0    unused        0     0         # (Cyl.    0 - 1211*)
+  h:   962010   211920     vinum                        # (Cyl.  218*- 1211*)
+.Ed
+.Pp
+# $B$G;O$^$k9T$O%3%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#%7%g%s$,%7%j%s%@6-3&$G(B
+$B87L)$K$O$8$^$C$F$$$J$$!"$b$7$/$O=*$C$F$$$J$$$3$H$r0UL#$7$^$9!#(B
 .Sh $B;HMQNc(B
 .Dl disklabel da0
 .Pp
@@ -290,10 +516,24 @@
 .Pa /dev/rda0c
 $B$+$iF@$i$l$?$b$N$H$7$FI=<($7$^$9!#(B
 .Pp
+.Dl disklabel da0 > savedlabel
+.Pp
+.Pa da0
+$B$KBP$9$k(B
+$B%+!<%M%kFb$N%3%T!<$r%U%!%$%k$K(B
+.Pa savedlabel
+$B$KJ]B8$7$^$9!#(B
+$B$3$N%U%!%$%k$O8e$G(B
+.Fl R
+$B%U%i%0$rMQ$$$F%i%Y%k$rI|85$9$k:]$K;HMQ$G$-$^$9!#(B
+.Pp
 .Dl disklabel -w -r /dev/rda0c da2212 foo
 .Pp
 .Pa /etc/disktab
-$B$K=q$+$l$F$$$k(B ``da2212'' $B$N>pJs$r(B
+$B$K=q$+$l$F$$$k(B
+.if t ``da2212''
+.if n "da2212"
+$B$N>pJs$r(B
 da0 $B$N%i%Y%k$H$7$F=q$-9~$_$^$9!#(B
 $BB8:_$7$?%V!<%H%9%H%i%C%W%3!<%I$O;H$($J$/$J$j$^$9!#(B
 .Pp
@@ -309,9 +549,9 @@
 $B%Q!<%F%#%7%g%s$*$h$S%U%!%$%k%7%9%F%`>pJs$rJT=8$9$k$?$a$K!"(B
 $B$3$N8e$G(B disklabel -e $B%3%^%s%I$r;H$C$F2<$5$$!#(B
 .Pp
-.Dl disklabel -R da0 mylabel
+.Dl disklabel -R da0 savedlabel
 .Pp
-.Pa mylabel
+.Pa savedlabel
 $B$K=q$+$l$F$$$k>pJs$r(B
 da0 $B$N%i%Y%k$H$7$F=q$-9~$_$^$9!#(B
 $B%G%#%9%/>e$N%i%Y%k$H$H$b$K%+!<%M%kFb%3%T!<$b=q$-49$($i$l$^$9!#(B
@@ -327,13 +567,16 @@
 $B$G$9!#(B
 $B%G%#%9%/>e$N%i%Y%k$*$h$S%+!<%M%kFb%3%T!<$O1F6A$r<u$1$^$;$s!#(B
 .Pp
-.Dl disklabel -w -B /dev/rda0c -b newboot da2212
+.Dl disklabel -w -B /dev/rda0c -b newboot1 -s newboot da2212
 .Pp
 $B?7$?$J%i%Y%k$H%V!<%H%9%H%i%C%W%3!<%I$r=q$-9~$_$^$9!#(B
-$B%i%Y%k$O(B disktab $B$N(B ``da2212'' $B$N>pJs$r;HMQ$7!"(B
+.if t $B%i%Y%k$O(B disktab $B$N(B ``da2212'' $B$N>pJs$r;HMQ$7!"(B
+.if n $B%i%Y%k$O(B disktab $B$N(B "da2212" $B$N>pJs$r;HMQ$7!"(B
 $B%G%#%9%/>e$N%i%Y%k$H$H$b$K%+!<%M%kFb%3%T!<$b=q$-49$($i$l$^$9!#(B
 $B%V!<%H%9%H%i%C%W%3!<%I$O(B
-.Pa /boot/newboot
+.Pa /boot/newboot1
+$B$H(B
+.Pa /boot/newboot2
 $B$G$9!#(B
 .Sh $B4XO"9`L\(B
 .Xr disklabel 5 ,
@@ -348,12 +591,18 @@
 $B%i%Y%k$r;}$?$J$$%G%#%9%/$KBP$7$F(B 1 $B%Q!<%F%#%7%g%s$N$_$+$i$J$k(B
 $B%i%Y%k$r:n@.$9$k$b$N$,$"$j$^$9!#(B
 $B$=$N$?$a!"(B
-$B%*!<%W%s$5$l$F$$$k%G%#%9%/$N%i%Y%k$O(B ``a'' $B%Q!<%F%#%7%g%s$K=q$/I,MW$,$"$j$^$9!#(B
+$B%*!<%W%s$5$l$F$$$k%G%#%9%/$N%i%Y%k$O(B
+.if t ``a''
+.if n "a"
+$B%Q!<%F%#%7%g%s$K=q$/I,MW$,$"$j$^$9!#(B
 $B$3$N$h$&$JM}M3$G!"(B
 $B<!$N(B 2 $B%9%F%C%W$K$h$j!"(B
 $B=jK>$N%i%Y%k$r:n@.$9$kI,MW$,$"$k>l9g$,$"$j$^$9!#(B
 $BBh(B 1 $B%9%F%C%W$O>/$J$/$H$b$b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$o$l$J$$NN0h$,;D$C$F$7$^$C$F$b(B
+$B7Y9p$O=PNO$5$l$^$;$s!#(B

--- disklabel.34.e	Thu Jan 27 20:48:46 2000
+++ disklabel.40.e	Thu Jan 27 20:48:46 2000
@@ -33,11 +33,11 @@
 .\" SUCH DAMAGE.
 .\"
 .\"	@(#)disklabel.8	8.2 (Berkeley) 4/19/94
-.\" $FreeBSD: src/sbin/disklabel/disklabel.8,v 1.10.2.2 1999/08/29 15:12:45 peter Exp $
+.\" $FreeBSD: src/sbin/disklabel/disklabel.8,v 1.15 1999/08/28 00:12:34 peter Exp $
 .\"
-.Dd April 19, 1994
+.Dd July 30, 1999
 .Dt DISKLABEL 8
-.Os BSD 4.2
+.Os FreeBSD
 .Sh NAME
 .Nm disklabel
 .Nd read and write disk pack label
@@ -66,7 +66,7 @@
 .Fl B
 .Oo
 .Fl b Ar boot1
-.Op Fl s Ar boot2
+.Fl s Ar boot2
 .Oc
 .Ar disk
 .Oo Ar disktype Oc
@@ -75,7 +75,7 @@
 .Fl B
 .Oo
 .Fl b Ar boot1
-.Op Fl s Ar boot2
+.Fl s Ar boot2
 .Oc
 .Ar disk Ar disktype
 .Oo Ar packid Oc
@@ -84,42 +84,64 @@
 .Fl B
 .Oo
 .Fl b Ar boot1
-.Op Fl s Ar boot2
+.Fl s Ar boot2
 .Oc
 .Ar disk Ar protofile
 .Oo Ar disktype Oc
 .Sh DESCRIPTION
 .Nm Disklabel
-can be used to install, examine or modify the label on a disk drive or pack.
-When writing the label, it can be used
-to change the drive identification,
-the disk partitions on the drive,
-or to replace a damaged label.
-On some systems,
-.Nm
-can be used to install bootstrap code as well.
-There are several forms of the command that read (display), install or edit
-the label on a disk.
-Each form has an additional option,
-.Fl r ,
-which causes the label to be read from or written to the disk directly,
-rather than going through the system's in-core copy of the label.
-This option may allow a label to be installed on a disk
-without kernel support for a label, such as when labels are first installed
-on a system; it must be used when first installing a label on a disk.
-The specific effect of
+installs, examines or modifes the label on a disk drive or pack.  When writing
+the label, it can be used to change the drive identification, the disk
+partitions on the drive, or to replace a damaged label.  There are several forms
+of the command that read (display), install or edit the label on a disk.  In
+addition,
+.Nm
+can install bootstrap code.
+.Ss Raw or in-core label
+.Pp
+The disk label is resident close to or at the beginning of each disk partition.
+For faster access, the kernel maintains a copy in core at all times.  By
+default, most
+.Nm
+access the in-core copy of the label.  To access the raw (on-disk) copy, use the
+.Fl r
+option.  This option allows a label to be installed on a disk without kernel
+support for a label, such as when labels are first installed on a system; it
+must be used when first installing a label on a disk.  The specific effect of
 .Fl r
 is described under each command.
-The read and install forms also support the
-.Fl B
-option to install bootstrap code.
-These variants are described later.
 .Pp
-The first form of the command (read) is used to examine the label on the named
-disk drive (e.g. da0 or /dev/rda0c).
-It will display all of the parameters associated with the drive
-and its partition layout.
-Unless the
+.Ss Disk device name
+.Pp
+All 
+.Nm disklabel 
+forms require a disk device name, which should always be the raw
+.if t ``complete'' (or ``c'')
+.if n "complete" (or "c")
+partition, for example
+.Pa /dev/rda0c .
+.Nm
+understands the abbreviation
+.Pa da0 ,
+which it converts internally to
+.Pa /dev/rda0c .
+.Ss Reading the disk label
+.Pp
+To examine or save the label on a disk drive, use
+.Nm 
+without options:
+.Pp
+.Nm disklabel
+.Op Fl r
+.Ar disk
+.Pp
+.Ar disk
+represents the raw disk in question, and may be in the form
+.Pa da0
+or
+.Pa /dev/rda0c .
+It will display all of the parameters associated with the drive and its
+partition layout.  Unless the
 .Fl r
 flag is given,
 the kernel's in-core copy of the label is displayed;
@@ -127,31 +149,35 @@
 the kernel may have constructed or modified the label.
 If the
 .Fl r
-flag is given, the label from the raw disk will be displayed rather
-than the in-core label.
+flag is given, 
+.Nm
+reads the label from the raw disk and displays it.
+.Ss Writing a standard label
+.Pp
+To write a standard label, use the form
 .Pp
-The second form of the command, with the
+.Nm disklabel
 .Fl w
-flag, is used to write a standard label on the designated drive.
+.Op Fl r
+.Ar disk Ar disktype
+.Oo Ar packid Oc
+.Pp
 The required arguments to
 .Nm
-are the drive to be labeled (e.g. da0), and
-the drive type as described in the
-.Xr disktab 5
-file.
-The drive parameters and partitions are taken from that file.
-If different disks of the same physical type are to have different
-partitions, it will be necessary to have separate disktab entries
-describing each, or to edit the label after installation as described below.
-The optional argument is a pack identification string,
-up to 16 characters long.
-The pack id must be quoted if it contains blanks.
-If the
+are the drive to be labeled and the drive type as described in the
+.Pa disktab(5)
+file.  The drive parameters and partitions are taken from that file.  If
+different disks of the same physical type are to have different partitions, it
+will be necessary to have separate disktab entries describing each, or to edit
+the label after installation as described below.  The optional argument is a
+pack identification string, up to 16 characters long.  The pack id must be
+quoted if it contains blanks.  If the
 .Fl r
 flag is given, the disk sectors containing the label and bootstrap
 will be written directly.
 A side-effect of this is that any existing bootstrap code will be overwritten
-and the disk rendered unbootable.
+and the disk rendered unbootable.  See the boot options below for a method of
+writing the label and the bootstrap at the same time.
 If
 .Fl r
 is not specified,
@@ -176,154 +202,315 @@
 .Ar disk
 itself must be provided as the canonical name, i.e. not as a full
 path name.
+.Ss Editing an existing disk label
+.Pp
+To edit an existing disk label, use the form
 .Pp
-An existing disk label may be edited by using the
+.Nm disklabel
 .Fl e
-flag.
-The label is read from the in-core kernel copy,
-or directly from the disk if the
+.Op Fl r
+.Ar disk
+.Pp
+This command reads the label from the in-core kernel copy, or directly from the
+disk if the
 .Fl r
-flag is also given.
-The label is formatted and then supplied to an editor for changes.
-If no editor is specified in an
+flag is also specified.  The label is written to a file in ASCII and then
+supplied to an editor for changes.  If no editor is specified in an
 .Ev EDITOR
 environment variable,
 .Xr vi 1
-is used.
-When the editor terminates, the formatted label is reread
-and used to rewrite the disk label.
-Existing bootstrap code is unchanged regardless of whether
+is used.  When the editor terminates, the label file is used to rewrite the disk
+label.  Existing bootstrap code is unchanged regardless of whether
 .Fl r
 was specified.
+.Ss Restoring a disk label from a file
 .Pp
-With the
+To restore a disk label from a file, use the form
+.Pp
+.Nm disklabel
 .Fl R
-flag,
+.Op Fl r
+.Ar disk Ar protofile
+.Pp
 .Nm
-is capable of restoring a disk label that was formatted
-in a prior operation and saved in an ascii file.
-The prototype file used to create the label should be in the same format
-as that produced when reading or editing a label.
-Comments are delimited by
+is capable of restoring a disk label that was previously saved in a file ASCII.
+The prototype file used to create the label should be in the same format as that
+produced when reading or editing a label.  Comments are delimited by
 .Ar \&#
-and newline.
-As with
-.Fl w ,
-any existing bootstrap code will be clobbered if
+and newline.  As when writing a new label, any existing bootstrap code will be
+clobbered if
 .Fl r
-is specified and will be unaffected otherwise.
+is specified and will be unaffected otherwise.  See the boot options below for a
+method of restoring the label and writing the bootstrap at the same time.
+.Ss Enabling and disabling writing to the disk label area
+.Pp
+By default, it is not possible to write to the disk label area at the beginning
+of a disk.  The disk driver silently ignores any attempt to do so.  If you need
+to write to this area (for example, to obliterate the label), use the form
 .Pp
-The
-.Fl NW
-flags for
-.Nm
-explicitly disallow and
-allow, respectively, writing of the pack label area on the selected disk.
+.Nm disklabel
+.Op Fl W
+.Ar disk
+.Pp
+To disallow writing to the label area after previously allowing it, use the
+command
+.Pp
+.Nm disklabel
+.Op Fl N
+.Ar disk
+.Ss Installing bootstraps
 .Pp
 The final three forms of
 .Nm
-are used to install bootstrap code on machines where the bootstrap is part
-of the label.
-The bootstrap code is comprised of one or two boot programs depending on
-the machine.
-The
+are used to install bootstrap code:
+.Pp
+.Nm disklabel
 .Fl B
-option is used to denote that bootstrap code is to be installed.
-The
-.Fl r
-flag is implied by
+.Oo
+.Fl b Ar boot1
+.Fl s Ar boot2
+.Oc
+.Ar disk
+.Oo Ar disktype Oc
+.Pp
+This form installs the bootstrap only.  It does not change the disk label.
+.Pp
+.Nm disklabel
+.Fl w
+.Fl B
+.Oo
+.Fl b Ar boot1
+.Fl s Ar boot2
+.Oc
+.Ar disk Ar disktype
+.Oo Ar packid Oc
+.Pp
+.if t This form corresponds to the ``write label'' command described above.  
+.if n This form corresponds to the "write label" command described above.  
+In addition to writing a new volume label, it also installs the bootstrap.
+.Pp
+.Nm disklabel
+.Fl R
 .Fl B
-and never needs to be specified.
-The name of the boot program(s) to be installed can be selected in a
-variety of ways.
-First, the names can be specified explicitly via the
+.Oo
+.Fl b Ar boot1
+.Fl s Ar boot2
+.Oc
+.Ar disk Ar protofile
+.Oo Ar disktype Oc
+.Pp
+.if t This form corresponds to the ``restore label'' command described above.  
+.if n This form corresponds to the "restore label" command described above.  
+In addition to restoring the volume label, it also installs the bootstrap.
+.Pp
+The bootstrap commands always access the disk directly, so it is not necessary
+to specify the
+.Fl r
+flag.
+.Pp
+The bootstrap code is comprised of two boot programs.  Specify the name of the
+boot programs to be installed in one of these ways:
+.Bl -enum
+.It
+Specify the names explicitly with the
 .Fl b
 and
 .Fl s
-flags.
-On machines with only a single level of boot program,
-.Fl b
-is the name of that program.
-For machines with a two-level bootstrap,
+flags. 
 .Fl b
 indicates the primary boot program and
 .Fl s
-the secondary boot program.
-If the names are not explicitly given, standard boot programs will be used.
-The boot programs are located in
+the secondary boot program.  The boot programs are located in
 .Pa /boot .
-The names of the programs are taken from the ``b0'' and ``b1'' parameters
-of the
-.Xr disktab 5
-entry for the disk if
+.It
+If the
+.Fl b
+and
+.Fl s
+flags are not specified, but 
 .Ar disktype
-was given and its disktab entry exists and includes those parameters.
-Otherwise, the default boot image names are used, these being:
+was specified, the names of the programs are taken from the 
+.if t ``b0'' and ``b1''
+.if n "b0" and "b1"
+parameters of the
+.Xr disktab 5
+entry for the disk if the disktab entry exists and includes those parameters.
+.It
+Otherwise, the default boot image names are used:
 .Pa /boot/boot1
 and
 .Pa /boot/boot2
 for the standard stage1 and stage2 boot images (details may vary
 on architectures like the Alpha, where only a single-stage boot is used).
-.Pp
-The first of the three boot-installation forms is used to install
-bootstrap code without changing the existing label.
-It is essentially a read command with respect to the disk label
-itself and all options are related to the specification of the boot
-program as described previously.
-The final two forms are analogous to the basic write and restore versions
-except that they will install bootstrap code in addition to a new label.
+.El
 .Sh FILES
 .Bl -tag -width Pa -compact
 .It Pa /etc/disktab
 .It Pa /boot/
 .It Pa /boot/boot<n>
 .El
+.Sh SAVED FILE FORMAT
+.Nm
+uses an ASCII version of the label when examining, editing or restoring a disk
+label.  The format is:
+.Bd -literal -offset 4n
+# /dev/rda1c:
+type: SCSI
+disk: sd0s1
+label: 
+flags:
+bytes/sector: 512
+sectors/track: 51
+tracks/cylinder: 19
+sectors/cylinder: 969
+cylinders: 1211
+sectors/unit: 1173930
+rpm: 3600
+interleave: 1
+trackskew: 0
+cylinderskew: 0
+headswitch: 0           # milliseconds
+track-to-track seek: 0  # milliseconds
+drivedata: 0 
+
+8 partitions:
+#        size   offset    fstype   [fsize bsize bps/cpg]
+  a:    81920        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 84*)
+  b:   160000    81920      swap                        # (Cyl.   84* - 218*)
+  c:  1173930        0    unused        0     0         # (Cyl.    0 - 1211*)
+  h:   962010   211920     vinum                        # (Cyl.  218*- 1211*)
+.Ed
+.Pp
+Lines starting with a # mark are comments.  Most of the other specifications are
+no longer used.  The ones which must still be set correctly are:
+.Pp
+.Bl -hang -width 20n
+.It Nm label
+is an optional label, set by the
+.Ar packid
+option when writing a label.
+.It Nm flags
+Flags may be
+.Ar removable ,
+.Ar ecc 
+or
+.Ar badsect .
+.Ar removable
+is set for removable media drives, but no current FreeBSD driver evaluates this
+flag.
+.Ar ecc
+is no longer supported; 
+.Ar badsect
+specifies that the drive can perform bad sector remapping.
+.It Nm sectors/unit
+describes the total size of the disk.  This value must be correct.
+.It Nm the partition table
+This is the UNIX partition table, not the Microsoft partition table described in
+.Xr fdisk 8 .
+.El
+.Pp
+The partition table can have up to 8 entries.  It contains the following
+information:
+.Bl -hang -width 10n
+.It identifier
+The partition identifier is a single letter in the range
+.Nm a
+to
+.Nm h .
+By convention, partition
+.Nm c
+is reserved to describe the entire disk.
+.It size
+is the size of the partition in sectors.
+.It offset
+is the offset of the start of the partition from the beginning of the drive.
+.It fstype
+describes the purpose of the partition.  The example shows most normal usages.
+For UFS file systems, use type 4.2BSD.  See
+.Pa /usr/include/sys/disklabel.h 
+for a complete list.
+.It fsize
+For file systems only, the fragment size.
+.It bsize
+For file systems only, the block size.
+.It bps/cpg
+For UFS file systems, the number of cylinders in a cylinder group.  For LFS file
+systems, the segment shift value.
+.El
+The remainder of the line is a comment and shows the cylinder allocations based
+on the obsolete (but possibly correct) geometry information about the drive.
+The asterisk (*) indicates that the partition does not begin or end exactly on a
+cylinder boundary.
 .Sh EXAMPLES
 .Dl disklabel da0
 .Pp
-Display the in-core label for da0 as obtained via
+Display the in-core label for 
+.Pa da0
+as obtained via
 .Pa /dev/rda0c .
 .Pp
+.Dl disklabel da0 > savedlabel
+.Pp
+Save the in-core label for 
+.Pa da0
+into the file
+.Pa savedlabel .
+This file can be used with the
+.Fl R
+flag to restore the label at a later date.
+.Pp
 .Dl disklabel -w -r /dev/rda0c da2212 foo
 .Pp
-Create a label for da0 based on information for ``da2212'' found in
+Create a label for 
+.Pa da0
+based on information for
+.if t ``da2212'' found in
+.if n "da2212" found in
 .Pa /etc/disktab .
 Any existing bootstrap code will be clobbered.
 .Pp
 .Dl disklabel -e -r da0
 .Pp
-Read the on-disk label for da0, edit it and reinstall in-core as well
-as on-disk.
-Existing bootstrap code is unaffected.
+Read the on-disk label for 
+.Pa da0 ,
+edit it and reinstall in-core as well as on-disk.  Existing bootstrap code is
+unaffected.
 .Pp
 .Dl disklabel -r -w da0 auto
 .Pp
-Try to auto-detect the required information from da0, and write a new
-label to the disk.  Use another disklabel -e command to edit the
+Try to auto-detect the required information from 
+.Pa da0 ,
+and write a new label to the disk.  Use another disklabel -e command to edit the
 partitioning and file system information.
 .Pp
-.Dl disklabel -R da0 mylabel
+.Dl disklabel -R da0 savedlabel
 .Pp
-Restore the on-disk and in-core label for da0 from information in
-.Pa mylabel .
+Restore the on-disk and in-core label for 
+.Pa da0
+from information in
+.Pa savedlabel .
 Existing bootstrap code is unaffected.
 .Pp
 .Dl disklabel -B da0
 .Pp
-Install a new bootstrap on da0.
+Install a new bootstrap on 
+.Pa da0 .
 The boot code comes from
 .Pa /boot/boot1
 and possibly
 .Pa /boot/boot2 .
 On-disk and in-core labels are unchanged.
 .Pp
-.Dl disklabel -w -B /dev/rda0c -b newboot da2212
+.Dl disklabel -w -B /dev/rda0c -b newboot1 -s newboot da2212
 .Pp
 Install a new label and bootstrap.
-The label is derived from disktab information for ``da2212'' and
+.if t The label is derived from disktab information for ``da2212'' and
+.if n The label is derived from disktab information for "da2212" and
 installed both in-core and on-disk.
-The bootstrap code comes from the file
-.Pa /boot/newboot .
+The bootstrap code comes from the files
+.Pa /boot/newboot1
+and
+.Pa /boot/newboot2 .
 .Sh SEE ALSO
 .Xr disklabel 5 ,
 .Xr disktab 5 ,
@@ -333,17 +520,22 @@
 The kernel device drivers will not allow the size of a disk partition
 to be decreased or the offset of a partition to be changed while it is open.
 Some device drivers create a label containing only a single large partition
-if a disk is unlabeled; thus, the label must be written to the ``a''
-partition of the disk while it is open.
-This sometimes requires the desired label to be set in two steps,
-the first one creating at least one other partition,
-and the second setting the label on the new partition
-while shrinking the ``a'' partition.
+if a disk is unlabeled; thus, the label must be written to the 
+.if t ``a''
+.if n "a"
+partition of the disk while it is open.  This sometimes requires the desired
+label to be set in two steps, the first one creating at least one other
+partition, and the second setting the label on the new partition while shrinking
+the
+.if t ``a''
+.if n "a"
+partition.
 .Pp
 On some machines the bootstrap code may not fit entirely in the area
 allocated for it by some filesystems.
 As a result, it may not be possible to have filesystems on some partitions
-of a ``bootable'' disk.
+.if t of a ``bootable'' disk.
+.if n of a "bootable" disk.
 When installing bootstrap code,
 .Nm
 checks for these cases.
@@ -357,8 +549,8 @@
 will not install bootstrap code that overlaps it.
 .Sh BUGS
 When a disk name is given without a full pathname,
-the constructed device name uses the ``a'' partition on the Tahoe,
-the ``c'' partition on all others.
+.if t the constructed device name uses the ``c'' partition.
+.if n the constructed device name uses the "c" partition.
 .Pp
 For the i386 architecture, the primary bootstrap sector contains
 an embedded
@@ -379,3 +571,7 @@
 table by the dummy one in the bootstrap program.  This is only of
 concern if the disk is fully dedicated, so that the BSD disklabel
 starts at absolute block 0 on the disk.
+.Pp
+.Nm
+does not perform adequate error checking.  No warning is given if partitions
+overlap, nor if space remains unused.
