From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by sourceware.org (Postfix) with ESMTPS id 3C34F388A814 for ; Wed, 24 Jun 2020 10:35:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3C34F388A814 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=anrdaemon@yandex.ru Received: from forward101q.mail.yandex.net (forward101q.mail.yandex.net [IPv6:2a02:6b8:c0e:4b:0:640:4012:bb98]) by forward105p.mail.yandex.net (Yandex) with ESMTP id AA6FE4D41E89; Wed, 24 Jun 2020 13:35:02 +0300 (MSK) Received: from mxback11q.mail.yandex.net (mxback11q.mail.yandex.net [IPv6:2a02:6b8:c0e:1b4:0:640:1f0c:10f2]) by forward101q.mail.yandex.net (Yandex) with ESMTP id A77FACF40009; Wed, 24 Jun 2020 13:35:02 +0300 (MSK) Received: from vla1-ee05250d997a.qloud-c.yandex.net (vla1-ee05250d997a.qloud-c.yandex.net [2a02:6b8:c0d:3495:0:640:ee05:250d]) by mxback11q.mail.yandex.net (mxback/Yandex) with ESMTP id Yz9egK0aCR-Z2diFNkw; Wed, 24 Jun 2020 13:35:02 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1592994902; bh=t2gH3iPlvtBJnizMuyOUs7AgzhDRCiWonj1lGS0pKj8=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=f+CN500dI5UQNT7RVd5BPmDGiw2+gZVNT9XfED9pWseSM+MoOk9Ult933tTtYJP/4 Fx22Wr4EXvBKSGcfu1MOuCJwncSnOncWxOHChCwEIzINN3aO+aNwzhwQubo8GGs08X kQWfjmIlRxY+IOuXbyysjyQ+7Y2krzrU5vM/Pk6E= Authentication-Results: mxback11q.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by vla1-ee05250d997a.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id tSiz30EPey-Z2kOJOCU; Wed, 24 Jun 2020 13:35:02 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Wed, 24 Jun 2020 10:21:26 -0000 Date: Wed, 24 Jun 2020 13:21:26 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home Reply-To: cygwin@cygwin.com X-Priority: 3 (Normal) Message-ID: <1814912576.20200624132126@yandex.ru> To: Hashim Aziz , cygwin@cygwin.com Subject: Re: [cygwin] DD bug fails to wipe last 48 sectors of a disk In-Reply-To: References: <1d1801d64677$bea56050$3bf020f0$@pdinc.us> <60bf1507-4edb-a03f-ec14-07e1ab7f0d94@cs.umass.edu> , MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2020 10:35:07 -0000 Greetings, Hashim Aziz! Bottom posting in this channel, please. > I've just tested with the command: > dd if=/dev/zero of=/dev/sda iflag=fullblock bs=4M status=progress oflag=direct Although I'm unsure how Cygwin/Windows handles it. But without this flag, the write is cached, and the problem may be outside dd, or even Cygwin. > ...and can confirm that the last 48 sectors remain unwiped in this case also. > Here is the output: > 1000182120448 bytes (1.0 TB, 931 GiB) copied, 8284 s, 121 MB/s > dd: error writing '/dev/sda': No space left on device > 238468+0 records in > 238467+0 records out > 1000204861440 bytes (1.0 TB, 932 GiB) copied, 8284.89 s, 121 MB/s -- With best regards, Andrey Repin Wednesday, June 24, 2020 13:19:42 Sorry for my terrible english...