delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/16/07:02:48

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 16 Nov 2001 13:01:37 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: mt-2.0.1-1
Message-ID: <20011116130137.A16860@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <200111161029 DOT fAGATSD15373 AT loony DOT cygnus DOT com> <3BF4FAC7 DOT D0FB91CC AT iee DOT org>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <3BF4FAC7.D0FB91CC@iee.org>; from dwsharp@iee.org on Fri, Nov 16, 2001 at 11:38:47AM +0000

On Fri, Nov 16, 2001 at 11:38:47AM +0000, Don Sharp wrote:
> (/dev/tape1 in the new regime?) but the tape rewound after stopping the
> tape with a ^C and then issuing 

No, the naming convention for the raw devices is the following:

major minor    POSIX filename  NT filename
----- -----    --------------  -------------------------
18       0     /dev/st0        \device\tape0 (rewind)
18       1     /dev/st1        \device\tape1 (rewind)
...
18     128     /dev/nst0       \device\tape0 (norewind)
18     129     /dev/nst1       \device\tape1 (norewind)
...

17       0     /dev/fd0        \device\floppy0
17       1     /dev/fd1        \device\floppy1
...

17      16     /dev/scd0       \device\cdrom0
17      17     /dev/scd0       \device\cdrom1
...

17      32     /dev/sda        \device\harddisk0\partition0
17      33     /dev/sda1       \device\harddisk0\partition1
...
17      47     /dev/sda15      \device\harddisk0\partition15

17      48     /dev/sdb        \device\harddisk1\partition0
17      33     /dev/sdb1       \device\harddisk1\partition1
...
17     208     /dev/sdl        \device\harddisk11\partition0
...
17     223     /dev/sdl15      \device\harddisk11\partition15

The following are needed to maintain backward compatibility with
the old Win32 partitioning scheme on W2K/XP.

17     224     from mount tab  \\.\A:
...
17     250     from mount tab  \\.\Z:

The above naming convention is used close to the way the SCSI
devices are named on Linux.

/dev/tape is just used as a default name for a tape device in
the (more or less) Linux compatible header file mtio.h.  That
results (even on Linux) to mt using /dev/tape as default tape
device name.  Therefore, most Linux systems have /dev/tape
a symlink to the main tape device, typically /dev/st0 if a
SCSI tape is connected.

> mt -f /dev/nrmt0 status 2
> 
> Positioning using (//./tape1 mounted as) /dev/nrmt0 didn't seem to leave
> the tape positioned.
> 
> Should I abandon the use of mounted tape devices?

At least for now.  Use the default /dev/st1 and /dev/nst1.  That
effect wasn't planned, though.  I will investigate it when I have
some spare time.  Probably I have dropped the `leading character n'
test by mistake.

Thanks for the heads up,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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