Re: dd in loop doesn't transfer full blocks

Henrik Carlqvist <[email protected]> Wed, 06 Oct 2010 08:37:15 +0200
Newsgroups gmane.comp.gnu.utils
Organization SunSITE.dk - Supporting Open source
Message-ID <[email protected]>
jim <[email protected]> wrote:
>    while $not_finished
>       do  dd bs=$BS count=1

> The problem is that dd never transfers a full block; $BS is about
> 400000, and each time through the loop, dd only transfers about 73xxx
> bytes, and sometimes less.

Is $BS a multiple of something? If so, maybe it would help to do something
like:

do  dd bs=`echo $BS/8 | bc` count=8

regards Henrik
-- 
The address in the header is only to prevent spam. My real address is:
hc123(at)poolhem.se Examples of addresses which go to spammers:
root@localhost postmaster@localhost