Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mtio(7)

dd(1)

ioctl(2)

environ(5)

MT(1)                                SysV                                MT(1)



NAME
     mt - magnetic tape manipulating program

SYNOPSIS
     mt [ -f tapename ] [ -scsi ] command [ count ]

DESCRIPTION
     mt gives commands to a magnetic tape drive.  If you do not specify a tape
     name, mt uses the environment variable TAPE.  If TAPE does not exist, the
     default device is /dev/rmt12.  Note that tapename must reference a raw
     (not block) tape device.  By default mt performs the requested operation
     once. Specify count if you want to perform operations more than once.

     You must use the -scsi option when tapename refers to a SCSI device.
     rewind is the only command available with this option.

COMMANDS
     You need to specify only as many characters as needed to uniquely
     identify a command.

     eof, weof
          Write count end-of-file marks at the current position on the tape.

     fsf  Forward space count files.

     fsr  Forward space count records.  This command cannot be used with
          cartridge tapes.

     bsf  Backspace count files.  This command cannot be used with cartridge
          tapes.

     bsr  Backspace count records.  This command cannot be used with cartridge
          tapes.

     erase
          Erase from current position to end-of-tape.

     reten
          Retension cartridge tapes.

     rewind
          Rewind the tape. Ignore count.

     offline, rewoffl
          Rewind the tape and place the tape unit offline.  Ignore count.

     status
          Print status information about the tape unit.

DIAGNOSTICS
     returns a 0 exit status when the operations are successful; 1 if a
     command is unrecognized; and 2 if an operation fails.

FILES
     /dev/rct*           Raw cartridge tape interface

     /dev/rmt*           Raw magnetic tape interface

SEE ALSO
     mtio(7), dd(1), ioctl(2), environ(5)

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