1 .\" scsieject.1 Document Copyright 2007 Robert Nelson
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" The GNU General Public License's references to "object code"
9 .\" and "executables" are to be interpreted as the output of any
10 .\" document formatting or typesetting system, including
11 .\" intermediate and printed output.
13 .\" This manual is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 .\" GNU General Public License for more details.
18 .\" You should have received a copy of the GNU General Public
19 .\" License along with this manual; if not, write to the Free
20 .\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
23 .TH scsieject 1 scsieject1.0
25 scsieject \- control SCSI tape devices
27 scsieject [-f <scsi-generic-device>] commands
31 command controls SCSI devices in a platform-independent
32 manner. As long as 'mtx' works on the platform, so does 'scsieject'.
34 The first argument, given following
36 , is the SCSI generic device corresponding to your tape drive.
37 Consult your operating system's documentation for more information (for
38 example, under Linux these are generally /dev/sg0 through /dev/sg15,
39 under FreeBSD these are /dev/pass0 through /dev/passX. Under Solaris
40 this is usually the same as your tape drive (Solaris has a SCSI passthrough
41 ioctl). You can set the STAPE or TAPE environment variable rather
47 Load the medium into the drive. When this command is issued to a CD/DVD drive
48 and the tray is extended the tray will be retracted if the drive is capable of it.
52 Unload the medium from the drive (also known as eject). When this command is issued
53 to a CD/DVD drive or a tape drive the media will be ejected if the device supports it.
57 Start the device. Some devices require a start command after a media changer has
58 loaded new media into the device.
62 Stop the device. Some devices require a stop command prior to unloading the medium
63 from the device when using a media changer.
67 Lock the device. Locks the device so that the medium cannot be removed manually.
71 Unlock the device. Unlocks the device so that the medium can be removed manually.
74 This program was written by Robert Nelson <robertnelson@users.sourceforge.net>
75 based on the scsitape program written by Eric Lee Green <eric@badtux.org>.
76 Major portions of the 'mtxl.c' library used herein were written by
82 .B cat /proc/scsi/scsi
83 will tell you what SCSI devices you have.
84 You can then refer to them as
87 etc. by the order they
92 will tell you what SCSI devices you
93 have, along with which
97 Under Solaris 7 and 8,
98 .B /usr/sbin/devfsadm -C
99 will clean up your /devices directory. Then
100 .B find /devices -name 'st@*' -print
101 will return a list of all tape drives. /dev on Solaris is apparently only
102 of historical interest.
104 .SH BUGS AND LIMITATIONS
105 There are no known bugs or limitations.
110 is currently being maintained by Robert Nelson <robertnelson@users.sourceforge.net>
111 as part of the 'mtx' suite of programs. The 'mtx' home page is
112 http://mtx.sourceforge.net and the actual code is currently available there and via
113 SVN from http://sourceforge.net/projects/mtx.
116 .BR loaderinfo (1), tapeinfo (1), mtx (1)