delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/09/14/13:10:09

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 BC5B33857C62
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=pdinc.us
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jpyeron AT pdinc DOT us
DKIM-Filter: OpenDKIM Filter v2.11.0 mail1.pdinc.us 08EH9JL8005850
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pdinc.us; s=default;
t=1600103361; bh=zG5Z682DZMFZzQ1ZAM9rH5nOYDf0iwO24zTz9XzbjP4=;
h=From:To:References:In-Reply-To:Subject:Date:From;
b=XbJnsyOOLB44RJ/ci0nozwD39WdQJRSyeToyAirb3Fd2KG3UCm4tvSZmnHR2i6Cts
dHL92TotFsUPXKY/omeSc5n9LYw0gbMj/EJJ61dKdyee0QvPV3Fjclv3v1ru8KYM6p
xG6ATpED1eZxSItcrcjxQeBgj5CwNw0Dll69x2G3k0pACBYcEzZWXstAqSSbVJaVFQ
9F61sEl06CQLgQUdFY55lrLa1EYtQTK/9YVZMl+508e7AJfVIqjkpT6+j9VCQ9zqSX
uaJkW5tTU1KYR59TWdpvd+DzhWl6+/4u02yMS81hQ1Wva2bqwhLhVf8YTcFNeiBMMw
NhimbIhbJ/Hww==
From: "Jason Pyeron" <jpyeron AT pdinc DOT us>
To: <cygwin AT cygwin DOT com>
References: <DB7PR02MB39967687CBFD5033B6DDE01AE7230 AT DB7PR02MB3996 DOT eurprd02 DOT prod DOT outlook DOT com>
<CACoZoo1cwtVvGsk-WL9utaWWRXSDuHOs8aeiY5_gq-g7Ez9Ucg AT mail DOT gmail DOT com>
<00e301d68ab4$b0ea4da0$12bee8e0$@pdinc.us>
<DB7PR02MB39966971C7E65CE5B5722157E7230 AT DB7PR02MB3996 DOT eurprd02 DOT prod DOT outlook DOT com>
In-Reply-To: <DB7PR02MB39966971C7E65CE5B5722157E7230@DB7PR02MB3996.eurprd02.prod.outlook.com>
Subject: RE: [cygwin] Re: DD bug fails to wipe last 48 sectors of a disk
Date: Mon, 14 Sep 2020 13:09:29 -0400
Organization: PD Inc
Message-ID: <019c01d68ab9$cf4f1e60$6ded5b20$@pdinc.us>
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQK4uzQL5bhgj/sSPQqDGyzq57zLqwG3Vh+IAsXM7MwB3U+meadxJ5ew
X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_INFOUSMEBIZ, SPF_HELO_PASS,
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-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: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

> From: Hamish McIntyre-Bhatty
> Sent: Monday, September 14, 2020 12:34 PM
> 
> On 14/09/2020 17:32, Jason Pyeron wrote:
> >> -----Original Message-----
> >> From: Erik Soderquist
> >> Sent: Monday, September 14, 2020 11:55 AM
> >>
> >> On Mon, Sep 14, 2020 at 11:45 AM Hamish McIntyre-Bhatty via Cygwin wrote:
> >>> Was this ever resolved? I could have sworn I saw some discussion about
> >>> this but I can't find it in the archives.
> >> I still have the thread in my local email; a couple viable work
> >> arounds were provided, but the issue's root cause is on the Windows
> >> side, so I believe the only real route to a true fix would be via
> >> Microsoft altering their code.
> > When accessing with proper (aligned) block size and count I do not encounter the problem - happy to
> test again.
> >
> >>> It might also affect ddrescue, I feel.
> >> I believe you are accurate in this feeling.

(next time, please attempt to bottom post on this mailing list, moved it where it belongs)

> Could you perhaps try with ddrescue for me please (also has a block size
> option)? I could try and reproduce myself but without the email thread
> that will be a challenge.

Yes, I observed the same result with ddrescue before (bad input = bad behavior, good input = good behavior). The issue, as I have observed it, is if Windows is asked to write a string of blocks, past the end of the drive it will silently fail and not write some of those block BEFORE the end of the drive.

If block size (bs) is a multiple of 4096 (or 512 for most drives) and the count * bs = drive size exactly (as reported by windows) no error.


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019