From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailsrv.cs.umass.edu (mailsrv.cs.umass.edu [128.119.240.136]) by sourceware.org (Postfix) with ESMTPS id 0B1AA3851C08 for ; Sat, 20 Jun 2020 20:26:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0B1AA3851C08 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.umass.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=moss@cs.umass.edu Received: from [192.168.0.19] (c-24-62-203-86.hsd1.ma.comcast.net [24.62.203.86]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id 68BBB401A585; Sat, 20 Jun 2020 16:26:32 -0400 (EDT) Reply-To: moss@cs.umass.edu Subject: Re: [cygwin] DD bug fails to wipe last 48 sectors of a disk To: The Cygwin Mailing List References: <1d1801d64677$bea56050$3bf020f0$@pdinc.us> From: Eliot Moss Message-ID: <60bf1507-4edb-a03f-ec14-07e1ab7f0d94@cs.umass.edu> Date: Sat, 20 Jun 2020 16:26:31 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, 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: Sat, 20 Jun 2020 20:26:34 -0000 On 6/20/2020 1:31 PM, Hashim Aziz via Cygwin wrote: > To reproduce simply run the following command on a drive (obviously, this will irreversibly wipe all data): > > dd if=/dev/zero of=/dev/sdX bs=4M status=progress > > Both drives were attached via internal SATA (by way of a PCIE to SATA Host Bus Adapter). > > Cygwin was running in an elevated window as dd cannot run in Cygwin without administrator access, at least not on Windows 10 and not when dealing with raw disks. I was running Avast the first time I discovered this, and am currently running Windows Defender, so doubt that the AV is the cause of this. > > The hard drives are a Western Digital WD10PURX-64E5EY0 (Serial: WD-WCC4J6HX189U) and a Kingston SV200S3128G (Serial: 12BA315PKAWK). > > I just ran DD for Windows 0.6beta3 with variations of the following command: > > dd.exe if=/dev/zero of=\\.\PHYSICALDRIVEX --progress bs=4M > > ...and can confirm that the bug also manifests here, but in a slightly different way - irrespective of the disk or block size, it fails to wipe the last 176 sectors of the drive. I was going to ask: even with block size 512 bytes? But I guess you checked that ... Regards - Eliot