Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dd(1)

ioctl(2)

mt(1)  —  Commands

OSF

NAME

mt − Magnetic tape manipulating program

SYNOPSIS

mt [-f tape_device] command[count]

The mt program gives commands to a magnetic tape drive. 

FLAGS

-f tape_deviceSpecifies the tape device to be manipulated. 

DESCRIPTION

If you do not specify a tape name with the -f flag, the TAPE environment variable is used; if TAPE does not exist, mt uses the /dev/rmt12 device.  Note that tape_device must refer to a raw (not block) tape device.  By default, mt performs the requested operation once.  Operations can be performed more than once by specifying count. 

The following commands are available:

eof, weof
Writes count End-of-File marks at the current position on the tape. 

fsfForward spaces count files. 

fsrForward spaces count records. 

bsfBackspaces count files. 

bsrBackspaces count records. 

rewindRewinds the tape (count is ignored). 

offline, rewoffl
Rewinds the tape and places the tape unit offline (count is ignored). 

statusPrints status information about the tape unit. 

Only as many characters as are required to uniquely identify a command need to be specified. 

Japanese Language Support

If Japanese Language Support is enabled on your system, this command is not available. 

FILES

/dev/rmt∗Raw magnetic tape interface. 

EXIT VALUES

The mt command returns a 0 exit status when the operations were successful, a 1 if the command was unrecognized, and a 2 if the operation failed. 

RELATED INFORMATION

Commands: dd(1). 

Functions: ioctl(2). 

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