X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com 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 AT yandex DOT ru 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 Date: Wed, 24 Jun 2020 13:21:26 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home X-Priority: 3 (Normal) Message-ID: <1814912576.20200624132126@yandex.ru> To: Hashim Aziz , cygwin AT cygwin DOT 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 AT cs DOT umass DOT edu> , MIME-Version: 1.0 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 AT cygwin DOT 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: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" 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... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple