scsi-spin(8)
β¨ scsi-spin β¨
okay bestie, welcome to the scsi-spin page from the System Manager's Manual π this is the little tool that lets you decide when a SCSI device is awake and when it's napping. no cap.
πΈ NAME πΈ
scsi-spin β spin up and down a SCSI device π
π SYNOPSIS π
scsi-spin [-options...] [device]
π« DESCRIPTION π«
so basically, scsi-spin lets you, the user, manually spin up and spin down a SCSI device. that's it, that's the whole vibe. π
this is lowkey iconic if you've got noisy (or hot π₯) drives sitting in a machine you barely ever touch. key word: barely. this is not the same as that kernel patch floating around that auto-spins the drive down after some time β scsi-spin is completely manual, periodt. and spinning down a drive that's in use, especially the one holding the scsi-spin binary itself, is probably a really bad idea. ππ
and because the universe loves a safety net, scsi-spin tries to not let you do that: to avoid running into trouble with such cases, it verifies that the device you want to work on is not currently in use by scanning the mounted file system description file for a partition living on it, and it throws an error if that's the case. π«Ά
π OPTIONS π
-u,--upβ spin up device. wakey wakey β¬οΈ-d,--downβ spin down device. naptime β¬οΈ-e,--loejβ load or eject medium from drive (use along with-uor-d). teamwork makes the dream work π€-w,--wait=[n]β wait up to n seconds for the spin up/down command to complete. default is to return immediately after the command was sent to the device. either repeat-wn times or set n to define the time to wait before to report a timeout. β³-l,--lockβ prevent removal of medium from device. π hands off-L,--unlockβ allow removal of medium from device. π go ahead bestie-I,--oldioctlβ use legacy ioctl interface instead ofSG_IOto dialog with device (could not be supported on all platforms).-eand-ware not allowed with this option. π§ vintage behaviour fr-v,--verbose=[n]β verbose mode. either repeat-vor set n accordingly to increase verbosity.1is verbose,2is debug (dump SCSI commands and Sense buffer). π£οΈ the way it just tells you everything-f,--forceβ force spinning up/down the device even if it is in use. π€ no thoughts, just spin-n,--noactβ do nothing but check if the device is in use. all vibes, zero action π-p,--procβ use/proc/mountsinstead of/etc/mtabto 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 below. π
π¦ 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 /dev/scsi/<aliasname>.
β 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.
π SEE ALSO π
scsiinfo(8), sg_start(8), sd(4), proc(5),
π AUTHORS π
- Eric Delaunay <delaunay@debian.org>, 2001
- Rob Browning <rlb@cs.utexas.edu>, 1998
so yeah, that's the whole page. spin responsibly, don't spin down your own drive, and definitely don't spin down the drive that's literally running the binary you just typed. π
this page was serving 03 September 2001 energy** (that's the date stamp on it, fr fr)** β and it's part of the System Manager's Manual collection, so you know it's the real deal.** πβ¨ bye bestie, go forth and spin π
π¦ where this page comes from
- debian bookworm: scsitools 0.12-4
- debian trixie: scsitools 0.12-6
- ubuntu jammy: scsitools 0.12-3ubuntu1
- ubuntu noble: scsitools 0.12-4ubuntu1
- ubuntu questing: scsitools 0.13
- ubuntu resolute: scsitools 0.15
- ubuntu stonking: scsitools 0.15
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms