delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | Yes, hits=6.1 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FSL_FREEMAIL_1,FSL_FREEMAIL_2,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <1349032239.76806.YahooMailNeo@web171402.mail.ir2.yahoo.com> |
Date: | Sun, 30 Sep 2012 20:10:39 +0100 (BST) |
From: | GrahamC <grahamc001uk AT yahoo DOT co DOT uk> |
Reply-To: | GrahamC <grahamc001uk AT yahoo DOT co DOT uk> |
Subject: | Problem reading physical drive data with Windows 8 and cygwin, data is truncated by 288 sectors |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id q8UJAplS014927 |
There appears to be a problem with reading of physical drive data from device files like /dev/sdN etc. E.g. a 8GB USB flash drive device with the PC booted on Linux and then on Windows running cygwin. The device names are different but they both refer to the same USB flash drive. On Linux: dd bs=512 if=/dev/sdg of=/dev/null 15695872+0 records in 15695872+0 records out 8036286464 bytes (8.0 GB) copied, 256.769 s, 31.3 MB/s On Windows 8 and cygwin: dd bs=512 if=/dev/sdh1 of=/dev/null 15695584+0 records in 15695584+0 records out 8036139008 bytes (8.0 GB) copied, 306.072 s, 26.3 MB/s A difference of 288 sectors. This is not a partition table issue as the flash drive is not partitioned. Those 8036139008 bytes do exactly match the first 8036139008 of the 8036286464 read on the Linux system so it is definitely the same device. If I write a small python script and run it with the Windows version of python with the script reading from file \\.\PhysicalDrive7 (which is where the flash drive appears on my system) the script is able to read the entire 8036286464 byte flash drive contents and I can verify an exact match with the contents read on the Linux system. I see from the mailing list archives that lseek() is not supported on physical drives. This should not be the issue here as dd is just doing a sequential read starting from the first sector of the flash drive. I am running Windows 8 release preview build 8400. I do not know if this is a Windows 8 issue or a cygwin issue. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |