mt(1)
NAME
mt − magnetic tape manipulating program
SYNTAX
mt [ −f tapename ] command [ count ]
DESCRIPTION
The mt command is used to give commands to a magnetic tape drive. If a tape name is not specified, the environment variable TAPE is used. If TAPE does not exist, mt uses the device /dev/nrht0. Note that tapename must reference a raw (not block) tape device. By default mt performs the requested operation once. Operations may be performed multiple times by specifying count.
The available commands are listed below. Only as many characters as are required to uniquely identify a command need be specified.
bsf Back space count files.
bsr Back space count records.
cache Enable caching (TK50/TU81 only).
clx Re-initialize the tape unit.
cse Clear EOT (software).
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.
nocache
Disable caching (TK50/TU81 only).
rewind
Rewind the tape (count is ignored.)
offline , rewoffl
Rewind the tape and place the tape unit off-line (count is ignored.)
status
Print status information about the tape unit.
cls Clear subsystem.
enaeot
Enable default EOT driver code.
diseot Disable EOT driver code.
RESTRICTIONS
Do not issue MTCLS operation on any controller that has drive on it that is still running. MTCLS will reinitialize both the controller and unit.
MTCLX operation is not available for those magtape drives on tm(4).
CACHE and NOCACHE are to be issued at the beginning of the tape.
ENAEOT, DISEOT, CACHE, and NOCACHE are set globally per unit which means that when set they will stay in that mode until reset.
MTCSE operation will be cleared when tape is no longer at or beyond the EOT.
DIAGNOSTICS
Returns a 0 exit status when the operation(s) were successful, 1 if the command was unrecognized, and 2 if an operation failed.
FILES
/dev/nrht?Raw magnetic tape interface