Imported Debian patch 1.3.11-1
[debian/mtx] / tapeinfo.1
1 .\" tapeinfo.1  Document copyright 2000 Eric Lee Green
2 .\"  Program Copyright 2000 Eric Lee Green <eric@badtux.org>
3 .\"
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\"
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
13 .\"
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 .\" GNU General Public License for more details.
18 .\"
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, write to the Free
21 .\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
22 .\" USA.
23 .\"
24 .TH TAPEINFO 1 TAPEINFO1.0
25 .SH NAME
26 tapeinfo \- report SCSI tape device info
27 .SH SYNOPSIS
28 tapeinfo -f <scsi-generic-device>
29 .SH DESCRIPTION
30 The 
31 .B tapeinfo
32 command reads various information from SCSI tape drives that is not
33 generally available via most vendors' tape drivers. It issues raw
34 commands directly to the tape drive, using either the operating system's
35 SCSI generic device ( e.g. /dev/sg0 on Linux, /dev/pass0 on FreeBSD) or
36 the raw SCSI I/O ioctl on a tape device on some operating systems. 
37 .P
38 One good time to use 'tapeinfo' is immediately after a tape i/o operation has
39 failed. On tape drives that support HP's 'tapealert' API, 'tapeinfo' will
40 report a more exact description of what went wrong. 
41 .P
42 Do be aware that 'tapeinfo' is not a substitute for your operating system's
43 own 'mt' or similar tape driver control program. It is intended to supplement,
44 not replace, programs like 'mt' that access your operating system's tape
45 driver in order to report or set information. 
46 .SH OPTIONS
47 The first argument, given following
48 .B -f
49 , is the SCSI generic device corresponding to your tape drive.
50 Consult your operating system's documentation for more information (for
51 example, under Linux these are generally start at /dev/sg0 
52 under FreeBSD these start at /dev/pass0).
53 .P
54 Under FreeBSD, 'camcontrol devlist' will tell you what SCSI devices you
55 have, along with which 'pass' device controls them. Under Linux,
56 "cat /proc/scsi/scsi" will tell you what SCSI devices you have.
57
58 .SH BUGS AND LIMITATIONS
59 .P
60 This program has only been tested on Linux with a limited number of
61 tape drives (HP DDS4, Seagate AIT). 
62 .P
63 .SH AVAILABILITY
64 .B tapeinfo
65 is currently being maintained by Robert Nelson <robertnelson@users.sourceforge.net> 
66 as part of the 'mtx' suite of programs. The 'mtx' home page is 
67 http://mtx.sourceforge.net and the actual code is currently available there and via 
68 SVN from http://sourceforge.net/projects/mtx. 
69
70 .SH SEE ALSO
71 .BR mt (1), mtx (1), scsitape (1), scsieject (1), loaderinfo (1)