summaryrefslogtreecommitdiff
path: root/sbin/fdisk/fdisk.8
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-08-05 14:04:01 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-08-05 14:04:01 +0000
commit382be8a91c79cf49998b700ac67711e72c130e18 (patch)
treea0ab4b16aac6933ceda88951af64473601cd8515 /sbin/fdisk/fdisk.8
parent3a800065c2b1c1a11f2a2fd8ceba83c06f069d13 (diff)
Mention that `b', `k', `m', and `g' can be specified after the print
command to print partition sizes in units of bytes, kilobytes, megabytes, and gigabytes. Inspired by patch from Hiren Patel <hiren at obsidian dot co dot za>. OK jmc@ and otto@
Diffstat (limited to 'sbin/fdisk/fdisk.8')
-rw-r--r--sbin/fdisk/fdisk.814
1 files changed, 12 insertions, 2 deletions
diff --git a/sbin/fdisk/fdisk.8 b/sbin/fdisk/fdisk.8
index 6d21e372b4e..c49813eabd2 100644
--- a/sbin/fdisk/fdisk.8
+++ b/sbin/fdisk/fdisk.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fdisk.8,v 1.50 2005/05/01 20:53:38 jmc Exp $
+.\" $OpenBSD: fdisk.8,v 1.51 2006/08/05 14:04:00 ray Exp $
.\"
.\" Copyright (c) 1997 Tobias Weingartner
.\" All rights reserved.
@@ -299,9 +299,19 @@ an existing MBR partition to
.Ox .
.It swap Ar # Ar #
Swap two MBR entries.
-.It print
+.It print Op unit
Print the currently selected in-memory copy of the boot
block and its MBR table to the terminal.
+If
+.Ar unit
+is specified as
+.Sq b ,
+.Sq k ,
+.Sq m ,
+or
+.Sq g ,
+the MBR is printed in units of bytes, kilobytes, megabytes, or gigabytes.
+Otherwise the number of sectors is printed.
.It write
Write the in-memory copy of the boot block to disk.
.It exit