This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Reading physical disks.
- To: cygwin@sourceware.cygnus.com
- Subject: Reading physical disks.
- From: Serguei DACHIAN <Serguei.Dachian@univ-lemans.fr>
- Date: Mon, 22 Mar 1999 00:13:21 +0100
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- Sender: cygwin-owner@sourceware.cygnus.com
Hi, everybody.
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.
Under DOS, the way to read a physiacl sector from a physical disk whould
rather be using the function "biosdisk" (interfaced by "bios.h"), but this
one is not present under CygWin at all.
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.
Best regards,
Serguei.
___________________________________________________________________________
Serguei DACHIAN
Laboratoire de Statistique et Processus,
Universite du Maine, Av. Olivier Messiaen
72085 Le Mans CEDEX 9, FRANCE
Tel. : +33 (0)2 43 83 37 18
Fax. : +33 (0)2 43 83 35 79
E-mail : Serguei.Dachian@univ-lemans.fr
WWW : http://www.univ-lemans.fr/sciences/statist/cvs/thesard.html#dachian
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com