delorie.com/archives/browse.cgi | search |
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 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 AT cs DOT umass DOT edu | |
Subject: | Re: [cygwin] DD bug fails to wipe last 48 sectors of a disk |
To: | The Cygwin Mailing List <cygwin AT cygwin DOT com> |
References: | <DB7PR01MB5193A18F1D947ED4C276CD25D5980 AT DB7PR01MB5193 DOT eurprd01 DOT prod DOT exchangelabs DOT com> |
<1d1801d64677$bea56050$3bf020f0$@pdinc.us> | |
<DB7PR01MB5193CC1C7630FB13B81B9DBAD5980 AT DB7PR01MB5193 DOT eurprd01 DOT prod DOT exchangelabs DOT com> | |
From: | Eliot Moss <moss AT cs DOT umass DOT edu> |
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: | <DB7PR01MB5193CC1C7630FB13B81B9DBAD5980@DB7PR01MB5193.eurprd01.prod.exchangelabs.com> |
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 AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Unsubscribe: | <http://cygwin.com/mailman/options/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <http://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
Reply-To: | moss AT cs DOT umass DOT edu |
Errors-To: | cygwin-bounces AT cygwin DOT com |
Sender: | "Cygwin" <cygwin-bounces AT cygwin DOT com> |
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 -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |