delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/28/12:19:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 28 May 2004 11:19:03 -0500
From: Brian Ford <ford AT vss DOT fsi DOT com>
Reply-To: cygwin AT cygwin DOT com
To: Marc Schare <marc9 AT aol DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: cygwin and scsi tape drive.
In-Reply-To: <loom.20040528T175258-168@post.gmane.org>
Message-ID: <Pine.CYG.4.58.0405281110510.1584@fordpc.vss.fsi.com>
References: <loom DOT 20040527T194600-168 AT post DOT gmane DOT org> <cb51e2e04052714068ab820f AT mail DOT gmail DOT com> <loom DOT 20040528T175258-168 AT post DOT gmane DOT org>
MIME-Version: 1.0
X-IsSubscribed: yes

On Fri, 28 May 2004, Marc Schare wrote:

> Joshua Daniel Franklin <joshuadfranklin <at> gmail.com> writes:
> > Have you read
> >
> > <http://cygwin.com/cygwin-ug-net/using-specialnames.html>?
> >
> > Particularly the part about "Note that you can't use the mount table
> > to map from fixed device name to your own device name."
>
> I did read the note, but I don't think I'm trying to do that. Again, here is
> the result from the mount command:

I think you are.

> C:\Documents and Settings\Marc>mount
> C:\cygwin\bin on /usr/bin type system (binmode)
> C:\cygwin\lib on /usr/lib type system (binmode)
> \device\tape0 on /dev/st0 type system (binmode)

/dev/st0 is a virtual device in Cygwin that corresponds to \device\tape0
in Windows NT+.  You are trying to remake this association via the mount
table.  Why?

> C:\cygwin on / type system (binmode)
> \\.\tape0 on /dev/st1 type system (binmode)

What is that for?  /dev/st1 is a Cygwin virtual device that corresponds to
\device\tape1 in Windows NT+.  You are trying to reassociate that via
mount.  You must not have understood the Users Guide section quoted above
at all.

> \.tape0 on /dev/tape type system (binmode)

Try simply ln -s /dev/st0 /dev/tape

> c: on /cygdrive/c type user (binmode,noumount)
> d: on /cygdrive/d type user (binmode,noumount)
>
> Which clearly states that \device\tape0 is mounted on /dev/st0, which
> tells me I should be able to use /dev/st0, but when I try, I get this:

Only if those mounts don't exist.

> C:\Documents and Settings\Marc>mt -f /dev/st0 status
> mt: /dev/st0: No such file or directory

You have really confused things with the mounts.

> For grins, I also tried this:
>
> C:\Documents and Settings\Marc>mt -f \device\tape0 status
> mt: \device\tape0: No such file or directory

I assume you properly quoted those '\' or used a cmd shell?  Anyway, don't
expect POSIX device behavior if you use a Windows device path.

> Without success. The ls command can find the drive:
>
> C:\Documents and Settings\Marc>ls -l /dev/st0
> crw-rw-rw-    1 Marc     None       9,   0 May 28 11:57 /dev/st0
>
> So.. what am I doing wrong?

Don't use mount.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International\
the best safety device in any aircraft is a well-trained pilot...

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019