1 .\" $NetBSD: mt.1,v 1.33 2003/08/07 09:05:17 agc Exp $
3 .\" Copyright (c) 1981, 1990, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)mt.1 8.1 (Berkeley) 6/6/93
37 .Nd magnetic tape manipulation
46 program is used to give commands to a magnetic tape drive.
49 performs the requested operation once.
50 Operations may be performed multiple times by specifying
56 must reference a raw (not block) tape device.
62 .Qq user@host:tapename ,
64 writes to the named tape device on the remote host using
69 process on the remote host is typically initiated via
71 although an alternate method such as
73 can be specified via the
77 The available commands are listed below.
78 Only as many characters as are required to uniquely identify a command
80 .Bl -tag -width "eof, weof"
84 files from the beginning of the tape.
85 This is accomplished by a rewind followed by fsf
90 end-of-file marks at the current position on the tape.
112 .It Cm offline , rewoffl
113 Rewind the tape and place the tape unit off-line.
114 Where supported, this ejects the tape.
119 Print status information about the tape unit.
125 Not all tape drives support this feature.
131 Not all tape drives support this feature.
136 Enable or disable early warning EOM behaviour.
139 to nonzero to enable, zero to disable.
141 Forward space to the end of recorded media.
145 .It Cm blocksize , setblk
146 Set the tape blocksize to
151 of zero sets variable blocksize.
152 .It Cm density , setdensity
153 Set the tape density code to
160 section for a list of codes for commonly used media types.
162 Read the logical block position of the tape.
163 Not all tape drives support this feature.
168 Read the hardware block position of the tape.
169 Not all tape drives support this feature.
174 Set the logical block position of the tape to
176 Not all tape drives support this feature.
178 Set the hardware block position of the tape to
180 Not all tape drives support this feature.
184 is zero, disable compression.
185 Otherwise enable compression.
186 Not all tape drives support this feature.
189 If a tape name is not specified, and the environment variable
197 returns a 0 exit status when the operation(s) were successful,
198 1 if the command was unrecognized, and 2 if an operation failed.
200 The SCSI-3 specification defines a number of density codes for
201 various tape media, some of which are listed here.
202 Note that many tape drive vendors also define model-specific codes.
204 .Bl -column "Code" "Format" -compact
206 .It Li 0 Ta Device default
207 .It Li 1 Ta 1/2" 800 bpi
208 .It Li 2 Ta 1/2" 1600 bpi
209 .It Li 3 Ta 1/2" 6250 bpi
214 .It Li 17 Ta QIC-320/525
215 .It Li 18 Ta QIC-1320/1350
217 .It Li 28 Ta QIC-385M
218 .It Li 29 Ta QIC-410M
219 .It Li 30 Ta QIC-1000C
220 .It Li 31 Ta QIC-2100C
222 .It Li 33 Ta QIC-20GB
224 .It Li 35 Ta QIC-875M
230 If the following environment variables exist, they are used by
235 uses device filename given in the
237 environment variable if the
239 argument is not given.
249 The full path name must be specified.
252 .Bl -tag -width /dev/rst* -compact
258 Raw magnetic tape device