summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrunk <grunk@openbsd.org>2009-03-19 13:44:46 +0000
committergrunk <grunk@openbsd.org>2009-03-19 13:44:46 +0000
commit7fbc6db12751ba5e79ed76b9a77a6a7aca491ff6 (patch)
tree05345b162b8a53fe76762df7191a4d2590af10bb
parentMake ips_timeout to be usable not only with scsi xfers. (diff)
downloadwireguard-openbsd-7fbc6db12751ba5e79ed76b9a77a6a7aca491ff6.tar.xz
wireguard-openbsd-7fbc6db12751ba5e79ed76b9a77a6a7aca491ff6.zip
correct an example in the manpage: after creating a new crypto volume,
it is sufficient to zero the first megabyte of the disk, not the whole disk. ok marco@ mpf@ rainer@ jmc@
-rw-r--r--sbin/bioctl/bioctl.815
1 files changed, 10 insertions, 5 deletions
diff --git a/sbin/bioctl/bioctl.8 b/sbin/bioctl/bioctl.8
index c0037f0bf5f..55a3ea5742c 100644
--- a/sbin/bioctl/bioctl.8
+++ b/sbin/bioctl/bioctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bioctl.8,v 1.64 2009/02/22 07:46:55 jmc Exp $
+.\" $OpenBSD: bioctl.8,v 1.65 2009/03/19 13:44:46 grunk Exp $
.\"
.\" Copyright (c) 2004, 2005 Marco Peereboom
.\"
@@ -23,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: February 22 2009 $
+.Dd $Mdocdate: March 19 2009 $
.Dt BIOCTL 8
.Os
.Sh NAME
@@ -224,10 +224,15 @@ volume:
.Nm
will ask for a passphrase, that will be needed to unlock the encrypted
disk.
-After creating a new encrypted disk, it should be zeroed with the
-following command (assuming the new disk is sd3):
+After creating a new encrypted disk, the first megabyte of it should be
+zeroed, so tools like
+.Xr fdisk 8
+or
+.Xr disklabel 8
+don't get confused by the random data that now appears on the new disk.
+This can be done with the following command (assuming the new disk is sd3):
.Bd -literal -offset 3n
-# dd if=/dev/zero of=/dev/rsd3c
+# dd if=/dev/zero of=/dev/rsd3c bs=1M count=1
.Ed
.Sh SEE ALSO
.Xr ami 4 ,