home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!portal!cup.portal.com!DrBob
- From: DrBob@cup.portal.com (Robert A Rethemeyer)
- Newsgroups: comp.sys.amiga.hardware
- Subject: Re: SCSI Eject Command?
- Message-ID: <74495@cup.portal.com>
- Date: Thu, 28 Jan 93 02:02:23 PST
- Organization: The Portal System (TM)
- References: <1993Jan24.030600.9590@mnemosyne.cs.du.edu>
- Lines: 30
-
-
- Michael McCulloch writes...
- >I have a friend who just purchased a PLI 2.88 MB SCSI-based floppy
- >drive. Formatting, reading, and writing are working just fine, however,
- >the drive has no manual eject button.
- >
- >Does anyone know exactly how to add a script or modify a driver to
- >provide the eject command in software? Is there a standard removable
- >media eject command for SCSI devices?
-
- There probably is a standard command, but it would help to have the
- drive docs to be sure of what it is. My guess is that SCSI operation
- code 0x1B would do it. For tape drives, this code is "Load/Unload",
- and for disks it is "Start/Stop". For tapes it will cause the cart
- to be ejected when unload is specified. The SCSI-floppy may also
- interpret it that way.
-
- The complete command format is (in hex): 1B 01 00 00 XX 00
- where XX should be 00 to unload (eject), or 01 to load.
- The 01 in the 2nd byte releases the SCSI bus immediately (a good idea).
-
- As for a program to do this, a simple program to send the command
- via the scsi-direct interface would do it. I recall that one of
- the CBM folks whipped one up and posted it on the net. I don't
- think I have a copy of it, maybe someone else (or the CBM fellow) does.
-
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Bob Rethemeyer //"A bug crossed a learned paper.
- DrBob@cup.portal.com -or- // Might not we too be crossing things
- ..!sun!portal!cup.portal.com!DrBob // We cannot read?" - Francis Schaeffer
-