From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,1e057ff2ebf35f7c X-Google-Attributes: gidf7344,public X-Google-Thread: fdd80,1e057ff2ebf35f7c X-Google-Attributes: gidfdd80,public X-Google-Thread: 10cebf,1e057ff2ebf35f7c X-Google-Attributes: gid10cebf,public X-Google-Thread: ffc31,1e057ff2ebf35f7c X-Google-Attributes: gidffc31,public X-Google-Thread: 1164f8,1e057ff2ebf35f7c X-Google-Attributes: gid1164f8,public From: wilson@dbit.com (John Wilson) Subject: Re: Zip Drives with RT-11 and Help for Write Protect Date: 1997/12/16 Message-ID: <34960cf7.0@news.wizvax.net>#1/1 X-Deja-AN: 298607459 References: <3495B6B6.ADA8DD5@idirect.com> <674po3$nf8$1@nntp.ucs.ubc.ca> Organization: D Bit, Troy, NY Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec,comp.sys.dec.micro,comp.os.vms In article <674po3$nf8$1@nntp.ucs.ubc.ca>, Tim Shoppa 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