mt(1) DG/UX 5.4R3.00 mt(1)
NAME
mt - magnetic tape control
SYNOPSIS
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 prints an error message. Note that tapename must refer to
a raw (not block) tape device. For tape-positioning operations, the
tape device should be a non-rewinding device; otherwise, the tape
rewinds at the end of the operation regardless of any position
request. For example, specify /dev/rmt/0n instead of /dev/rmt/0.
By default, mt performs the requested operation once; count
specifies multiple operations.
The available commands are listed below. Only as many characters as
are required to uniquely identify a command need be specified.
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.
rewind Rewind the tape. The count argument is ignored with this
command.
offline, rewoffl
Rewind, unload, and place the tape drive unit off-line.
status Print status information about the tape unit. The count
argument is ignored with this command. If the device
is a CLARiiON tape array, the status information
reported will include: the tapeset id, the number of
tapes in the tapeset, the write-protect status, and
whether the tapeset was written using parity.
retension Retension the tape. The count argument is ignored with
this command.
eom Position to the end of the medium. The count argument
is ignored with this command.
load Load the tape. The count argument is ignored with this
command.
Licensed material--property of copyright holder(s) 1
mt(1) DG/UX 5.4R3.00 mt(1)
unload Unload, or eject, the tape. The count argument is
ignored with this command.
The exit status values are:
0 The operation succeeded.
1 mt does not recognize command, or cannot open the specified
tape drive.
2 The operation failed.
FILES
/dev/rmt/* raw magnetic tape interface
SEE ALSO
dd(1), ioctl(2), environ(5).
Licensed material--property of copyright holder(s) 2