public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Reading physical disks.
@ 1999-03-22  6:53 Serguei DACHIAN
  1999-03-22 14:09 ` Corinna Vinschen
  1999-03-31 19:45 ` Serguei DACHIAN
  0 siblings, 2 replies; 16+ messages in thread
From: Serguei DACHIAN @ 1999-03-22  6:53 UTC (permalink / raw)
  To: cygwin

At 01:56 22/03/99 +0100, Corinna Vinschen wrote:
> You will find a patched version of b20.1, supporting raw access to
> partitions, hard drives and tapes on
> ........
> 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.
>
I got and installed the DLL, include files (which were with DLL) and also
your version of mount utility.  I can't still read my floppy (without
speaking about hard drives).  Here is my bash session:

------------------------------------------------
/temp $ uname -a
CYGWIN_98-4.10 PCDASH 21.0 (0.7/1/1) 1999-1-14 19:19:56 i586 unknown

/temp $ mount
Device               Directory               Type        Flags
\\.\b:               /dev/fd1                RAW         -----b-
\\.\a:               /dev/fd0                RAW         -----b-
C:                   /                       FAT32       ---c-tu

/temp $ ls /dev/fd0
ls: /dev/fd0: No such file or directory

/temp $ dd if=/dev/fd0 of=boot.bin bs=512 count=1
dd: /dev/fd0: No such file or directory
------------------------------------------------


The floppies were mounted with:
> mount -b //./a: /dev/fd0
and
> mount -b //./b: /dev/fd1
The floppy was inside the drive a during the bash session.  My system is
Win98 and CygWin B20.1 + your mount and your dll.

Am I missing something ???

Best regards,
                Serguei.

P.S.  Your readme say that some feateres are for NT only.  Does it mean that
i will not be able to read /dev/fd0 and/or /dev/hda ???
___________________________________________________________________________
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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Reading physical disks.
  1999-03-22  6:53 Reading physical disks Serguei DACHIAN
@ 1999-03-22 14:09 ` Corinna Vinschen
  1999-03-31 19:45   ` Corinna Vinschen
  1999-03-31 19:45 ` Serguei DACHIAN
  1 sibling, 1 reply; 16+ messages in thread
From: Corinna Vinschen @ 1999-03-22 14:09 UTC (permalink / raw)
  To: Serguei DACHIAN; +Cc: cygwin

Serguei DACHIAN wrote:
> I got and installed the DLL, include files (which were with DLL) and also
> your version of mount utility.  I can't still read my floppy (without
> speaking about hard drives).  Here is my bash session:
> [...]
> P.S.  Your readme say that some feateres are for NT only.  Does it mean that
> i will not be able to read /dev/fd0 and/or /dev/hda ???

Sorry, I haven't noticed, you're on a 9X system. The used
methods to access partitions and hard drives are only
useful on NT. Thanks to M$ :-(

Regards,
Corinna


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Reading physical disks.
  1999-03-22 14:09 ` Corinna Vinschen
@ 1999-03-31 19:45   ` Corinna Vinschen
  0 siblings, 0 replies; 16+ messages in thread
From: Corinna Vinschen @ 1999-03-31 19:45 UTC (permalink / raw)
  To: Serguei DACHIAN; +Cc: cygwin

Serguei DACHIAN wrote:
> I got and installed the DLL, include files (which were with DLL) and also
> your version of mount utility.  I can't still read my floppy (without
> speaking about hard drives).  Here is my bash session:
> [...]
> P.S.  Your readme say that some feateres are for NT only.  Does it mean that
> i will not be able to read /dev/fd0 and/or /dev/hda ???

Sorry, I haven't noticed, you're on a 9X system. The used
methods to access partitions and hard drives are only
useful on NT. Thanks to M$ :-(

Regards,
Corinna


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Reading physical disks.
  1999-03-22  6:53 Reading physical disks Serguei DACHIAN
  1999-03-22 14:09 ` Corinna Vinschen
@ 1999-03-31 19:45 ` Serguei DACHIAN
  1 sibling, 0 replies; 16+ messages in thread
From: Serguei DACHIAN @ 1999-03-31 19:45 UTC (permalink / raw)
  To: cygwin

At 01:56 22/03/99 +0100, Corinna Vinschen wrote:
> You will find a patched version of b20.1, supporting raw access to
> partitions, hard drives and tapes on
> ........
> 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.
>
I got and installed the DLL, include files (which were with DLL) and also
your version of mount utility.  I can't still read my floppy (without
speaking about hard drives).  Here is my bash session:

------------------------------------------------
/temp $ uname -a
CYGWIN_98-4.10 PCDASH 21.0 (0.7/1/1) 1999-1-14 19:19:56 i586 unknown

/temp $ mount
Device               Directory               Type        Flags
\\.\b:               /dev/fd1                RAW         -----b-
\\.\a:               /dev/fd0                RAW         -----b-
C:                   /                       FAT32       ---c-tu

/temp $ ls /dev/fd0
ls: /dev/fd0: No such file or directory

/temp $ dd if=/dev/fd0 of=boot.bin bs=512 count=1
dd: /dev/fd0: No such file or directory
------------------------------------------------


The floppies were mounted with:
> mount -b //./a: /dev/fd0
and
> mount -b //./b: /dev/fd1
The floppy was inside the drive a during the bash session.  My system is
Win98 and CygWin B20.1 + your mount and your dll.

Am I missing something ???

Best regards,
                Serguei.

P.S.  Your readme say that some feateres are for NT only.  Does it mean that
i will not be able to read /dev/fd0 and/or /dev/hda ???
___________________________________________________________________________
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


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Reading physical disks.
  1999-03-22  7:04 Nirmal Prasad
@ 1999-03-31 19:45 ` Nirmal Prasad
  0 siblings, 0 replies; 16+ messages in thread
From: Nirmal Prasad @ 1999-03-31 19:45 UTC (permalink / raw)
  To: cygwin; +Cc: Serguei.Dachian

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Reading physical disks.
  1999-03-22  7:52 ` John Mullee
@ 1999-03-31 19:45   ` John Mullee
  0 siblings, 0 replies; 16+ messages in thread
From: John Mullee @ 1999-03-31 19:45 UTC (permalink / raw)
  To: cygwin

Serguei DACHIAN wrote:
> > Pls. refer documentation of DevIoControl(..)  its a Win32 API and should
> Coud you please point me where can I find the documentation about this API.

DeviceIOControl():
http://msdn.microsoft.com/library/sdkdoc/winbase/devio_9quk.htm

bugs, etcetera:
http://search.support.microsoft.com/results.asp?MSCOM_SRV=http%3A%2F%2Fwww.microsoft.com&SearchCountry=%40Locale+en-us&SName=MSDN&SPath=%5Cdeveloper&Cluster=MSDN&Locale=1033&SearchString=DeviceIoControl&Boolean=PHRASE&intCat=4&Finish.x=36&Finish.y=10

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Reading physical disks.
  1999-03-21 16:59 Nirmal Prasad
@ 1999-03-31 19:45 ` Nirmal Prasad
  0 siblings, 0 replies; 16+ messages in thread
From: Nirmal Prasad @ 1999-03-31 19:45 UTC (permalink / raw)
  To: cygwin; +Cc: Serguei.Dachian

> So, is there at least a way to read a physiacl sector from a physical disk
>under CygWin gcc, or not???!!!

Pls. refer documentation of DevIoControl(..)  its a Win32 API and should
allow u to do all the funny things with ur physical device and i hope it
works..

Regards

Nirmal Prasad R.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Reading physical disks.
  1999-03-22  6:55 Serguei DACHIAN
  1999-03-22  7:52 ` John Mullee
@ 1999-03-31 19:45 ` Serguei DACHIAN
  1 sibling, 0 replies; 16+ messages in thread
From: Serguei DACHIAN @ 1999-03-31 19:45 UTC (permalink / raw)
  To: cygwin

At 20:01 21/03/99 -0500, Nirmal Prasad wrote:
> Pls. refer documentation of DevIoControl(..)  its a Win32 API and should
> allow u to do all the funny things with ur physical device and i hope it
> works..
>
Coud you please point me where can I find the documentation about this API.
I am quite a newbie as to Windows programming.

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


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Reading physical disks.
  1999-03-21 15:13 Serguei DACHIAN
  1999-03-21 16:56 ` Corinna Vinschen
@ 1999-03-31 19:45 ` Serguei DACHIAN
  1 sibling, 0 replies; 16+ messages in thread
From: Serguei DACHIAN @ 1999-03-31 19:45 UTC (permalink / raw)
  To: cygwin

        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


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Reading physical disks.
  1999-03-21 16:56 ` Corinna Vinschen
@ 1999-03-31 19:45   ` Corinna Vinschen
  0 siblings, 0 replies; 16+ messages in thread
From: Corinna Vinschen @ 1999-03-31 19:45 UTC (permalink / raw)
  To: Serguei DACHIAN; +Cc: cygwin

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@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Reading physical disks.
  1999-03-22  6:55 Serguei DACHIAN
@ 1999-03-22  7:52 ` John Mullee
  1999-03-31 19:45   ` John Mullee
  1999-03-31 19:45 ` Serguei DACHIAN
  1 sibling, 1 reply; 16+ messages in thread
From: John Mullee @ 1999-03-22  7:52 UTC (permalink / raw)
  To: cygwin

Serguei DACHIAN wrote:
> > Pls. refer documentation of DevIoControl(..)  its a Win32 API and should
> Coud you please point me where can I find the documentation about this API.

DeviceIOControl():
http://msdn.microsoft.com/library/sdkdoc/winbase/devio_9quk.htm

bugs, etcetera:
http://search.support.microsoft.com/results.asp?MSCOM_SRV=http%3A%2F%2Fwww.microsoft.com &SearchCountry=%40Locale+en-us&SName=MSDN&SPath=%5Cdeveloper&Cluster=MSDN&Locale=1033&SearchString=DeviceIoControl&Boolean=PHRASE&intCat=4&Finish.x=36&Finish.y=10

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Reading physical disks.
@ 1999-03-22  7:04 Nirmal Prasad
  1999-03-31 19:45 ` Nirmal Prasad
  0 siblings, 1 reply; 16+ messages in thread
From: Nirmal Prasad @ 1999-03-22  7:04 UTC (permalink / raw)
  To: cygwin; +Cc: Serguei.Dachian

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Reading physical disks.
@ 1999-03-22  6:55 Serguei DACHIAN
  1999-03-22  7:52 ` John Mullee
  1999-03-31 19:45 ` Serguei DACHIAN
  0 siblings, 2 replies; 16+ messages in thread
From: Serguei DACHIAN @ 1999-03-22  6:55 UTC (permalink / raw)
  To: cygwin

At 20:01 21/03/99 -0500, Nirmal Prasad wrote:
> Pls. refer documentation of DevIoControl(..)  its a Win32 API and should
> allow u to do all the funny things with ur physical device and i hope it
> works..
>
Coud you please point me where can I find the documentation about this API.
I am quite a newbie as to Windows programming.

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Reading physical disks.
@ 1999-03-21 16:59 Nirmal Prasad
  1999-03-31 19:45 ` Nirmal Prasad
  0 siblings, 1 reply; 16+ messages in thread
From: Nirmal Prasad @ 1999-03-21 16:59 UTC (permalink / raw)
  To: cygwin; +Cc: Serguei.Dachian

> So, is there at least a way to read a physiacl sector from a physical disk
>under CygWin gcc, or not???!!!

Pls. refer documentation of DevIoControl(..)  its a Win32 API and should
allow u to do all the funny things with ur physical device and i hope it
works..

Regards

Nirmal Prasad R.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Reading physical disks.
  1999-03-21 15:13 Serguei DACHIAN
@ 1999-03-21 16:56 ` Corinna Vinschen
  1999-03-31 19:45   ` Corinna Vinschen
  1999-03-31 19:45 ` Serguei DACHIAN
  1 sibling, 1 reply; 16+ messages in thread
From: Corinna Vinschen @ 1999-03-21 16:56 UTC (permalink / raw)
  To: Serguei DACHIAN; +Cc: cygwin

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@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Reading physical disks.
@ 1999-03-21 15:13 Serguei DACHIAN
  1999-03-21 16:56 ` Corinna Vinschen
  1999-03-31 19:45 ` Serguei DACHIAN
  0 siblings, 2 replies; 16+ messages in thread
From: Serguei DACHIAN @ 1999-03-21 15:13 UTC (permalink / raw)
  To: cygwin

        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

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~1999-03-31 19:45 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-22  6:53 Reading physical disks Serguei DACHIAN
1999-03-22 14:09 ` Corinna Vinschen
1999-03-31 19:45   ` Corinna Vinschen
1999-03-31 19:45 ` Serguei DACHIAN
  -- strict thread matches above, loose matches on Subject: below --
1999-03-22  7:04 Nirmal Prasad
1999-03-31 19:45 ` Nirmal Prasad
1999-03-22  6:55 Serguei DACHIAN
1999-03-22  7:52 ` John Mullee
1999-03-31 19:45   ` John Mullee
1999-03-31 19:45 ` Serguei DACHIAN
1999-03-21 16:59 Nirmal Prasad
1999-03-31 19:45 ` Nirmal Prasad
1999-03-21 15:13 Serguei DACHIAN
1999-03-21 16:56 ` Corinna Vinschen
1999-03-31 19:45   ` Corinna Vinschen
1999-03-31 19:45 ` Serguei DACHIAN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).