Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Nov 2015 19:05:49 -0600
From:      Dutch Ingraham <stoa@gmx.us>
To:        freebsd-doc@freebsd.org
Subject:   Re: Handbook wrong code mistake
Message-ID:  <20151115010548.GA22107@OBSD.my.domain>
In-Reply-To: <alpine.BSF.2.20.1511141733380.23366@wonkity.com>
References:  <306287979.5182807.1447525386292.JavaMail.yahoo.ref@mail.yahoo.com> <306287979.5182807.1447525386292.JavaMail.yahoo@mail.yahoo.com> <CA%2BtpaK1kPYdFQxCrfYcExUQXPCerp2dpDNEcDg_3BHRKGH6-=g@mail.gmail.com> <alpine.BSF.2.20.1511141733380.23366@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 14, 2015 at 05:36:36PM -0700, Warren Block wrote:
> On Sat, 14 Nov 2015, Adam Vande More wrote:
> 
> >On Sat, Nov 14, 2015 at 12:23 PM, Ömer Gülmen <freebsd-doc@freebsd.org>
> >wrote:
> >
> >>Hi dude
> >>
> >>2.3.1.1. Writing an Image File to USB
> >>
> >>you wrote as:# dd if=FreeBSD-10.2-RELEASE-amd64-memstick.img of=/dev/da0
> >>bs=1m conv=sync
> >>
> >> But it has to be on linux "bs=1M" not "bs=1m". Change it with capital
> >>one. Do not understand? inform me ;)
> >>
> >>
> >The command you reference is meant to be run on FreeBSD systems.  If you
> >have a different operating system, you'll have to adjust accordingly.
> 
> Yes, but the sentence leading up to it says "The dd(1) command-line utility
> is available on BSD, Linux®, and Mac OS® systems."
> 
> So for maximum compatibility, we might as well change to an uppercase M.
> Either way works on FreeBSD.

I might suggest, in that case, a clarification to dd(1):

"Where sizes are specified,	a decimal, octal, or hexadecimal number	of
bytes is expected.	 If the	number ends with a ``b'', ``k'', ``m'',	
``g'', or ``w'', the number is multiplied by 512, 1024 (1K), 1048576 
(1M), 1073741824 (1G) or the number of bytes in an integer, 
respectively."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151115010548.GA22107>