Print this page
10067 Miscellaneous man page typos
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Volker A. Brandt <vab@bb-c.de>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man1/mt.1
+++ new/usr/src/man/man1/mt.1
1 1 '\" te
2 2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
3 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 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 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]
↓ open down ↓ |
5 lines elided |
↑ open up ↑ |
6 6 .TH MT 1 "Jun 21, 2007"
7 7 .SH NAME
8 8 mt \- magnetic tape control
9 9 .SH SYNOPSIS
10 10 .LP
11 11 .nf
12 12 \fBmt\fR [\fB-f\fR \fItapename\fR] \fIcommand\fR... [\fIcount\fR]
13 13 .fi
14 14
15 15 .SH DESCRIPTION
16 -.sp
17 16 .LP
18 17 The \fBmt\fR utility sends commands to a magnetic tape drive. If \fB-f\fR
19 18 \fItapename\fR is not specified, the environment variable \fBTAPE\fR is used.
20 19 If \fBTAPE\fR does not exist, \fBmt\fR uses the device \fB/dev/rmt/0n\fR.
21 20 .SH OPTIONS
22 -.sp
23 21 .LP
24 22 The following options are supported:
25 23 .sp
26 24 .ne 2
27 25 .na
28 26 \fB\fB-f\fR \fItapename\fR\fR
29 27 .ad
30 28 .RS 15n
31 29 Specifies the raw tape device.
32 30 .RE
33 31
34 32 .SH OPERANDS
35 -.sp
36 33 .LP
37 34 The following operands are supported:
38 35 .sp
39 36 .ne 2
40 37 .na
41 38 \fB\fIcount\fR\fR
42 39 .ad
43 40 .RS 11n
44 41 The number of times that the requested operation is to be performed. By
45 42 default, \fBmt\fR performs \fIcommand\fR once. Multiple operations of
46 43 \fIcommand\fR can be performed by specifying \fIcount\fR.
47 44 .RE
48 45
49 46 .sp
50 47 .ne 2
51 48 .na
52 49 \fB\fIcommand\fR\fR
53 50 .ad
54 51 .RS 11n
55 52 The following available commands that can be sent to a magnetic tape drive are
56 53 supported. Only as many characters as are required to uniquely identify a
57 54 \fIcommand\fR need be specified.
58 55 .sp
59 56 .ne 2
60 57 .na
61 58 \fB\fBasf\fR\fR
62 59 .ad
63 60 .RS 10n
64 61 Specifies absolute space to \fIcount\fR file number. This is equivalent to a
65 62 \fBrewind\fR followed by a \fBfsf\fR \fIcount\fR.
66 63 .RE
67 64
68 65 .sp
69 66 .ne 2
70 67 .na
71 68 \fB\fBbsf\fR\fR
72 69 .ad
73 70 .RS 10n
74 71 Back spaces over \fIcount\fR EOF marks. The tape is positioned on the
75 72 beginning-of-tape side of the EOF mark.
76 73 .RE
77 74
78 75 .sp
79 76 .ne 2
80 77 .na
81 78 \fB\fBbsr\fR\fR
82 79 .ad
83 80 .RS 10n
84 81 Back spaces \fIcount\fR records.
85 82 .RE
86 83
87 84 .sp
88 85 .ne 2
89 86 .na
90 87 \fB\fBbssf\fR\fR
91 88 .ad
92 89 .RS 10n
93 90 Back spaces over the requested number of sequential file marks. Sequential file
94 91 marks are where the file marks are one right after the other with no other
95 92 blocks of any kind between the file marks. The number argument specifies how
96 93 many sequential file marks to which to space. For example, \fBbssf 4\fR
97 94 searches backwards to the first place where there are 4 sequential file marks
98 95 and positions to the BOP side of the 4th file mark.
99 96 .sp
100 97 This command is not supported by all drives.
101 98 .RE
102 99
103 100 .sp
104 101 .ne 2
105 102 .na
106 103 \fB\fBeof\fR\fR
107 104 .ad
108 105 .br
109 106 .na
110 107 \fB\fBweof\fR\fR
111 108 .ad
112 109 .RS 10n
113 110 Writes \fIcount\fR EOF marks at the current position on the tape.
114 111 .RE
115 112
116 113 .sp
117 114 .ne 2
118 115 .na
119 116 \fB\fBfsf\fR\fR
120 117 .ad
121 118 .RS 10n
122 119 Forward spaces over \fIcount\fR EOF marks. The tape is positioned on the first
123 120 block of the file.
124 121 .RE
125 122
126 123 .sp
127 124 .ne 2
128 125 .na
129 126 \fB\fBfsr\fR\fR
130 127 .ad
131 128 .RS 10n
132 129 Forward spaces \fIcount\fR records.
133 130 .RE
134 131
135 132 .sp
136 133 .ne 2
137 134 .na
138 135 \fB\fBfssf\fR\fR
139 136 .ad
140 137 .RS 10n
141 138 Forward spaces the over requested number of sequential file marks. Sequential
142 139 file marks are where the file marks are one right after the other with no other
143 140 blocks of any kind between the file marks. The number argument specifies how
144 141 many sequential file marks to which to space. For example, \fBfssf 4\fR
145 142 searches forwards to the first place where there are 4 sequential file marks
146 143 and positions after the 4th file mark.
147 144 .sp
148 145 This command is not supported by all drives.
149 146 .RE
150 147
151 148 .sp
152 149 .ne 2
153 150 .na
154 151 \fB\fBload\fR\fR
155 152 .ad
156 153 .RS 10n
157 154 Requests drive load and thread current media. Not supported by all drives.
158 155 .RE
159 156
160 157 .sp
161 158 .ne 2
162 159 .na
163 160 \fB\fBlock\fR\fR
164 161 .ad
165 162 .RS 10n
↓ open down ↓ |
120 lines elided |
↑ open up ↑ |
166 163 Prevents media removal.
167 164 .RE
168 165
169 166 .sp
170 167 .ne 2
171 168 .na
172 169 \fB\fBnbsf\fR\fR
173 170 .ad
174 171 .RS 10n
175 172 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.
173 +file. This is equivalent to \fIcount+1\fR \fBbsf\fRs followed by one \fBfsf\fR.
177 174 .RE
178 175
179 176 .sp
180 177 .ne 2
181 178 .na
182 179 \fB\fBseek\fR\fR
183 180 .ad
184 181 .RS 10n
185 182 Positions to requested logical tape position.
186 183 .RE
187 184
188 185 .sp
189 186 .ne 2
190 187 .na
191 188 \fB\fBtell\fR\fR
192 189 .ad
193 190 .RS 10n
194 191 Gets and prints current logical tape position.
195 192 .RE
196 193
197 194 .sp
198 195 .ne 2
199 196 .na
200 197 \fB\fBunlock\fR\fR
201 198 .ad
202 199 .RS 10n
203 200 Allows media removal.
204 201 .RE
205 202
206 203 If \fIcount\fR is specified with any of the following commands, the \fIcount\fR
207 204 is ignored and the command is performed only once.
208 205 .sp
209 206 .ne 2
210 207 .na
211 208 \fB\fBconfig\fR\fR
212 209 .ad
213 210 .RS 16n
214 211 Reads the drives current configuration from the driver and displays it in
215 212 \fBst.conf\fR format. See \fBst\fR(7D) for definition of fields and there
216 213 meanings.
217 214 .RE
218 215
219 216 .sp
220 217 .ne 2
221 218 .na
222 219 \fB\fBeom\fR\fR
223 220 .ad
224 221 .RS 16n
225 222 Spaces to the end of recorded media on the tape. This is useful for appending
226 223 files onto previously written tapes.
227 224 .RE
228 225
229 226 .sp
230 227 .ne 2
231 228 .na
232 229 \fB\fBerase\fR\fR
233 230 .ad
234 231 .RS 16n
235 232 Erases the entire tape.
236 233 .sp
237 234 Some tape drives have option settings where only portions of the tape can be
238 235 erased. Be sure to select the correct setting to erase the whole tape. Erasing
239 236 a tape can take a long time depending on the device and/or tape. Refer to the
240 237 device specific manual for time details.
241 238 .RE
242 239
243 240 .sp
244 241 .ne 2
245 242 .na
246 243 \fB\fBforcereserve\fR\fR
247 244 .ad
248 245 .RS 16n
249 246 Attempts to break a SCSI II reserve issued by another initiator. When this
250 247 command completes, the drive is not reserved for the current initiator, but is
251 248 available for use. This command can be only be executed by those with
252 249 super-user privileges.
253 250 .RE
254 251
255 252 .sp
256 253 .ne 2
257 254 .na
258 255 \fB\fBoffline\fR\fR
259 256 .ad
260 257 .br
261 258 .na
262 259 \fB\fBrewoffl\fR\fR
263 260 .ad
264 261 .RS 16n
265 262 Rewinds the tape and, if appropriate, takes the drive unit off-line by
266 263 unloading the tape.
267 264 .RE
268 265
269 266 .sp
270 267 .ne 2
271 268 .na
272 269 \fB\fBrelease\fR\fR
273 270 .ad
274 271 .RS 16n
275 272 Re-establishes the default behavior of releasing at close.
276 273 .RE
277 274
278 275 .sp
279 276 .ne 2
280 277 .na
281 278 \fB\fBreserve\fR\fR
282 279 .ad
283 280 .RS 16n
284 281 Allows the tape drive to remain reserved after closing the device. The drive
285 282 must then be explicitly released.
286 283 .RE
287 284
288 285 .sp
289 286 .ne 2
290 287 .na
291 288 \fB\fBretension\fR\fR
292 289 .ad
293 290 .RS 16n
294 291 Rewinds the cartridge tape completely, then winds it forward to the end of the
295 292 reel and back to beginning-of-tape to smooth out tape tension.
296 293 .RE
297 294
298 295 .sp
299 296 .ne 2
300 297 .na
301 298 \fB\fBrewind\fR\fR
302 299 .ad
303 300 .RS 16n
304 301 Rewinds the tape.
305 302 .RE
306 303
307 304 .sp
308 305 .ne 2
309 306 .na
310 307 \fB\fBstatus\fR\fR
311 308 .ad
312 309 .RS 16n
313 310 Prints status information about the tape unit.
↓ open down ↓ |
127 lines elided |
↑ open up ↑ |
314 311 .sp
315 312 Status information can include the sense key reported by the drive, the
316 313 residual and retries for the last operation, the current tape position reported
317 314 in file number, and the number of blocks from the beginning of that file. It
318 315 might also report that WORM media is loaded in that drive.
319 316 .RE
320 317
321 318 .RE
322 319
323 320 .SH EXIT STATUS
324 -.sp
325 321 .ne 2
326 322 .na
327 323 \fB\fB0\fR\fR
328 324 .ad
329 325 .RS 5n
330 326 All operations were successful.
331 327 .RE
332 328
333 329 .sp
334 330 .ne 2
335 331 .na
336 332 \fB\fB1\fR\fR
337 333 .ad
338 334 .RS 5n
339 335 Command was unrecognized or \fBmt\fR was unable to open the specified tape
340 336 drive.
341 337 .RE
342 338
↓ open down ↓ |
8 lines elided |
↑ open up ↑ |
343 339 .sp
344 340 .ne 2
345 341 .na
346 342 \fB\fB2\fR\fR
347 343 .ad
348 344 .RS 5n
349 345 An operation failed.
350 346 .RE
351 347
352 348 .SH FILES
353 -.sp
354 349 .ne 2
355 350 .na
356 351 \fB\fB/dev/rmt/*\fR\fR
357 352 .ad
358 353 .RS 14n
359 354 magnetic tape interface
360 355 .RE
361 356
362 357 .SH SEE ALSO
363 -.sp
364 358 .LP
365 359 \fBtar\fR(1), \fBtcopy\fR(1), \fBar.h\fR(3HEAD), \fBattributes\fR(5),
366 360 \fBmtio\fR(7I), \fBst\fR(7D)
367 361 .SH BUGS
368 -.sp
369 362 .LP
370 363 Not all devices support all options. Some options are hardware-dependent. Refer
371 364 to the corresponding device manual page.
372 365 .sp
373 366 .LP
374 367 \fBmt\fR is architecture sensitive. Heterogeneous operation (that is, SPARC to
375 368 x86 or the reverse) is not supported.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX