public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: [ANNOUNCEMENT] Updated: mt-2.0.1-1
  2001-11-11  8:26   ` Corinna Vinschen
  2001-11-11  8:26     ` Don Sharp
@ 2001-11-11  8:26     ` Corinna Vinschen
  1 sibling, 0 replies; 7+ messages in thread
From: Corinna Vinschen @ 2001-11-11  8:26 UTC (permalink / raw)
  To: cygwin

On Fri, Nov 16, 2001 at 01:01:37PM +0100, Corinna Vinschen wrote:
> 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.

Sigh.  No-rewind was broken.  I've checked in a fix.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.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/

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

* Re: [ANNOUNCEMENT] Updated: mt-2.0.1-1
  2001-11-11  8:26       ` Corinna Vinschen
@ 2001-11-11  8:26         ` Don Sharp
  0 siblings, 0 replies; 7+ messages in thread
From: Don Sharp @ 2001-11-11  8:26 UTC (permalink / raw)
  To: Corinna Vinschen



Corinna Vinschen wrote:
> 
> On Fri, Nov 16, 2001 at 02:21:15PM +0000, Don Sharp wrote:
> > Thanks Corinna. Your message is extremely helpful.
> > But help!! how do I unmount the tapes?
> >
> > $ umount /dev/st0
> > umount: /dev/st0: No such file or directory
> >
> > $ mount
> > \\.\tape0 on /dev/st0 type system (binmode)
>                              ^^^^^^
>                              Come on!
> 

Silly me! %<)

$ umount -s /dev/st0

of course.

Cheers

Don Sharp

--
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/

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

* Re: [ANNOUNCEMENT] Updated: mt-2.0.1-1
  2001-11-11  8:26     ` Don Sharp
@ 2001-11-11  8:26       ` Corinna Vinschen
  2001-11-11  8:26         ` Don Sharp
  0 siblings, 1 reply; 7+ messages in thread
From: Corinna Vinschen @ 2001-11-11  8:26 UTC (permalink / raw)
  To: cygwin

On Fri, Nov 16, 2001 at 02:21:15PM +0000, Don Sharp wrote:
> Thanks Corinna. Your message is extremely helpful.
> But help!! how do I unmount the tapes?
> 
> $ umount /dev/st0
> umount: /dev/st0: No such file or directory
> 
> $ mount
> \\.\tape0 on /dev/st0 type system (binmode)
                             ^^^^^^
			     Come on!

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.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/

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

* Re: [ANNOUNCEMENT] Updated: mt-2.0.1-1
  2001-11-11  8:26 ` Don Sharp
@ 2001-11-11  8:26   ` Corinna Vinschen
  2001-11-11  8:26     ` Don Sharp
  2001-11-11  8:26     ` Corinna Vinschen
  0 siblings, 2 replies; 7+ messages in thread
From: Corinna Vinschen @ 2001-11-11  8:26 UTC (permalink / raw)
  To: cygwin

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@cygwin.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/

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

* Re: [ANNOUNCEMENT] Updated: mt-2.0.1-1
  2001-11-11  8:26   ` Corinna Vinschen
@ 2001-11-11  8:26     ` Don Sharp
  2001-11-11  8:26       ` Corinna Vinschen
  2001-11-11  8:26     ` Corinna Vinschen
  1 sibling, 1 reply; 7+ messages in thread
From: Don Sharp @ 2001-11-11  8:26 UTC (permalink / raw)
  To: Corinna Vinschen

Thanks Corinna. Your message is extremely helpful.
But help!! how do I unmount the tapes?

$ umount /dev/st0
umount: /dev/st0: No such file or directory

$ mount
\\.\tape0 on /dev/st0 type system (binmode)
\\.\tape0 on /dev/nst0 type system (binmode)
\\.\tape1 on /dev/nrmt0 type system (binmode)
\\.\tape1 on /dev/rmt0 type system (binmode)

Cheers

Don Sharp

Corinna Vinschen wrote:
> 
> 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@cygwin.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/

--
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/

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

* [ANNOUNCEMENT] Updated: mt-2.0.1-1
@ 2001-11-11  8:26 Corinna Vinschen
  2001-11-11  8:26 ` Don Sharp
  0 siblings, 1 reply; 7+ messages in thread
From: Corinna Vinschen @ 2001-11-11  8:26 UTC (permalink / raw)
  To: cygwin

I've updated the version of mt to 2.0.1-1.

This version completely get's rid of the WinNT tape API.  It uses
only Cygwin calls to perform it's functionality.  It's _not_
independent of the OS, though, since it still prints all the
additional WinNT specific information on `mt status'.

- The default device name is now "/dev/tape".  Since that doesn't
  exist in Cygwin by default, just create a convenient symlink as
  e.g.

	mkdir /dev
	ln -s /dev/st0 /dev/tape

  It's done the same way on Linux systems.

  If you don't want to create a symlink you can also just set the
  environment variable "TAPE" to a convenient value if you like.
  This, too, avoids that you'll have to use the -f option all the
  time:

	export TAPE=/dev/st0  (ash,bash)
  or
	setenv TAPE /dev/st0  (tcsh)

- This version still supports setting blocksize to 0 to enable the
  "variable blocksize" feature.

- The output of `mt status' is not compatible to GNU-mt, but
  corresponds to the abilities of the WinNT tape device driver.
  The command `status' reports more infos on `mt status 2' or
  `mt status 3'!

- Since this `mt' uses the Cygwin device driver, please note that
  using a rewind device name (e.g. /dev/st0) will rewind the tape
  after the operation!  This is equivalent to Linux.  If you e.g.
  want to move to block 3, don't be surprised that

	mt -f /dev/st0 seek 3

  ends up on block 0.  In these cases, use the appropriate no-rewind
  device instead:

	mt -f /dev/nst0 seek 3

  Caution:  Even using the `status' command will rewind when used
  on a rewind tape device!

  Tip:
	ln -s /dev/nst0 /dev/tape

To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Once you've downloaded setup.exe, run it and select the  
appropriate package from the list.

Note that we do not allow downloads from sources.redhat.com (aka
cygwin.com) due to bandwidth limitations.  This means that you will need
to find a mirror which has this update.

In the US,
ftp://mirrors.rcn.net/mirrors/sources.redhat.com/cygwin/
is a reliable high bandwidth connection.

In Germany,
ftp://ftp.uni-erlangen.de/pub/pc/gnuwin32/cygwin/mirrors/cygnus/ is
usually pretty good.

In the UK,
http://programming.ccp14.ac.uk/ftp-mirror/programming/cygwin/pub/cygwin/
is usually up-to-date within 48 hours.

If one of the above doesn't have the latest version of this package then
you can either wait for the site to be updated or find another mirror.  

The setup.exe program will figure out what needs to be updated on your
system and will install newer packages automatically.

If you have questions or comments, please send them to the Cygwin
mailing list at: cygwin@cygwin.com .  I would appreciate it if you would
use this mailing list rather than emailing me directly.  This includes  
ideas and comments about the setup utility or Cygwin in general.

If you want to make a point or ask a question, the Cygwin mailing list
is the appropriate place.

              *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.  
Send email to the address specified there.  It will be in the format: 

cygwin-announce-unsubscribe-you=yourdomain.com@cygwin.com

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                        mailto:cygwin@sources.redhat.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/

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

* Re: [ANNOUNCEMENT] Updated: mt-2.0.1-1
  2001-11-11  8:26 [ANNOUNCEMENT] Updated: mt-2.0.1-1 Corinna Vinschen
@ 2001-11-11  8:26 ` Don Sharp
  2001-11-11  8:26   ` Corinna Vinschen
  0 siblings, 1 reply; 7+ messages in thread
From: Don Sharp @ 2001-11-11  8:26 UTC (permalink / raw)
  To: cygwin



Corinna Vinschen wrote:
> 
> I've updated the version of mt to 2.0.1-1.
> 
> This version completely get's rid of the WinNT tape API.  It uses
> only Cygwin calls to perform it's functionality.  It's _not_
> independent of the OS, though, since it still prints all the
> additional WinNT specific information on `mt status'.
> 
> - The default device name is now "/dev/tape".  Since that doesn't
>   exist in Cygwin by default, just create a convenient symlink as
>   e.g.
> 
>         mkdir /dev
>         ln -s /dev/st0 /dev/tape
> 

My current mounts seem to allow me to reach the second tape drive
(/dev/tape1 in the new regime?) but the tape rewound after stopping the
tape with a ^C and then issuing 

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?

>   It's done the same way on Linux systems.
> 
>   If you don't want to create a symlink you can also just set the
>   environment variable "TAPE" to a convenient value if you like.
>   This, too, avoids that you'll have to use the -f option all the
>   time:
> 
>         export TAPE=/dev/st0  (ash,bash)
>   or
>         setenv TAPE /dev/st0  (tcsh)
> 
> - This version still supports setting blocksize to 0 to enable the
>   "variable blocksize" feature.
> 
> - The output of `mt status' is not compatible to GNU-mt, but
>   corresponds to the abilities of the WinNT tape device driver.
>   The command `status' reports more infos on `mt status 2' or
>   `mt status 3'!
> 
> - Since this `mt' uses the Cygwin device driver, please note that
>   using a rewind device name (e.g. /dev/st0) will rewind the tape
>   after the operation!  This is equivalent to Linux.  If you e.g.
>   want to move to block 3, don't be surprised that
> 
>         mt -f /dev/st0 seek 3
> 
>   ends up on block 0.  In these cases, use the appropriate no-rewind
>   device instead:
> 
>         mt -f /dev/nst0 seek 3
> 
>   Caution:  Even using the `status' command will rewind when used
>   on a rewind tape device!
> 
>   Tip:
>         ln -s /dev/nst0 /dev/tape
> 

... snip ...

Cheers

Don Sharp

--
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/

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

end of thread, other threads:[~2001-11-16 23:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-11  8:26 [ANNOUNCEMENT] Updated: mt-2.0.1-1 Corinna Vinschen
2001-11-11  8:26 ` Don Sharp
2001-11-11  8:26   ` Corinna Vinschen
2001-11-11  8:26     ` Don Sharp
2001-11-11  8:26       ` Corinna Vinschen
2001-11-11  8:26         ` Don Sharp
2001-11-11  8:26     ` Corinna Vinschen

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).