Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Zip Drives with RT-11 and Help for Write Protect
@ 1997-12-15  5:00 Jerome Fine
  1997-12-16  5:00 ` Tim Shoppa
  1997-12-20  5:00 ` St. Suika Roberts
  0 siblings, 2 replies; 9+ messages in thread
From: Jerome Fine @ 1997-12-15  5:00 UTC (permalink / raw)



This information is directed at anyone who wishes to use
a removable media device of medium capacity (100 MBytes)
for transfer at hard disk drive speeds - well not the actual
media via snail mail, but the information after the cartridge
is inserted into the drive.

The information will probably also apply to Jazz drives by
Iomega, but I have not had the opportunity to test the hardware.

A Zip drive cartridge can have a file structure of RT-11 and
still be recognized on a PC under both MS-DOS mode and
Windows 95.  (I have not tested this, but I presume the same
thing would apply to RSTS/E and RSX-11).  On this hardware,
I used the host adapter supplied by Iomega that came with the
Zip SCSI insider (10714) disk drive.  Since the hardware
connection is SCSI, I was also able to use PUTR by John Wilson
to MOUNT the Zip cartridge and do normal PUTR commands
which would reference the files that came from an RT-11 system
on a PDP-11.  I don't want to make this note too long, so if
you are interested in any details that I have omitted, please e-mail.

On the PDP-11 side, I recently helped some friends move from
RD53s to SCSI hard drives and a Zip drive for removable media.
The two host adapters that were tried were from CMD - first a
CQD 200/M and next a CQD 220 A/TM.  Both were successful
in referencing the Zip drive (obviously the SCSI hard drive was
not in question).  There are some minor differences in booting
the system when a dual 11/73 is used and DEC boot ROMs
are the source of the boot code (between the two CQD boards).
However, once that hurdle is overcome, both of the CMD
host adapters functioned in a satisfactory manner.  I also think
that almost any host adapter would be able to handle the Zip
drive since it is just another SCSI-2 device.  I also had the same
two drives (SCSI hard drive and Zip drive) on the Iomaga
SCSI host adapter on the PC.

NotE that the capacity of the Zip cartridge is exactly 65536 * 3
blocks (3 partitions under RT-11).

One feature that is very functional is the ability to  "WRITE  PROTECT"
the Zip cartridge.  Even  "READ  PROTECT"  is available.  However,
this feature is done via software and  IS  AVAILABLE  ONLY  VIA
THE  PC at the present time (and probably a MAC).  The feature
functions properly.  It is just not available at present on an actual PDP-11
using a CMD host adapter.

I have tried to resolve this last aspect.  I do not consider this lack directly
on the PDP-11 to be a major problem due to the availability of a PC -
in most cases, must more available than the PDP-11.  While I have
contacted both Iomega and CMD about this aspect of not being able
to implement the  "WRITE  PROTECT"  feature under RT-11, there
has been neither an official response nor official interest, although
everyone a discussed the matter with at both companies were
extremely helpful and cordial.  First, we don't even know if the
MSCP protocol which is used under RT-11 to access the ZIP
drive and cartridge could handle that aspect.  Second, Iomega
may have to consider the details as a company trade secret.
In any case, if anyone out there might be able to shed some light
on how this might be implemented under the MSCP protocol
on RT-11, I would be willing to make the code changes to the
DU.MAC device driver source file.

In summary, Zip drives are able to serve as an exchange media
of medium size (100 MBytes) between a PC and a PDP-11
and have been tested with an RT-11 file structure.  They can
also be used to simply store data on a removable media for
the PDP-11 which is sufficient in size to be much more useful
that TK50 tapes and much, much faster.  The old drawback
on a PDP-11 might be the cost of a host adapter.  Old ones
are in short supply and new ones approach $ US 1500.

I hope the above will be of interest to RT-11 users in particular
and PDP-11 users in general.

If anyone wishes to accept the challenge of making the  "WRITE
PROTECT"  functions available under RT-11, that would be a
great bonus.  We can never underestimate whether some company
is interested enough in RT-11 to support this (for the RT-11
world) new and useful size in removable media.

Please contact me if you have any questions.

Sincerely yours,

Jerome Fine
RT-11/TSX-PLUS  User/Addict





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Zip Drives with RT-11 and Help for Write Protect
  1997-12-16  5:00         ` Tim Shoppa
@ 1997-12-16  5:00           ` John Wilson
  0 siblings, 0 replies; 9+ messages in thread
From: John Wilson @ 1997-12-16  5:00 UTC (permalink / raw)



In article <676u5p$5nu$1@nntp.ucs.ubc.ca>,
Tim Shoppa <shoppa@alph02.triumf.ca> wrote:
>Yep, Yuck.  I got it to work, but it is not something I'm proud of!

I don't see why not -- getting the hardware to do what you want, however
grudgingly, is always a win!

John Wilson
D Bit



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Zip Drives with RT-11 and Help for Write Protect
  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
  1997-12-20  5:00 ` St. Suika Roberts
  1 sibling, 1 reply; 9+ messages in thread
From: Tim Shoppa @ 1997-12-16  5:00 UTC (permalink / raw)



In article <3495B6B6.ADA8DD5@idirect.com>,
Jerome Fine  <jhfine@idirect.com> wrote:
> First, we don't even know if the
>MSCP protocol which is used under RT-11 to access the ZIP
>drive and cartridge could handle that aspect.

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.  One of
the difficulties is that each manufacturer implements this
feature in a different way.  Usually this feature is undocumented
or available only using special drivers or sometimes only available
from "configuration" mode.

For those controllers which do allow arbitrary commands to be passed
by issuing special MSCP packets, the place you want to look in the
RT-11 docs is the Software Support Manual.  In my 5.5 doc set, it's
page 10-47 which documents .SPFUN 371.  You have to know a lot
more about MSCP than the RT-11 manuals tell you, but basically
you can build any MSCP command you feel like and give it to the
device.  I know that CMD has extensions to the MSCP protocol to
support arbitrary SCSI command packets via MSCP, as they have
special tools available for VMS to allow you to low-level-format
SCSI drives while the system is running.

>In any case, if anyone out there might be able to shed some light
>on how this might be implemented under the MSCP protocol
>on RT-11, I would be willing to make the code changes to the
>DU.MAC device driver source file.

Again, look in your documents - the RT-11 end of it is all there
for you to see.  There's no need to make any changes to DU.MAC;
just use the documented features.

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.

Tim. (shoppa@triumf.ca)



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Zip Drives with RT-11 and Help for Write Protect
  1997-12-16  5:00 ` Tim Shoppa
@ 1997-12-16  5:00   ` John Wilson
  1997-12-16  5:00     ` Tim Shoppa
  0 siblings, 1 reply; 9+ messages in thread
From: John Wilson @ 1997-12-16  5:00 UTC (permalink / raw)



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



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Zip Drives with RT-11 and Help for Write Protect
  1997-12-16  5:00   ` John Wilson
@ 1997-12-16  5:00     ` Tim Shoppa
  1997-12-16  5:00       ` John Wilson
  0 siblings, 1 reply; 9+ messages in thread
From: Tim Shoppa @ 1997-12-16  5:00 UTC (permalink / raw)



In article <34960cf7.0@news.wizvax.net>, John Wilson <wilson@dbit.com> wrote:
>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.

AFAIK, all CMD controllers offer some way of passing through raw SCSI
commands, though with some the only way I know how to do it is to drop
into "configuration" mode, which effectively takes the controller
off-line to any OS that might be running.  With some OS's - like RT11 -
you can gracefully recover from a MSCP controller that's gone offline.
Other OS's are very ungraceful about this condition.

In any event, I agree with your point John - that any such pass-through
system is going to be vendor specific, and in some cases model-specific
or firmware-specific.  It'd be a nightmare to support or maintain!

Getting back to Jerry's original idea, I don't like the concept of
software-controlled write protection.  I want a button on the front
of the drive - or a tab on the drive cartridge - that can be physically
set!

Tim. (shoppa@triumf.ca)



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Zip Drives with RT-11 and Help for Write Protect
  1997-12-16  5:00     ` Tim Shoppa
@ 1997-12-16  5:00       ` John Wilson
  1997-12-16  5:00         ` Tim Shoppa
  1997-12-17  5:00         ` Bob Schor
  0 siblings, 2 replies; 9+ messages in thread
From: John Wilson @ 1997-12-16  5:00 UTC (permalink / raw)



In article <676clf$n6s$1@nntp.ucs.ubc.ca>,
Tim Shoppa <shoppa@alph02.triumf.ca> wrote:
>AFAIK, all CMD controllers offer some way of passing through raw SCSI
>commands, though with some the only way I know how to do it is to drop
>into "configuration" mode, which effectively takes the controller
>off-line to any OS that might be running.  With some OS's - like RT11 -
>you can gracefully recover from a MSCP controller that's gone offline.
>Other OS's are very ungraceful about this condition.

Sounds painful but it's better than I was thinking.  By "configuration
mode", do you mean a different programming interface, or the 123456/100
thing where it stuffs the menu program into PDP-11 memory and you enter
commands by hand?  If it's the latter, maybe there's some way to trick
that into working under live RT?  I assume the program beamed into
memory is really just a simple terminal program that talks to the
on-board micro (using some secret method) as an alternative to the on-board
serial port, if so it's probably simple and could easily be replaced (after
loading it anyway to get the controller to switch states) with a program
that automatically pumps in the commands and reads the responses.  Yuck!

>Getting back to Jerry's original idea, I don't like the concept of
>software-controlled write protection.  I want a button on the front
>of the drive - or a tab on the drive cartridge - that can be physically
>set!

Yeah it's an ugly nasty hack, but this is how Iomega chose to do it.
Presumably Windows Weenies think that wading through a couple of
levels of menus so you can click a button to WP the disk, is preferable
to taking your hand off the mouse and flipping a switch on the drive.
I'd much rather point and click using a real finger and a real button...
Drag and drop doesn't work so well with SCSI drives, gotta tie up these
cables on the floor so it'll stop happening!

John Wilson
D Bit



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Zip Drives with RT-11 and Help for Write Protect
  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
  1 sibling, 1 reply; 9+ messages in thread
From: Tim Shoppa @ 1997-12-16  5:00 UTC (permalink / raw)



In article <3496dde9.0@news.wizvax.net>, John Wilson <wilson@dbit.com> wrote:
>In article <676clf$n6s$1@nntp.ucs.ubc.ca>,
>Tim Shoppa <shoppa@alph02.triumf.ca> wrote:
>>AFAIK, all CMD controllers offer some way of passing through raw SCSI
>>commands, though with some the only way I know how to do it is to drop
>>into "configuration" mode, which effectively takes the controller
>>off-line to any OS that might be running.  With some OS's - like RT11 -
>>you can gracefully recover from a MSCP controller that's gone offline.
>>Other OS's are very ungraceful about this condition.
>
>Sounds painful but it's better than I was thinking.  By "configuration
>mode", do you mean a different programming interface, or the 123456/100
>thing where it stuffs the menu program into PDP-11 memory and you enter
>commands by hand?  If it's the latter, maybe there's some way to trick
>that into working under live RT?

Yes, it is the latter.  If you disassemble the program that it stuffs
into memory, you'll discover how to send configuration commands without
actually using the console.

>  I assume the program beamed into
>memory is really just a simple terminal program that talks to the
>on-board micro (using some secret method) as an alternative to the on-board
>serial port, if so it's probably simple and could easily be replaced (after
>loading it anyway to get the controller to switch states) with a program
>that automatically pumps in the commands and reads the responses.  Yuck!

Yep, Yuck.  I got it to work, but it is not something I'm proud of!

Tim.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Zip Drives with RT-11 and Help for Write Protect
  1997-12-16  5:00       ` John Wilson
  1997-12-16  5:00         ` Tim Shoppa
@ 1997-12-17  5:00         ` Bob Schor
  1 sibling, 0 replies; 9+ messages in thread
From: Bob Schor @ 1997-12-17  5:00 UTC (permalink / raw)



John Wilson wrote:

> >Getting back to Jerry's original idea, I don't like the concept of
> >software-controlled write protection.  I want a button on the front
> >of the drive - or a tab on the drive cartridge - that can be
> physically
> >set!
>
> Yeah it's an ugly nasty hack, but this is how Iomega chose to do it.
> Presumably Windows Weenies think that wading through a couple of
> levels of menus so you can click a button to WP the disk, is
> preferable
> to taking your hand off the mouse and flipping a switch on the drive.
> I'd much rather point and click using a real finger and a real
> button...
> Drag and drop doesn't work so well with SCSI drives, gotta tie up
> these
> cables on the floor so it'll stop happening!

     It seems to me that each method has its virtues.  The advantage of
the hardware
method are obvious.  The advantage of the software method is that it
allows you to
make a Zip-ROM to safely distribute software, or archive stuff you
REALLY do not
want erased ...  Sort of like the write-protect tab on a floppy, but
harder to remove ...

BS (no pun intended)




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Zip Drives with RT-11 and Help for Write Protect
  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-20  5:00 ` St. Suika Roberts
  1 sibling, 0 replies; 9+ messages in thread
From: St. Suika Roberts @ 1997-12-20  5:00 UTC (permalink / raw)



I know of two different Linux C programs that implement the iomega
software write protect:
scsifmt.c and jaztool (which is an extrapolation on the first)
I'll append the first after my .sig, since it's shorter.

Mail me or search your local linux archive for the second if you want
it.

HTH,
	Suika  (yeah, I know this doesn't help much with controller
	problems, but it does have a table for decoding the status
	. . . )
-- 
Razors pain you;
Rivers are damp;
Acids stain you;                  wroberts@tvi.cc.nm.us
And drugs cause cramp.
Guns aren't lawful;
Nooses give;
Gas smells awful;
You might as well live.
                -- Dorothy Parker

------------------------------ cut here ------------------------------
/* scsifmt.c -- scsifmt for Iomega ZIP drives running with Linux */

/*  (c) 1996   Alex Butcher (Alex.Butcher@bris.ac.uk) based on the
               work of Grant R. Guenther (grant@torque.net) and
               Itai Nahshon. FORMAT_UNIT mechanism taken from
               FreeBSD's scsifmt.sh. */

/* Compile with: gcc -O2 -o scsifmt scsifmt.c */               
               

/* This program uses SCSI_IOCTL_SEND_COMMAND to deliver the FORMAT_UNIT
   (04h) command to an Iomega ZIP drive. This command should be run before
   running mkfs on a ZIP disk. It will erase ALL information on the disk.
   
   The program attempts to ensure that the SCSI device is actually a ZIP drive
   and that it is not currently mounted.  The checks are *not* foolproof - but
   only root can do these things anyway ! The checks can be disabled by
   commenting #define CHECKZIP. This will be necessary to use this program
   with other kinds of drive (e.g. Iomega JAZ, Syquest etc.), unless you
   alter the comparison string in is_zip(). I would be grateful if you
   could mail alternative _REMOVABLE_ media identifiers to me so that I
   might include them in any future revisions of scsifmt.
   

   Usage:  scsifmt <dev> fmt

   where <dev> must be the full name of a scsi device, eg: /dev/sdc, note
   that you must not specify a partition on the device. 'fmt' must be the
   second parameter (This is an attempt at last minute idiot-proofing!)


   If the disk is in a write protected mode, you will need to use ziptool
   to write enable the disk.

   NB:  The ZIP drive also supports a protection mode 5, under which the
   disk is neither readable nor writable until it is unlocked with a
   password.  This program cannot format a disk in mode 5 - as Linux is
   unable to open a disk that is not readable.  To support this feature
   would require patching the Linux kernel.

   When FORMAT_UNIT finishes, scsifmt ejects the disk to ensure that Linux
   does not use the partition table from before the format.
*/

#include <stdio.h>
#include <mntent.h>
#include <unistd.h>

/* this is ugly and should not be here - but the SCSI include files are
   moving around ...
*/

#define SCSI_IOCTL_SEND_COMMAND 1
#define PAUSE
#define ZIPCHECK

struct sdata {
	int  inlen;
	int  outlen;
	char cmd[256];
} scsi_cmd;

int is_mounted( char * fs )

/* -1 = error,  0 = not mounted,  1 = mounted */

{  struct mntent *mp;
   FILE *mtab;
   
   mtab = setmntent("/etc/mtab","r");
   if (!mtab) return -1;
   while (mp=getmntent(mtab)) 
      if (!strncmp(mp->mnt_fsname,fs,8)) break;
   endmntent(mtab);
   return (mp != NULL);
}

void error(char * msg);

int is_raw_scsi( char * fs )

{	return ((strlen(fs) == 8) && (strncmp("/dev/sd",fs,7) == 0));
}

int	is_zip( int fd )

{	char	id[25];
	int	i;

	scsi_cmd.inlen = 0;
	scsi_cmd.outlen = 40;
	scsi_cmd.cmd[0] = 0x12;		/* inquiry */
	scsi_cmd.cmd[1] = 0;
	scsi_cmd.cmd[2] = 0;
	scsi_cmd.cmd[3] = 0;
	scsi_cmd.cmd[4] = 40;
	scsi_cmd.cmd[5] = 0;

	if (ioctl(fd,SCSI_IOCTL_SEND_COMMAND,(void *)&scsi_cmd))
		error("inquiry ioctl error");

	for(i=0;i<24;i++) id[i] = scsi_cmd.cmd[i+8];
	id[24] = 0;

	return(!strncmp(id,"IOMEGA  ZIP 100",15));
}


void	motor( int fd, int mode )

{	scsi_cmd.inlen = 0;
	scsi_cmd.outlen = 0;
	scsi_cmd.cmd[0] = 0x1b;		/* start/stop */
	scsi_cmd.cmd[1] = 0;
	scsi_cmd.cmd[2] = 0;
	scsi_cmd.cmd[3] = 0;
	scsi_cmd.cmd[4] = mode;
	scsi_cmd.cmd[5] = 0;

	if (ioctl(fd,SCSI_IOCTL_SEND_COMMAND,(void *)&scsi_cmd))
		error("motor control ioctl error");
}

void	unlockdoor( int fd )

{	scsi_cmd.inlen = 0;
	scsi_cmd.outlen = 0;
	scsi_cmd.cmd[0] = 0x1e;		/* prevent/allow media removal */
	scsi_cmd.cmd[1] = 0;
	scsi_cmd.cmd[2] = 0;
	scsi_cmd.cmd[3] = 0;
	scsi_cmd.cmd[4] = 0;
	scsi_cmd.cmd[5] = 0;

	if (ioctl(fd,SCSI_IOCTL_SEND_COMMAND,(void *)&scsi_cmd))
		error("door unlock ioctl error");
}

void eject ( int fd )

{	unlockdoor(fd);
	motor(fd,1);
	motor(fd,2);
}

int	get_prot_mode( int fd )

{      	scsi_cmd.inlen = 0;
	scsi_cmd.outlen = 256;
	scsi_cmd.cmd[0] = 6;		/* Iomega non-sense command */
	scsi_cmd.cmd[1] = 0;
	scsi_cmd.cmd[2] = 2;
	scsi_cmd.cmd[3] = 0;
	scsi_cmd.cmd[4] = 128;
	scsi_cmd.cmd[5] = 0;

	if (ioctl(fd,SCSI_IOCTL_SEND_COMMAND,(void *)&scsi_cmd))
		error("non-sense ioctl error");

	return (scsi_cmd.cmd[21] & 0x0f);	/* protection code */
}

void format(int fd, char *dev)
{
	int s;
	
	s=get_prot_mode(fd);
        if ((s == 2) || (s == 3))
        {
        	printf("scsifmt: %s is write-protected\n",dev);	
	        return;
	}
        
#ifdef PAUSE
	printf("Grace period, last chance to hit INTR (^C)\n");
	printf("Three seconds until format begins.");
	fflush(stdout);
	sleep(1);
	printf(".");
	fflush(stdout);
	sleep(1);
	printf(".");
	fflush(stdout);
	sleep(1);
	printf(" Formatting... this may take a while.\n");
#endif
		
	scsi_cmd.inlen = 0;
	scsi_cmd.outlen = 0;
	scsi_cmd.cmd[0] = 0x04;		/* FORMAT_UNIT */
	scsi_cmd.cmd[1] = 0;
	scsi_cmd.cmd[2] = 0;
	scsi_cmd.cmd[3] = 0;
	scsi_cmd.cmd[4] = 0;
	scsi_cmd.cmd[5] = 0;

	if (ioctl(fd,SCSI_IOCTL_SEND_COMMAND,(void *)&scsi_cmd))
		error("FORMAT_UNIT ioctl error");
		
	eject(fd);
	return;
}


void error(char * msg)

{ 	printf("scsifmt: %s\n",msg);
	exit(1);
}

main(int argc, char **argv)

{  	int rs;
	int zfd;

	if (argc != 3) {
	     	printf("usage: scsifmt </dev/sd?> fmt\n");
		exit(1);
	}
	if (!is_raw_scsi(argv[1])) error("not a raw scsi device");
	rs = is_mounted(argv[1]);
	if (rs == -1) error("unable to access /etc/mtab");
	if (rs == 1) error("device is mounted");

	zfd = open(argv[1],0);
	if (zfd < 0) error("unable to open device");

#ifdef CHECKZIP
	if (!is_zip(zfd)) error("device is not an IOMEGA ZIP drive");
#endif

	if (!strcmp(argv[2],"fmt")) format(zfd, argv[1]);
        else error("unknown command");

	close(zfd);
}




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1997-12-20  5:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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