On Sat, May 09, 2009 at 12:20:25PM +0200, Joachim Schipper wrote:
> The bioctl(8) man page helpfully suggests dd for zeroing out the
> disklabel etc. on the new disk. However, the command doesn't work, since
> OpenBSD's dd doesn't understand '1M'.
> 
> It may be slightly more readable to use 'bs=1024 count=1024' or some
> variant.

Or, rather, the following diff. But I'm not sure having to places
documenting softraid usage is a good thing (bioctl(8) and softraid(4)).
Maybe we should just remove this example from bioctl(8)?

Index: bioctl.8
===================================================================
RCS file: /home/priteau/cvs/src/sbin/bioctl/bioctl.8,v
retrieving revision 1.66
diff -p -u -r1.66 bioctl.8
--- bioctl.8    19 Mar 2009 15:11:59 -0000      1.66
+++ bioctl.8    9 May 2009 12:25:32 -0000
@@ -232,7 +232,7 @@ or
 don't get confused by the random data that 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 bs=1M count=1
+# dd if=/dev/zero of=/dev/rsd3c bs=1m count=1
 .Ed
 .Sh SEE ALSO
 .Xr ami 4 ,

Reply via email to