1 '\" te
2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH MT 1 "Jun 21, 2007"
7 .SH NAME
8 mt \- magnetic tape control
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBmt\fR [\fB-f\fR \fItapename\fR] \fIcommand\fR... [\fIcount\fR]
13 .fi
14
15 .SH DESCRIPTION
16 .sp
17 .LP
18 The \fBmt\fR utility sends commands to a magnetic tape drive. If \fB-f\fR
19 \fItapename\fR is not specified, the environment variable \fBTAPE\fR is used.
20 If \fBTAPE\fR does not exist, \fBmt\fR uses the device \fB/dev/rmt/0n\fR.
21 .SH OPTIONS
22 .sp
23 .LP
24 The following options are supported:
25 .sp
26 .ne 2
27 .na
28 \fB\fB-f\fR \fItapename\fR\fR
29 .ad
30 .RS 15n
31 Specifies the raw tape device.
32 .RE
33
34 .SH OPERANDS
35 .sp
36 .LP
37 The following operands are supported:
38 .sp
39 .ne 2
40 .na
41 \fB\fIcount\fR\fR
42 .ad
43 .RS 11n
44 The number of times that the requested operation is to be performed. By
45 default, \fBmt\fR performs \fIcommand\fR once. Multiple operations of
46 \fIcommand\fR can be performed by specifying \fIcount\fR.
47 .RE
48
49 .sp
50 .ne 2
51 .na
52 \fB\fIcommand\fR\fR
53 .ad
54 .RS 11n
55 The following available commands that can be sent to a magnetic tape drive are
156 .RS 10n
157 Requests drive load and thread current media. Not supported by all drives.
158 .RE
159
160 .sp
161 .ne 2
162 .na
163 \fB\fBlock\fR\fR
164 .ad
165 .RS 10n
166 Prevents media removal.
167 .RE
168
169 .sp
170 .ne 2
171 .na
172 \fB\fBnbsf\fR\fR
173 .ad
174 .RS 10n
175 Back spaces \fIcount\fR files. The tape is positioned on the first block of the
176 file. This is equivalent to \fIcount+1\fR \fBbsf\fRs ollowed by one \fBfsf\fR.
177 .RE
178
179 .sp
180 .ne 2
181 .na
182 \fB\fBseek\fR\fR
183 .ad
184 .RS 10n
185 Positions to requested logical tape position.
186 .RE
187
188 .sp
189 .ne 2
190 .na
191 \fB\fBtell\fR\fR
192 .ad
193 .RS 10n
194 Gets and prints current logical tape position.
195 .RE
196
304 Rewinds the tape.
305 .RE
306
307 .sp
308 .ne 2
309 .na
310 \fB\fBstatus\fR\fR
311 .ad
312 .RS 16n
313 Prints status information about the tape unit.
314 .sp
315 Status information can include the sense key reported by the drive, the
316 residual and retries for the last operation, the current tape position reported
317 in file number, and the number of blocks from the beginning of that file. It
318 might also report that WORM media is loaded in that drive.
319 .RE
320
321 .RE
322
323 .SH EXIT STATUS
324 .sp
325 .ne 2
326 .na
327 \fB\fB0\fR\fR
328 .ad
329 .RS 5n
330 All operations were successful.
331 .RE
332
333 .sp
334 .ne 2
335 .na
336 \fB\fB1\fR\fR
337 .ad
338 .RS 5n
339 Command was unrecognized or \fBmt\fR was unable to open the specified tape
340 drive.
341 .RE
342
343 .sp
344 .ne 2
345 .na
346 \fB\fB2\fR\fR
347 .ad
348 .RS 5n
349 An operation failed.
350 .RE
351
352 .SH FILES
353 .sp
354 .ne 2
355 .na
356 \fB\fB/dev/rmt/*\fR\fR
357 .ad
358 .RS 14n
359 magnetic tape interface
360 .RE
361
362 .SH SEE ALSO
363 .sp
364 .LP
365 \fBtar\fR(1), \fBtcopy\fR(1), \fBar.h\fR(3HEAD), \fBattributes\fR(5),
366 \fBmtio\fR(7I), \fBst\fR(7D)
367 .SH BUGS
368 .sp
369 .LP
370 Not all devices support all options. Some options are hardware-dependent. Refer
371 to the corresponding device manual page.
372 .sp
373 .LP
374 \fBmt\fR is architecture sensitive. Heterogeneous operation (that is, SPARC to
375 x86 or the reverse) is not supported.
|
1 '\" te
2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH MT 1 "Jun 21, 2007"
7 .SH NAME
8 mt \- magnetic tape control
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBmt\fR [\fB-f\fR \fItapename\fR] \fIcommand\fR... [\fIcount\fR]
13 .fi
14
15 .SH DESCRIPTION
16 .LP
17 The \fBmt\fR utility sends commands to a magnetic tape drive. If \fB-f\fR
18 \fItapename\fR is not specified, the environment variable \fBTAPE\fR is used.
19 If \fBTAPE\fR does not exist, \fBmt\fR uses the device \fB/dev/rmt/0n\fR.
20 .SH OPTIONS
21 .LP
22 The following options are supported:
23 .sp
24 .ne 2
25 .na
26 \fB\fB-f\fR \fItapename\fR\fR
27 .ad
28 .RS 15n
29 Specifies the raw tape device.
30 .RE
31
32 .SH OPERANDS
33 .LP
34 The following operands are supported:
35 .sp
36 .ne 2
37 .na
38 \fB\fIcount\fR\fR
39 .ad
40 .RS 11n
41 The number of times that the requested operation is to be performed. By
42 default, \fBmt\fR performs \fIcommand\fR once. Multiple operations of
43 \fIcommand\fR can be performed by specifying \fIcount\fR.
44 .RE
45
46 .sp
47 .ne 2
48 .na
49 \fB\fIcommand\fR\fR
50 .ad
51 .RS 11n
52 The following available commands that can be sent to a magnetic tape drive are
153 .RS 10n
154 Requests drive load and thread current media. Not supported by all drives.
155 .RE
156
157 .sp
158 .ne 2
159 .na
160 \fB\fBlock\fR\fR
161 .ad
162 .RS 10n
163 Prevents media removal.
164 .RE
165
166 .sp
167 .ne 2
168 .na
169 \fB\fBnbsf\fR\fR
170 .ad
171 .RS 10n
172 Back spaces \fIcount\fR files. The tape is positioned on the first block of the
173 file. This is equivalent to \fIcount+1\fR \fBbsf\fRs followed by one \fBfsf\fR.
174 .RE
175
176 .sp
177 .ne 2
178 .na
179 \fB\fBseek\fR\fR
180 .ad
181 .RS 10n
182 Positions to requested logical tape position.
183 .RE
184
185 .sp
186 .ne 2
187 .na
188 \fB\fBtell\fR\fR
189 .ad
190 .RS 10n
191 Gets and prints current logical tape position.
192 .RE
193
301 Rewinds the tape.
302 .RE
303
304 .sp
305 .ne 2
306 .na
307 \fB\fBstatus\fR\fR
308 .ad
309 .RS 16n
310 Prints status information about the tape unit.
311 .sp
312 Status information can include the sense key reported by the drive, the
313 residual and retries for the last operation, the current tape position reported
314 in file number, and the number of blocks from the beginning of that file. It
315 might also report that WORM media is loaded in that drive.
316 .RE
317
318 .RE
319
320 .SH EXIT STATUS
321 .ne 2
322 .na
323 \fB\fB0\fR\fR
324 .ad
325 .RS 5n
326 All operations were successful.
327 .RE
328
329 .sp
330 .ne 2
331 .na
332 \fB\fB1\fR\fR
333 .ad
334 .RS 5n
335 Command was unrecognized or \fBmt\fR was unable to open the specified tape
336 drive.
337 .RE
338
339 .sp
340 .ne 2
341 .na
342 \fB\fB2\fR\fR
343 .ad
344 .RS 5n
345 An operation failed.
346 .RE
347
348 .SH FILES
349 .ne 2
350 .na
351 \fB\fB/dev/rmt/*\fR\fR
352 .ad
353 .RS 14n
354 magnetic tape interface
355 .RE
356
357 .SH SEE ALSO
358 .LP
359 \fBtar\fR(1), \fBtcopy\fR(1), \fBar.h\fR(3HEAD), \fBattributes\fR(5),
360 \fBmtio\fR(7I), \fBst\fR(7D)
361 .SH BUGS
362 .LP
363 Not all devices support all options. Some options are hardware-dependent. Refer
364 to the corresponding device manual page.
365 .sp
366 .LP
367 \fBmt\fR is architecture sensitive. Heterogeneous operation (that is, SPARC to
368 x86 or the reverse) is not supported.
|