From: jqb AT netcom DOT com (Jim Balter) Subject: Re: Getting /dev/fd0 to work 22 Mar 1997 00:37:10 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <33338267.AE7.cygnus.gnu-win32@netcom.com> References: <199703212209 DOT OAA05023 AT tooting DOT netapp DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01Gold (WinNT; I) Original-To: Vijayan Rajan Original-CC: gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com Vijayan Rajan wrote: > > Hi, > > 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 > on. > > 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: bash: $ dd if='\\.\a:' of=somewhere NT cmd: c:\>dd "if=\\.\a:" of=somewhere If you get those quotes mixed up, I take no responsibility for the consequences. 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. -- - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".