delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Thu, 9 Oct 2008 14:42:16 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: dd fails with iflag=direct |
Message-ID: | <20081009124216.GY9289@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <c8ec85e70810080836v12949bcctde634bf75dc71baa AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <c8ec85e70810080836v12949bcctde634bf75dc71baa@mail.gmail.com> |
User-Agent: | Mutt/1.5.16 (2007-06-09) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On Oct 8 11:36, Andrew Medico wrote: > Lines: 42 > > I'm running into a problem with dd's "iflag=direct" option in Cygwin. > When I combine it it with "conv=sync,noerror", dd successfully reads > all of the data from the device but once it gets to the end of the > device it starts reporting I/O errors and never terminates: > > $ dd if=/dev/sdd of=/dev/null conv=sync,noerror iflag=direct > dd: reading `/dev/sdd': Input/Output error > 1952767+0 records in > 1952767+0 records out > 999816704 bytes (1.0 GB) copied, 1678.11 s, 596 kB/s I fixed that in CVS for Cygwin 1.7. Apparently when reading over the end of a drive (but not a partition), Windows decides to return a weird error code ERROR_CRC instead of just returning EOF. For Cygwin 1.5.25, the workaround is not using iflag=direct but standard buffered reading. It's much faster most of the time anyway. Thanks for the report, Corinna -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |