Files
oldlinux-files/Minix/2.0.0/wwwman/man1/mt.1.html
2024-02-19 00:21:39 -05:00

126 lines
4.3 KiB
HTML

<HTML>
<HEAD>
<TITLE>mt(1)</TITLE>
</HEAD>
<BODY>
<H1>mt(1)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
mt - magnetic tape control
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>mt</STRONG> [<STRONG>-f</STRONG> <EM>device</EM>] [<EM>count</EM>]
</PRE>
<H2>DESCRIPTION</H2><PRE>
<STRONG>Mt</STRONG> is a user interface to the magnetic tape commands described in
<STRONG><A HREF="../man4/mtio.4.html">mtio(4)</A></STRONG>. It allows one to space a tape forwards or backwards, write end
of file markers, etc.
With the <STRONG>-f</STRONG> option a tape device can be named, otherwise the environment
variable <STRONG>TAPE</STRONG> is used if set, otherwise the default device <STRONG>/dev/nrst4</STRONG> is
assumed. Standard input is used if the tape name is a dash (-). The
<EM>count</EM> argument is used to tell how many blocks or files to space or how
many file markers to write. It may be a C-style decimal, octal or
hexadecimal constant, by default "1".
<EM>Command</EM> is the action to perform, it may be one of the following, or any
unambiguous prefix (like <STRONG>st</STRONG> for <STRONG>status</STRONG>):
<STRONG>eof,</STRONG> <STRONG>weof</STRONG> Write <EM>count</EM> end-of-file markers.
<STRONG>fsf</STRONG> Forward space <EM>count</EM> file markers.
<STRONG>fsr</STRONG> Forward space <EM>count</EM> records. (The size of a record
depends on the tape, and may even be variable, depending
on the size of the writes.)
<STRONG>bsf</STRONG> Backwards space <EM>count</EM> files. The count may be zero to
backspace to the start of the current file. (A tape
device need not support backwards movement, or may be very
slow doing it. Rewinding and forward spacing may be
better.)
<STRONG>bsr</STRONG> Backwards space <EM>count</EM> records. The tape is positioned
after the last block of the previous file if you hit a
filemark when spacing backwards. The block count is set
to -1 to indicate that the driver has no idea where it is
on the previous file.
<STRONG>eom</STRONG> Forward space to the end of media.
<STRONG>rewind</STRONG> Rewind the tape.
<STRONG>offline,</STRONG> <STRONG>rewoffl</STRONG>
Rewind and take offline. This may cause some drives to
eject the tape.
<STRONG>status</STRONG> Shows the status of the drive, the sense key of the last
SCSI error, current file number, current record number,
residual count if the last command that encountered end-
of-file, and the current block size.
<STRONG>retension</STRONG> Removes tape tension by winding and rewinding the tape
completely.
<STRONG>erase</STRONG> Erases the tape completely and rewinds it.
<STRONG>density</STRONG> Sets the density code to read or write the tape to <EM>count</EM>.
Density codes supported depend on the drive. This command
need not be used if the drive senses the proper density on
read and can only write one density.
<STRONG>blksize,</STRONG> <STRONG>blocksize</STRONG>
Sets the block size used to read or write the tape to
<EM>count</EM>. This command may be used to select a fixed block
size for a variable block size tape. This will speed up
I/O for small block sizes. Use a zero <EM>count</EM> to use
variable sized blocks again.
</PRE>
<H2>ENVIRONMENT</H2><PRE>
<STRONG>TAPE</STRONG> Tape drive to use if set.
</PRE>
<H2>FILES</H2><PRE>
<STRONG>/dev/nrst4</STRONG> Default tape device.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man4/mtio.4.html">mtio(4)</A></STRONG>, <STRONG><A HREF="../man4/st.4.html">st(4)</A></STRONG>.
</PRE>
<H2>AUTHOR</H2><PRE>
Kees J. Bot (kjb@cs.vu.nl)
</PRE>
</BODY>
</HTML>