summaryrefslogtreecommitdiff
path: root/sbin/fdisk
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2014-03-06 17:39:24 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2014-03-06 17:39:24 +0000
commit93c048e01796ddaa5cf098c83ebdaa648fc61793 (patch)
treea460217a5d0483b444729c932b1aa39df85f8ef5 /sbin/fdisk
parentf38d8f39c88f17a5187e7659e1da2ec79395d568 (diff)
tweak previous;
Diffstat (limited to 'sbin/fdisk')
-rw-r--r--sbin/fdisk/fdisk.810
-rw-r--r--sbin/fdisk/fdisk.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/sbin/fdisk/fdisk.8 b/sbin/fdisk/fdisk.8
index 2baf413c621..bb4f0bc5bbc 100644
--- a/sbin/fdisk/fdisk.8
+++ b/sbin/fdisk/fdisk.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fdisk.8,v 1.75 2014/03/02 15:41:28 deraadt Exp $
+.\" $OpenBSD: fdisk.8,v 1.76 2014/03/06 17:39:23 jmc Exp $
.\"
.\" Copyright (c) 1997 Tobias Weingartner
.\" All rights reserved.
@@ -23,7 +23,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: March 2 2014 $
+.Dd $Mdocdate: March 6 2014 $
.Dt FDISK 8
.Os
.Sh NAME
@@ -37,8 +37,8 @@
.Fl h Ar heads
.Fl s Ar sectors
.Oc
-.Op Fl l Ar blocks
.Op Fl f Ar mbrfile
+.Op Fl l Ar blocks
.Ar disk
.Sh DESCRIPTION
On the i386 and other architectures, sector 0 of a bootable hard disk
@@ -120,9 +120,9 @@ In the default template, MBR partition number 3 will be configured as an
MBR partition spanning the entire disk, except for a zone left at the start
for booting.
This mode is designed to initialize the MBR the very first time.
-.It Fl l
+.It Fl l Ar blocks
Specify the number of blocks in the disk, and force the MBR to be in LBA
-mode only.
+mode only.
.It Fl u
Update MBR bootcode, preserving existing MBR partition table.
The MBR bootcode extends from offset 0x000 to the start of the MBR partition table
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c
index a1e46bc91cb..dfd2cf78a92 100644
--- a/sbin/fdisk/fdisk.c
+++ b/sbin/fdisk/fdisk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdisk.c,v 1.55 2014/03/02 15:41:28 deraadt Exp $ */
+/* $OpenBSD: fdisk.c,v 1.56 2014/03/06 17:39:23 jmc Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -51,7 +51,7 @@ usage(void)
extern char * __progname;
fprintf(stderr, "usage: %s "
- "[-eiuy] [-l blocks] [-c cylinders -h heads -s sectors] [-f mbrfile] disk\n"
+ "[-eiuy] [-c cylinders -h heads -s sectors] [-f mbrfile] [-l blocks] disk\n"
"\t-i: initialize disk with virgin MBR\n"
"\t-u: update MBR code, preserve partition table\n"
"\t-e: edit MBRs on disk interactively\n"