1
.TH scsi-spin 8 "03 September 2001"
3
scsi-spin \- spin up and down a SCSI device
5
.BI "scsi-spin [-" "options..." "] [" device ]
8
let the user to manually spin up and down a SCSI device.
10
This command is particularly useful if you've got noisy (or hot)
11
drives in a machine that you rarely need to access. This is
13
the same as the kernel patch that's floating around that will
14
automatically spin down the drive after some time.
16
is completely manual, and spinning down a drive that's in use, especially
17
the one containing the scsi-spin binary, is probably a
21
To avoid running in trouble with such cases,
23
verifies that the device to work on is not currently in use by scanning the
24
mounted file system description file for a partition living on it and issue an
25
error if this the case.
36
load or eject medium from drive (use along with
45
seconds for the spin up/down command to complete. Default is to return
46
immediately after the command was sent to the device.
51
to define the time to wait before to report a timeout.
54
prevent removal of medium from device.
57
allow removal of medium from device.
60
use legacy ioctl interface instead of SG_IO to dialog with device
61
(could not be supported on all platforms).
65
are not allowed with this option.
68
verbose mode. Either repeat
72
accordingly to increase verbosity. 1 is verbose, 2 is debug (dump SCSI
73
commands and Sense buffer).
76
force spinning up/down the device even if it is in use.
79
do nothing but check if the device is in use.
83
use /proc/mounts instead of /etc/mtab to determine if the device is in use or
87
the device is any name in the filesystem which points to a SCSI block device
88
(sd, scd) or generic SCSI device (sg). See section below.
90
.SH SCSI devices naming convention
91
.SS Old kernel naming convention
99
.SS scsidev naming convention
101
.I /dev/scsi/s[rdg]h[0-9]*-e????c?i?l?
103
.I /dev/scsi/<aliasname>.
105
.SS devfs naming convention
107
/dev/scsi/host[0-9]/bus[0-9]/target[0-9]/lun[0-9]/disc (same for cd and generic
108
devices) or short name /dev/sd/c[0-9]b[0-9]t[0-9]u[0-9] when
110
"new compatibility entries" naming scheme is enabled.
119
Eric Delaunay <delaunay@debian.org>, 2001
121
Rob Browning <rlb@cs.utexas.edu>, 1998