The following patch provides some minor grammar edits, adds some
markup, and documents a few features that aren't mentioned in the
existing man page.

This is my first effort at submitting a diff to OpenBSD (or any other
project) so if I ought to do something differently let me know.

Cheers,
Anders

Index: fdisk.8
===================================================================
RCS file: /cvs/src/sbin/fdisk/fdisk.8,v
retrieving revision 1.67
diff -u -p -u -p -r1.67 fdisk.8
--- fdisk.8     30 Mar 2009 04:52:50 -0000      1.67
+++ fdisk.8     25 Mar 2010 22:59:41 -0000
@@ -44,7 +44,7 @@ On the i386 and other architectures, sec
 must contain MBR bootcode, the MBR partition table containing 4 slots,
 and a specific magic number (0xAA55).
 The 4 slots in the MBR partition table allow a disk drive to be
-sub-divided up into chunks known as MBR partitions.
+sub-divided into chunks known as MBR partitions.
 .Pp
 On the i386, the BIOS loads sector 0 of the boot disk into memory,
 verifies the magic number, and begins executing the MBR bootcode
@@ -92,11 +92,10 @@ or values that
 .Em /boot
 has passed to the kernel.
 .It Fl e
-Use the interactive edit of
+Use the
 .Nm
-to modify an MBR partition table.
-The editor permits configuration of the MBR partition, as well as
-extended MBR partitions.
+interactive editor to modify an MBR partition table.  The editor permits
+configuration of the MBR partition, as well as extended MBR partitions.
 See
 .Sx COMMAND MODE ,
 below, for more information.
@@ -157,7 +156,7 @@ The first MBR partition is a 1225MB FAT-
 the second is a 36GB
 .Ox
 MBR partition using the remainder of the disk.
-The fields of the output are thus:
+The fields of the output are:
 .Bl -tag -width "start/size"
 .It Em "#"
 Number identifying each MBR partition table entry.
@@ -268,28 +267,39 @@ This number will be 2 when editing an ex
 3 when editing an extended MBR partition within an extended MBR partition,
 and so on.
 .Pp
-The list of commands and their explanations are given below.
+The list of commands and their explanations are given below.  Commands may be
+abbreviated provided enough characters are given to ensure unambiguity.
 .Bl -tag -width Ds
-.It help
+.It Cm ?\&
+A synonmm for
+.Cm help.
+.It Cm help
 Display a list of commands that
 .Nm
 understands in the interactive edit mode.
-.It manual
+.It Cm manual
 Display this manual page.
-.It reinit
+.It Cm reinit
 Initialize the currently selected, in-memory copy of the
 boot block.
-.It disk
+.It Cm disk
 Display the current drive geometry that
 .Nm
 probed using kernel provided information and various heuristics.
 The disk geometry may be changed at this point.
-.It edit Ar #
-Edit a given table entry in the memory copy of
-the current boot block.
-Sizes may be adjusted using either in BIOS geometry mode or
-sector offsets and sizes.
-.It flag Ar #
+.It Cm edit Ar #
+Edit a given table entry in the memory copy of the current boot block.  Sizes
+may be adjusted in BIOS geometry mode or using sector offsets and sizes.  Sizes
+are interpreted as sectors unless a unit is provided by appending
+.Sq b ,
+.Sq k ,
+.Sq m ,
+or
+.Sq g
+to indicate bytes, kilobytes, megabytes, or gigabytes.  The special size value
+.Sq *
+will cause the partition to be sized to use the remainer of the disk.
+.It Cm flag Ar #
 Make the given MBR partition table entry bootable.
 Only one entry can be marked bootable.
 .\" If you wish to boot from an extended
@@ -297,23 +307,23 @@ Only one entry can be marked bootable.
 .\" extended MBR partition as bootable.
 .\" If an optional value is given, the MBR partition is marked with the given
 .\" value, and other MBR partitions are not touched.
-.It update
+.It Cm update
 Update the machine MBR bootcode and 0xAA55 signature in the memory copy
 of the currently selected boot block.
 Note that this option will overwrite an NT disk
 signature, if present.
-.It select Ar #
+.It Cm select Ar #
 Select and load into memory the boot block pointed
 to by the extended MBR partition table entry in the current boot block.
-.It setpid Ar #
+.It Cm setpid Ar #
 Change the MBR partition
 identifier of the given MBR partition table entry.
 This command is particularly useful for reassigning
 an existing MBR partition to
 .Ox .
-.It swap Ar # Ar #
+.It Cm swap Ar # Ar #
 Swap two MBR entries.
-.It print Op unit
+.It Cm print Op Ar unit
 Print the currently selected in-memory copy of the boot
 block and its MBR table to the terminal.
 If
@@ -326,15 +336,15 @@ or
 .Sq g ,
 the MBR is printed in units of bytes, kilobytes, megabytes, or gigabytes.
 Otherwise the number of sectors is printed.
-.It write
+.It Cm write
 Write the in-memory copy of the boot block to disk.
-.It exit
+.It Cm exit
 Exit the current level of
 .Nm fdisk ,
 either returning to the
 previously selected in-memory copy of a boot block, or exiting the
 program if there is none.
-.It quit
+.It Cm quit
 Exit the current level of
 .Nm fdisk ,
 either returning to the
@@ -343,7 +353,7 @@ program if there is none.
 Unlike
 .Em exit
 it does write the modified block out.
-.It abort
+.It Cm abort
 Quit program without saving current changes.
 .El
 .Sh FILES

Reply via email to