From unknown Sat Aug 16 21:15:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#38186 <38186@debbugs.gnu.org> To: bug#38186 <38186@debbugs.gnu.org> Subject: Status: dd doesn't copy whole file when specifying units with bs Reply-To: bug#38186 <38186@debbugs.gnu.org> Date: Sun, 17 Aug 2025 04:15:46 +0000 retitle 38186 dd doesn't copy whole file when specifying units with bs reassign 38186 guix submitter 38186 Jack Hill severity 38186 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 12 15:47:24 2019 Received: (at submit) by debbugs.gnu.org; 12 Nov 2019 20:47:24 +0000 Received: from localhost ([127.0.0.1]:58459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUd4O-0001kV-1M for submit@debbugs.gnu.org; Tue, 12 Nov 2019 15:47:24 -0500 Received: from lists.gnu.org ([209.51.188.17]:39124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUd4M-0001kM-TL for submit@debbugs.gnu.org; Tue, 12 Nov 2019 15:47:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57278) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUd4L-0004yd-N4 for bug-guix@gnu.org; Tue, 12 Nov 2019 15:47:22 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iUd4K-0003NH-IL for bug-guix@gnu.org; Tue, 12 Nov 2019 15:47:21 -0500 Received: from minsky.hcoop.net ([104.248.1.95]:55458) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iUd4K-0003N9-FH for bug-guix@gnu.org; Tue, 12 Nov 2019 15:47:20 -0500 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iUd4J-00014b-Uo for bug-guix@gnu.org; Tue, 12 Nov 2019 15:47:19 -0500 Date: Tue, 12 Nov 2019 15:47:19 -0500 (EST) From: Jack Hill X-X-Sender: jackhill@marsh.hcoop.net To: bug-guix@gnu.org Subject: dd doesn't copy whole file when specifying units with bs Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 104.248.1.95 X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi Guix, It seems that my version of dd from coreutils-8.31 does not seem to work correctly when using units with the bs option (e.g. bs=1M). In the terminal session below, I first use bs=1M. The output looks okay: dd appears to have copied the whole 2.3GiB file, but it has done so impossibly quickly. It turns out that went so quickly because the whole file has not been copied. If instead of using the units modifier, I specify the same number of bytes directly, everything seems to work as expected (notice the slower speed). I have not determined whether this problem is specific to Guix. ``` $ sudo dd if=image.iso of=/dev/sda bs=1M 2349+1 records in 2349+1 records out 2463842304 bytes (2.5 GB, 2.3 GiB) copied, 1.0693 s, 2.3 GB/s $ sudo dd if=image.iso of=/dev/sda bs=1048576 2349+1 records in 2349+1 records out 2463842304 bytes (2.5 GB, 2.3 GiB) copied, 3.03265 s, 812 MB/s $ ls -l /run/current-system/profile/bin/dd lrwxrwxrwx 18 root root 65 Dec 31 1969 /run/current-system/profile/bin/dd -> /gnu/store/9kzrrccpzl6i1sfwb0drb00gi2gwk0x0-coreutils-8.31/bin/dd $ guix describe Generation 42 Oct 28 2019 11:51:58 (current) guix 8c8d607 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 8c8d60752e1ad73d5bd87d8497b357f8a8a389ab ``` Best, Jack From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 12 16:45:30 2019 Received: (at 38186) by debbugs.gnu.org; 12 Nov 2019 21:45:30 +0000 Received: from localhost ([127.0.0.1]:58521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUdyc-0005AK-1H for submit@debbugs.gnu.org; Tue, 12 Nov 2019 16:45:30 -0500 Received: from mail-wr1-f42.google.com ([209.85.221.42]:35906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUdya-0005A2-94 for 38186@debbugs.gnu.org; Tue, 12 Nov 2019 16:45:28 -0500 Received: by mail-wr1-f42.google.com with SMTP id r10so20250882wrx.3 for <38186@debbugs.gnu.org>; Tue, 12 Nov 2019 13:45:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=bJhFGGbw9mYXcsT3NOAhPUiWQGzjyP8k+lBl4xINgVk=; b=GV++oCt4k1LQHYFN/a3UV4oB08DwhEFvChlb4XI+kDqP0hLNvLIIkYHuunIemnY5Cy eXU+2mmLfAYwrtHDU54mQYd0BFrCsig+gme2dr3P0u6x/NVLfI96GX+dWE9KqQY6Xe+1 x76GQ+7XsSgKhZJQb0fkNyFpo5bDs2YsfpyKebgqU0SEjvm+zab14ZpwfPsJ7GfiLgCc NGV5HhPM29kA/McPKGUhr4HrCSx18J52R1KtqC7vGoBR7d9gEx1yqRjzdLdpQT2J5FiX cCxsWmhu/y73rcvclveiVgqRYVbvQb715CFxtbc1nG1I8qbh2aVENworQYcmxyVjpFq2 XPVw== X-Gm-Message-State: APjAAAXbPEJ9S3UYb9sgpNzoQ0SkVayXXjyu/1SMnG6514VxPYP7ypXl iCbbuWNqQQcsqBPhPmuVTJsS7E+o X-Google-Smtp-Source: APXvYqx+ATspRMH8v2cuvzqj2z4aV0n0CHPa+PqEae211avt89iZenxHJZk+vmAOagcw3V0hkNX2yA== X-Received: by 2002:a5d:42c8:: with SMTP id t8mr25835819wrr.87.1573595121975; Tue, 12 Nov 2019 13:45:21 -0800 (PST) Received: from rodion ([2a01:e35:8bf7:6530:f091:eaf5:76d:3de]) by smtp.gmail.com with ESMTPSA id l10sm194910wrg.90.2019.11.12.13.45.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 13:45:21 -0800 (PST) From: clement@lassieur.org (=?utf-8?Q?Cl=C3=A9ment?= Lassieur) To: Jack Hill Subject: Re: bug#38186: dd doesn't copy whole file when specifying units with bs References: Date: Tue, 12 Nov 2019 22:45:18 +0100 In-Reply-To: (Jack Hill's message of "Tue, 12 Nov 2019 15:47:19 -0500 (EST)") Message-ID: <87r22chiq9.fsf@lassieur.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 38186 Cc: 38186@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Hi Jack, > It seems that my version of dd from coreutils-8.31 does not seem to work > correctly when using units with the bs option (e.g. bs=1M). In the terminal > session below, I first use bs=1M. The output looks okay: dd appears to have > copied the whole 2.3GiB file, but it has done so impossibly quickly. It turns > out that went so quickly because the whole file has not been copied. If > instead of using the units modifier, I specify the same number of bytes > directly, everything seems to work as expected (notice the slower speed). Does this[1] help? [1]: https://superuser.com/questions/730801/dd-immidiately-completes-but-actually-needs-sync From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 13 11:17:54 2019 Received: (at 38186-done) by debbugs.gnu.org; 13 Nov 2019 16:17:54 +0000 Received: from localhost ([127.0.0.1]:60034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUvL8-0006Un-DX for submit@debbugs.gnu.org; Wed, 13 Nov 2019 11:17:54 -0500 Received: from minsky.hcoop.net ([104.248.1.95]:45860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUvL5-0006UY-Dw for 38186-done@debbugs.gnu.org; Wed, 13 Nov 2019 11:17:52 -0500 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iUvKz-000843-TZ; Wed, 13 Nov 2019 11:17:45 -0500 Date: Wed, 13 Nov 2019 11:17:43 -0500 (EST) From: Jack Hill X-X-Sender: jackhill@marsh.hcoop.net To: =?ISO-8859-15?Q?Cl=E9ment_Lassieur?= Subject: Re: bug#38186: dd doesn't copy whole file when specifying units with bs In-Reply-To: <87r22chiq9.fsf@lassieur.org> Message-ID: References: <87r22chiq9.fsf@lassieur.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="925712948-871457692-1573661865=:11560" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38186-done Cc: 38186-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --925712948-871457692-1573661865=:11560 Content-Type: text/plain; format=flowed; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT On Tue, 12 Nov 2019, Clément Lassieur wrote: > Does this[1] help? > > [1]: https://superuser.com/questions/730801/dd-immidiately-completes-but-actually-needs-sync Indeed it does. I guess I just got lucky with the second invocation that data got written out. Thanks very much for the pointer, and sorry for the extra noise. Since I no longer believe this to be a bug, I'm closing it. Best, Jack --925712948-871457692-1573661865=:11560-- From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 13 12:00:51 2019 Received: (at 38186-done) by debbugs.gnu.org; 13 Nov 2019 17:00:51 +0000 Received: from localhost ([127.0.0.1]:60074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUw0g-00011V-LU for submit@debbugs.gnu.org; Wed, 13 Nov 2019 12:00:50 -0500 Received: from mail-wm1-f50.google.com ([209.85.128.50]:40674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUw0e-00011H-TD for 38186-done@debbugs.gnu.org; Wed, 13 Nov 2019 12:00:49 -0500 Received: by mail-wm1-f50.google.com with SMTP id f3so2833922wmc.5 for <38186-done@debbugs.gnu.org>; Wed, 13 Nov 2019 09:00:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=RLTXZH67pLI+joa2JSvuzQ9iKnhJOOZRqoyyA4Rv3Ks=; b=jkDhVdKSIh6KqW5q1XpgtdHQ6/VsTq14NN6czXDt6nU0MqBwS2z1TWste4f6/1C96m kaNSbZAL8HsHhvIzsNSp8k9dZFDuIFWN82vrzCwltfkrhPp2IGw11C94FqPvS85KORUu xsWwMeIccXEcwQxcid14Ex48FJqhJKdHMWvIXZQjomWwztvMdebWJSL9BDbJBwco/tLi mxtbmZjC8DzfmWPwslt428BDSpGVb9re3JQO8LjnRWEkvZWpXAuUNn85kiUYejKV0ZI5 Z2ir4bQccwnnJG6S3InzOCIEaw/RouBUQLnPM4IOZH00vn8WQmqIppFFOauwW9a7AyRX xpGA== X-Gm-Message-State: APjAAAWrGqi3GgP+Hj3LFOfe0/XAUbz7NKiWES1AHJuwHKEymY9aArmc jemsurk/ElKpxKZC4UjQZIvWg47v X-Google-Smtp-Source: APXvYqyV5jQovJdBFAmLi1cqNYogD+4ddOm3b3OwmTJe7rTtisfmtpqMzTjepBcpyrP+Lr1CDfk1TQ== X-Received: by 2002:a1c:98c5:: with SMTP id a188mr3712200wme.133.1573664442698; Wed, 13 Nov 2019 09:00:42 -0800 (PST) Received: from newt (smtp.parrot.biz. [62.23.167.188]) by smtp.gmail.com with ESMTPSA id n23sm2774740wmc.18.2019.11.13.09.00.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2019 09:00:41 -0800 (PST) References: <87r22chiq9.fsf@lassieur.org> User-agent: mu4e 1.2.0; emacs 26.3 From: =?utf-8?Q?Cl=C3=A9ment?= Lassieur To: Jack Hill Subject: Re: bug#38186: dd doesn't copy whole file when specifying units with bs In-reply-to: Date: Wed, 13 Nov 2019 18:00:41 +0100 Message-ID: <87y2wj3e4m.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 4.0 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Jack Hill writes: > On Tue, 12 Nov 2019, Clément Lassieur wrote: > >> Does this[1] help? >> >> [1]: https://superuser.com/questions/730801/dd-immidiately-completes-but-actually-needs-sync > > Indeed it does. I guess I [...] Content analysis details: (4.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: superuser.com] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.50 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [62.23.167.188 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (clement.lassieur[at]gmail.com) 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.50 listed in wl.mailspike.net] 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-Debbugs-Envelope-To: 38186-done Cc: 38186-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 3.0 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Jack Hill writes: > On Tue, 12 Nov 2019, Clément Lassieur wrote: > >> Does this[1] help? >> >> [1]: https://superuser.com/questions/730801/dd-immidiately-completes-but-actually-needs-sync > > Indeed it does. I guess I [...] Content analysis details: (3.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: jackhill.us] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.50 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.50 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [62.23.167.188 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (clement.lassieur[at]gmail.com) 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Jack Hill writes: > On Tue, 12 Nov 2019, Cl=C3=A9ment Lassieur wrote: > >> Does this[1] help? >> >> [1]: https://superuser.com/questions/730801/dd-immidiately-completes-but= -actually-needs-sync > > Indeed it does. I guess I just got lucky with the second invocation that = data > got written out. Thanks very much for the pointer, and sorry for the extra > noise. > > Since I no longer believe this to be a bug, I'm closing it. You're welcome :) Cl=C3=A9ment From unknown Sat Aug 16 21:15:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 12 Dec 2019 12:24:12 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator