Debian Bug report logs - #635765
/bin/dd: dd if=/dev/zero of=testfile_4G bs=4G count=1 produces a 2G file

version graph

Package: coreutils; Maintainer for coreutils is Michael Stone <mstone@debian.org>; Source for coreutils is src:coreutils.

Reported by: Mathieu Malaterre <malat@debian.org>

Date: Thu, 28 Jul 2011 15:54:01 UTC

Severity: normal

Found in version coreutils/8.5-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Michael Stone <mstone@debian.org>:
Bug#635765; Package coreutils. (Thu, 28 Jul 2011 15:54:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Malaterre <mathieu.malaterre@gmail.com>:
New Bug report received and forwarded. Copy sent to Michael Stone <mstone@debian.org>. (Thu, 28 Jul 2011 15:54:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: /bin/dd: dd if=/dev/zero of=testfile_4G bs=4G count=1 produces a 2G file
Date: Thu, 28 Jul 2011 17:49:47 +0200
Package: coreutils
Version: 8.5-1
Severity: normal
File: /bin/dd


For some reason the following command:

dd if=/dev/zero of=testfile_4G bs=4G count=1

produces a 2G file:

$ dd if=/dev/zero of=testfile_4G bs=4G count=1 
0+1 records in
0+1 records out
2147479552 bytes (2.1 GB) copied, 64.1528 s, 33.5 MB/s

I could produce a 4G file by concatenating the output file with itself:

$ cat testfile_4G testfile_4G > final_4G 
$ du -sh *
4.1G	final_4G
2.1G	testfile_4G


Thanks

-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (200, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages coreutils depends on:
ii  libacl1                       2.2.49-4   Access control list shared library
ii  libattr1                      1:2.4.44-2 Extended attribute shared library
ii  libc6                         2.13-10    Embedded GNU C Library: Shared lib
ii  libselinux1                   2.0.96-1   SELinux runtime shared libraries

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information




Changed Bug submitter to 'Mathieu Malaterre <malat@debian.org>' from 'Mathieu Malaterre <mathieu.malaterre@gmail.com>' Request was from Mathieu Malaterre <malat@debian.org> to control@bugs.debian.org. (Wed, 28 Mar 2012 13:55:52 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Apr 21 16:49:22 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.