home *** CD-ROM | disk | FTP | other *** search
- Two files in this drawer are due to Steve Clack. They can be used to
- remove a device completely using BenchTrash, i.e. dismount the volume and
- the device handler itself. They DO NOT EJECT volumes!
-
- Another utility - Park - is included and can be used to park HDs with
- BenchTrash.
-
-
- To install these files, copy "RemoveDevice" to S: and "ResolveDeviceName"
- to C:. "Park" should go to C: and should probably be made resident in the
- startup-sequence - simply to be able restart your HD since C: won't be
- available on a parked unit. More on that below.
- The "S" protection bit of "RemoveDevice" must be set manually, since
- - due to a bug in LHA - it won't be set in this archive. A command line like
-
- protect S:RemoveDevice s add
-
- should do this job.
-
- Specify the script "RemoveDevice" as an eject command to BenchTrash, with
- the device name as argument, for those drives you want to quit manually
- by "drag and drop". Consult the "BenchTrash.guide" itself on how to do this,
- see the "Configurations" chapter.
-
- The "ResolveDeviceName" program, also by Steve, determinates the name of a
- volume, inserted to a specified device. It's needed for the script to work,
- but can be used for other purposes as well.
-
- Thanks, Steve, for this support. For copyright reasons (i.e. if you want to
- publish this archive on something different than aminet and the aminet CDs),
- ask him as well, since these are his programs.
-
-
- Park uses the following syntax:
-
- Park HANDLER,DEVICE/K,UNIT/N,FLAGS/N,SCSI/S,ON=START/S:
-
- HANDLER is the name of the drive to be stopped, this can be something like
- "DH0:" or "Workbench:". Note that all partitions on the same physical unit
- will be unaccessible as well. Since even C: will be unaccessible on a parked
- unit, "Park" can be made resident - to be able to restart this unit later on.
- The "p" bit might be cleared in the lha archive you got, so you need to set
- this bit by hand with
-
- resident Park p add
-
- and - later on - add "Park" to the resident list with
-
- resident C:Park
-
- probably by adding this line to your startup-sequence or the user-startup.
-
-
- You can alternatively specify the HD to be parked by its exec-device name,
- the unit and optionally the flags - the default flag value 0 is however good
- enough in almost all cases. The command
-
- Park DEVICE scsi.device UNIT 1
-
- will park the HD with ID 1 connected to the "scsi.device".
-
-
- The flag "SCSI" should be given if the device driver is a SCSI host adapter
- or an exec device that emulates the SCSI Start/Stop commands. "Park" tries
- then to send SCSI-specific commands to park or restart the device. If "SCSI"
- is NOT given, "Park" will try to send the command "CMD_STOP" or "CMD_START".
-
- Note that most SCSI device drivers DO NOT support these two commands, so
- won't work without the "SCSI" command line switch.
-
-
- If the flag "ON" or "START" is present, "Park" tries to restart a parked
- unit.
-
-
- Examples:
-
- The following line in your BenchTrash ToolTypes will park all "oktagon"
- units dropped on "BenchTrash":
-
- EJECT oktagon.?/Park DEVICE=%S UNIT=%N SCSI
-
- The command line switch "SCSI" is actually not required for the "oktagon",
- since it supports both "CMD_START/STOP" AND the "HD_SCSICMD".
-
-
-
- Thomas,
- February 1998
-
-