Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 23 Sep 2005 14:48:56 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Anyone know about interaction of 'dd' with memory cards? Message-ID: <20050923124856.GX12256@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20050923092816 DOT GA4833 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i On Sep 23 12:55, Dave Korn wrote: > ----Original Message---- > > From: Corinna Vinschen > > > > $ strace -o dd.out dd if=/dev/hdc of=ms.img bs=1024 > > > > [Time passes, somewhat more than a minute...] > > > > dd: reading `/dev/sdc': Permission denied > > Hey, what's with the hdc/sdc thing? Nothing. Just a typo. Should have been `if=/dev/sdc'. > > $ net helpmsg 121 > > > > The semaphore timeout period has expired. > > > > Er... am I in the wrong movie or what? What semaphore, please? > > Beats me. If I cat /dev/sdb, once it goes past the end of the card, it > just starts returning '<' chars forever. That's... funny, isn't it? Hmm, no, not really. > > Dave, you will have to debug this on your machine. > > Can do. > > > What does ReadFile > > in fhandler_dev_raw::read_file() do on your machine? When it reads > > beyond the physical EOF, how many bytes does ReadFile return? What > > does it actually copy to the buffer? > > Will get back to you on this. > > > And then the interesting question occurs... why is it different on > > your machine than it is on mine? Do differences between card readers > > influence what happens? Is that another driver? > > USB2.0 CF CardReader USB Device > USBSTOR\DISK&VEN_USB2.0&PROD_CF__CARDREADER&REV_\1234609_&0 > > which I presume is mounted on > > USB Mass Storage Device > USB\VID_07CC&PID_0501\1234609_ > > and > > Generic volume > STORAGE\REMOVABLEMEDIA\7&388FF7C9&0&RM > > > - all the drivers are standard M$ stuff like usbstor.sys, volsnap.sys, > disk.sys, partmgr.sys. Same for me. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat, Inc. -- 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/