Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <36F59546.7977A262@cityweb.de> Date: Mon, 22 Mar 1999 01:56:38 +0100 From: Corinna Vinschen X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: Serguei DACHIAN CC: cygwin AT sourceware DOT cygnus DOT com Subject: Re: Reading physical disks. References: <1 DOT 5 DOT 4 DOT 32 DOT 19990321231321 DOT 00679558 AT lola DOT univ-lemans DOT fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Serguei DACHIAN wrote: > I need to read a physiacl sector from a physical disk (say /dev/hda). > > Under UNIX/POSIX the way to do it whould be just to "fopen" the "/dev/hda" > and to "fread" from it. Under CygWin (B20.1 on Win98) this doesn't work. > Indeed /dev/hd* don't exist (not even visible by ls). As to dev/fd*, even if > visible by ls, they are inacessible neither by "fopen", nor from bash prompt > by "dd", "cp", etc. > [...] > So, is there at least a way to read a physiacl sector from a physical disk > under CygWin gcc, or not???!!! HELP, I am lost. You will find a patched version of b20.1, supporting raw access to partitions, hard drives and tapes on ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin/porters/Vinschen_Corinna/B20 named cv_cygwin1.dll.README cv_cygwin1.dll.tar.gz The newer snapshots of winsup (since winsup-990130, I think) contain this patch, too. Nevertheless, you should download the forementioned README for a short description of the features. Regards, Corinna -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com