Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: wilson@dbit.com (John Wilson)
Subject: Re: Zip Drives with RT-11 and Help for Write Protect
Date: 1997/12/16	[thread overview]
Message-ID: <34960cf7.0@news.wizvax.net> (raw)
In-Reply-To: 674po3$nf8$1@nntp.ucs.ubc.ca


In article <674po3$nf8$1@nntp.ucs.ubc.ca>,
Tim Shoppa <shoppa@alph02.triumf.ca> wrote:
>It depends on what you call "the MSCP protocol".  Most SCSI host
>adapters - CMD, Emulex, Dilog, etc. - allow arbitrary SCSI command
>packets to be passed to devices from device drivers.

With the CMD controllers, I thought it was only the "/P" models that could
pass through raw SCSI commands?  I'd love to be wrong.

>I know that my RT-11 advice doesn't help you any in extracting the information
>from IOMEGA about how they implement write-protect and password
>protection.  If you've got the kilobucks, the definitive answer
>is to buy a SCSI bus analyzer, or to press a logic analyzer into
>service as one.

I've reverse engineered the Zip commands to set/reset the protection status,
haven't figured out how to detect the current status but hopefully it's not
that complicated.  They use opcodes defined as vendor-specific in the SCSI-2
spec so there's definitely no way to trick a controller that doesn't have a
pass-through command, into sending these commands as a result of normal MSCP
commands.

Zip-specific SCSI commands:

0C 00 00 00 NN 00	unprotect (from WP or NA state)
			NN is password length (up to 20h), 0 if none
			(No Access *requires* a password)
0C 02 00 00 00 00	write protect (no password)
0C 03 00 00 NN 00	write protect (with password)
0C 05 00 00 NN 00	read/write protect (always with password)
0C 0A 00 00 00 00	unprotect (from WP, no password) until eject
0C 0B 00 00 NN 00	unprotect (from WP w/password) until eject
0C 0D 00 00 NN 00	unprotect (from NA w/password) until eject

06 00 xx 00 NN 00	does something, maybe accesses private disk areas?
			I suspect this command is used to detect whether a
			disk is protected.
no idea what xx is (subfunction code?), NN seems to be length of data returned
(in bytes).

John Wilson
D Bit



  reply	other threads:[~1997-12-16  5:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-15  5:00 Zip Drives with RT-11 and Help for Write Protect Jerome Fine
1997-12-16  5:00 ` Tim Shoppa
1997-12-16  5:00   ` John Wilson [this message]
1997-12-16  5:00     ` Tim Shoppa
1997-12-16  5:00       ` John Wilson
1997-12-16  5:00         ` Tim Shoppa
1997-12-16  5:00           ` John Wilson
1997-12-17  5:00         ` Bob Schor
1997-12-20  5:00 ` St. Suika Roberts
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox