In article <lsok4r$1uh$
2...@Iltempo.Update.UU.SE>,
IIRC the RP04/RP05/RP06 could do a spin down on software command.
If it's not true I blame the 11/780 exhaust fans from destroying my
hearing and my brains back in the '80's.
Just did a google search in elinks (not running X at the moment) and it
pulled up the sg_start command under Ubuntu which mentions both a scsi
start and scsi stop commands.
I remember the walk to the VAX to reload the TU77's after a mistake...
don't use the rewind and offline stuff when you just want rewind.
125 ips and unload can happen in the blink of a carriage return.
Looks like they're both valid.
Bill
SG_START(8) SG_3 UTILS SG_START(8)
-
NAME
sg_start - send SCSI START STOP UNIT command to start, stop, load
or - eject medium
SYNOPSIS
sg_start [0] [1] [--eject] [--help] [--fl=FL] [--immed] [--load]
[--loej] [--mod=PC MOD] [--noflush] [--pc=PC] [--start] [--stop]
[--verbose] [--version] DEVICE
sg_start [--eject] [--fl=FL] [-i] [--imm=0|1] [--load] [--loej]
[--mod=PC MOD] [--noflush] [--pc=PC] [--start] [--stop] [-v] [-V] [0|1]
DEVICE
------
DESCRIPTION
sg_start sends a SCSI START STOP UNIT command to the DEVICE with the
selected options. The most used options are --stop to spin down a disk
and --start to spin up a disk. Using --start on a disk that is already
spinning is harmless. There is also finer grain control with "power
condition": active, idle or standby. This is set with the --pc=PC
option. In some contexts the "stop" state can be considered an addi-
tional power condition.
Devices that contain removable media such as cd/dvds can use the --loej
option to load the medium when used in conjunction with --start (i.e.
load medium then spin up). Alternatively --loej may be used to eject
the medium when used in conjunction with --stop (i.e. spin down then
eject medium). More simply, the loading or ejecting of a removable
medium can be requested with the --load or --eject’ option.
If no option or argument is given then a --start is assumed; as the
utility’s name suggests.
This utility supports two command line syntaxes, the preferred one is
shown first in the synopsis and explained in this section. A later sec-
tion on the old command line syntax outlines the second group of
options.
OPTIONS
Arguments to long options are mandatory for short options as well.
0 same action as --stop.
1 same action as --start.
-e, --eject
stop the medium and eject it from the drive. Only appropriate
for a device with removable medium. Might be ignored (pre-
vented), see below.
-h, --help
print out the usage message then exit.
-f, --fl=FL
--
sets the format layer number for the disc to "jump" to (defined
in MMC-5). Values of FL can be 0 to 3. When this option is cho-
sen, the FL, LoEj and Start bits are set in the cdb as required
by MMC-5; thus the user does not need to set the --start and/or
--load options.
-i, --immed
sets the IMM bit on the START STOP UNIT command so this utility
will return immediately and not wait for the media to complete
the requested action. The default is to wait until the media to
complete the requested action before returning.
-l, --load
load the medium in the drive and start it. Only appropriate for
a removable medium.
-L, --loej
sets the LOEJ bit on the START STOP UNIT command. This loads the
media when the unit is started or eject it when the unit is
stopped (i.e. works in conjunction with START bit in cdb). This
option is ignored if ’pc > 0’.
Default is off (i.e. don’t attempt to load or eject
media).
If a start/start indication is not given (i.e. neither --start
nor --stop) and this option is given then a load and start
action is assumed.
-m, --mod=PC MOD
where PC MOD is the ’power condition modifier’ value. 0 to 15
(inclusive) are valid and 0 is the default. This ’power condi-
tion modifier’ field in the cdb was added after sbc3r13.
-n, --noflush
do not perform a flush to media (e.g. like SYNCHRONIZE CACHE
does) before a variant of this utility that limits access to the
media. Using the --stop option is an example of something that
limits access to the media. This ’noflush’ field in the cdb was
added after sbc3r13.
-O, --old
switch to older style options.
-p, --pc=PC
where PC is the ’power conditions’ value. 0 to 15 (inclusive)
are valid. Default value is 0. When ’--pc=0’ then --eject,
--load, --loej, --start and --stop are active. Some common val-
ues are 1 for the "active" power condition (SBC); 2 for the idle
power condition; 3 for the standby power condition; 5 for sleep
power condition (MMC); 7 for LU CONTROL (SBC), 0xa (decimal 10)
for FORCE IDLE 0 (SBC) and 0xb (decimal 11) for FORCE STANDBY 0
(SBC). See recent SBC-3, MMC-5 and SAS drafts at
www.t10.org for
more information.
-s, --start
start (spin-up) the device. This sets the START bit in the cdb.
Using this option on an already started device is harmless. In
the absence of other options, this option defaults (i.e. set the
START cdb bit).
-S, --stop
stop (spin-down) the device. This clears the START bit in the
cdb.
-v, --verbose
increase the level of verbosity. Can be used multiple times.
-V, --version
print out version string then exit.
NOTES
To avoid confusion, only one of 0, 1 --eject, --load, --start and
--stop should be given.
The SCSI TEST UNIT READY command can be used to find out whether a
device is ready to transfer data. If rotating media is stopped or still
coming up to speed, then the TEST UNIT READY command will yield a "not
ready" sense key and an more informative additional sense code. See the
sg turs utility.
In the 2.4 series of Linux kernels the DEVICE must be a SCSI generic
(sg) device. In the 2.6 series block devices (e.g. SCSI disks and DVD
drives) can also be specified. For example "sg_start 0 /dev/sda" will
work in the 2.6 series kernels.
EXIT STATUS
The exit status of sg_start is 0 when it is successful. Otherwise see
the sg3 utils(8) man page.
<snipped the -old versions of the command that are still supported...>
sg3 utils-1.26 March 2008 SG START(8)
- -
--
--
Digital had it then. Don't you wish you could buy it now!
pechter-at-pechter.dyndns.org http://xkcd.com/705/