Bug 453369 - dd is doing math like a drive manufacturer
dd is doing math like a drive manufacturer
Product: Fedora
Classification: Fedora
Component: coreutils (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Ondrej Vasik
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-06-30 02:52 EDT by Norm Murray
Modified: 2008-06-30 03:51 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-06-30 03:51:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Norm Murray 2008-06-30 02:52:17 EDT
# dd if=/dev/zero of=guest bs=1G count=14
14+0 records in
14+0 records out
15032385536 bytes (15 GB) copied, 658.655 s, 22.8 MB/s

14 * 1024 * 1024 * 1024 = 15032385536 

So the correct number of bytes are getting written. 15GB in the initial
statement from dd is wrong.
Comment 1 Ondrej Vasik 2008-06-30 03:51:22 EDT
Thanks for report, but it's not a bug. As you could check on
http://physics.nist.gov/cuu/Units/binary.html for quiet a long time exists
unification of binary units. Command dd should show 14G (or better 14GiB) or
15GB in this case, but it doesn't matter which one will be shown. It is
described in info pages(dd, Note: Block size::) and help page of dd command.

Citation from dd's help page:
"BLOCKS and BYTES may be followed by the following multiplicative suffixes:
xM M, c 1, w 2, b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024,
GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y."

Closing NOTABUG.

Note You need to log in before you can comment on or make changes to this bug.