Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ar(4)

environ(5)

dd(1M)

xt(7)





   mt(1)                  (BSD Compatibility Package )                   mt(1)


   NAME
         mt - magnetic tape control

   SYNOPSIS
         /usr/ucb/mt [ -f tapename ] command [ count ]

   DESCRIPTION
         mt sends commands to a magnetic tape drive.  If tapename is not
         specified, the environment variable TAPE is used.  If TAPE does not
         exist, mt uses the device /dev/rmt/ctape1n.  tapename must refer to a
         raw (not block) tape device.  By default, mt performs the requested
         operation once;  multiple operations may be performed by specifying
         count.

         The available commands are listed below.  Only as many characters as
         are required to uniquely identify a command need be specified.

         mt returns a 0 exit status when the operation(s) were successful, 1
         if the command was unrecognized or if mt was unable to open the
         specified tape drive, and 2 if an operation failed.

         the following commands are available to mt:

         eof, weof    Write count EOF marks at the current position on the
                      tape.

         fsf          Forward space count files.

         fsr          Forward space count records.

         bsf          Back space count files.

         bsr          Back space count records.

         asf          Absolute space to count file number.  This is equivalent
                      to a rewind followed by a fsf count.

         For the following commands, count is ignored:

         eom          Space to the end of recorded media on the tape (SCSI
                      only).  This is useful for appending files onto
                      previously written tapes.

         rewind       Rewind the tape.

         offline, rewoffl
                      Rewind, unload, and place the tape drive unit off-line.

         status       Print status information about the tape unit.




   7/91                                                                 Page 1









   mt(1)                  (BSD Compatibility Package )                   mt(1)


         retension    Wind the tape to the end of the reel and then rewind it,
                      smoothing out the tape tension.

         erase        Erase the entire tape.

         eod          Space to the end of the data.  This positions the tape
                      at the end of the data so that additional files may be
                      appended.  Note that Exabyte tape drives do not support
                      the eod option.

   FILES
         /dev/rmt*           raw magnetic tape interface
         dev/rmt/ctape*      raw mvme350 tape interface

   SEE ALSO
         ar(4), environ(5) in the Programmer's Reference Manual.  dd(1M),
         xt(7) in the System Administrator's Reference Manual.

   NOTES
         Not all devices support all options.  For example, the mvme350 driver
         does not support the bsf, bsr, eom, and status options.
































   Page 2                                                                 7/91





Typewritten Software • bear@typewritten.org • Edmonds, WA 98026