Provided by: scsitools_0.8-2_i386
scsi-spin - spin up and down a SCSI device
scsi-spin [-options...] [device]
scsi-spin let the user to manually spin up and down a SCSI device.
This command is particularly useful if you’ve got noisy (or hot) drives
in a machine that you rarely need to access. This is not the same as
the kernel patch that’s floating around that will automatically spin
down the drive after some time. scsi-spin is completely manual, and
spinning down a drive that’s in use, especially the one containing the
scsi-spin binary, is probably a really bad idea.
To avoid running in trouble with such cases, scsi-spin verifies that
the device to work on is not currently in use by scanning the mounted
file system description file for a partition living on it and issue an
error if this the case.
spin up device.
spin down device.
do nothing but check if the device is in use.
force spinning up/down the device even if it is in use.
use /proc/mounts instead of /etc/mtab to determine if the device
is in use or not.
device the device is any name in the filesystem which points to a SCSI
block device (sd, scd) or generic SCSI device (sg). See section
SCSI devices naming convention
Old kernel naming convention
It is typically /dev/sd[a-z] , /dev/scd[0-9]* or /dev/sg[0-9]*.
scsidev naming convention
It is typically /dev/scsi/s[rdg]h[0-9]*-e????c?i?l? or
devfs naming convention
It is typically /dev/scsi/host[0-9]/bus[0-9]/target[0-9]/lun[0-9]/disc
(same for cd and generic devices) or short name
/dev/sd/c[0-9]b[0-9]t[0-9]u[0-9] when devfsd "new compatibility
entries" naming scheme is enabled.
scsiinfo(8), sd(4), proc(5),
Eric Delaunay <firstname.lastname@example.org>, 2001
Rob Browning <email@example.com>, 1998
03 September 2001 scsi-spin(8)