This is the mail archive of the
mailing list for the Cygwin project.
Re: Getting /dev/fd0 to work
- To: Vijayan Rajan <vijayan at netapp dot com>
- Subject: Re: Getting /dev/fd0 to work
- From: Jim Balter <jqb at netcom dot com>
- Date: Fri, 21 Mar 1997 22:55:35 -0800
- CC: gnu-win32 at cygnus dot com
- Organization: JQB Enterprises
- References: <199703212209.OAA05023@tooting.netapp.com>
Vijayan Rajan wrote:
> I'm having difficulty getting something like "dd if=/dev/fd0"
> to work. I get a "No File or directory" error. On the other
> hand, if the floppy contains a DOS filesystem, something lile
> "cat /dev/fd0/README" works. Also, ls works on a:, \\a, and so
> I'm trying b17.1 on Windows NT 4.0.
I won't go into the gory details of all the bugs in path handling
and the intricacies of quoting, but the following should work for you:
$ dd if='\\.\a:' of=somewhere
c:\>dd "if=\\.\a:" of=somewhere
If you get those quotes mixed up, I take no responsibility for the
For those looking to access a tape drive this way, forget it.
The path to the tape drive is "\\.\TAPE0". Since that doesn't
contain a ':', cygwin.dll blithely, buggily, turns it into "//TAPE0".
The solution? Rewrite path.cc (not to mention the rest of cygwin.dll).
In the meantime, it's easy enough to write a little pgm that calls
CreateFile and then pipe it into dd or cpio or whatever.
This is all for NT, of course. For those of you using Windows 95:
I feel your pain.
<J Q B>
For help on using this list, send a message to
"email@example.com" with one line of text: "help".