On Thursday 11 January 2007 14:42, Darryl Gregorash wrote:
> ...
>
> dd if=/dev/zero of=/extra-swap bs=1K count=1K
>
> The following byte/count specifications will all create the 2G file
> you desire:
>
> bs=2G count=1 (though this will probably hardly be practical)
> bs=2M count=1K
> bs=2K count=1M
>
> (Note that kB, MB and GB all refer to powers of 1000, not 1024. This
> is standard SI nomenclature.)

Actually, for dd the units are CS (1024, 1024 * 1024, 1024 * 1024 * 
1024, resp.).

To wit:

% dd if=/dev/zero of=/dev/null bs=2K count=1M
1048576+0 records in
1048576+0 records out
2147483648 bytes (2.1 GB) copied, 1.30146 seconds, 1.7 GB/s

If you divide it out, you find that it's using power-of-two Ks, Ms and 
Gs (except for the summary line--go figure).

Also, for some reason 'm' is not allowed, only 'M', but either 'k' 
or 'K' are allowed but both mean 1024 (I tried 'em both).


Randall Schulz
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to