* Re: Iomega zip drive?
[not found] <9606158374.AA837469228@mail.amsinc.com>
@ 1996-07-15 21:03 ` Dirk Wetter
0 siblings, 0 replies; 9+ messages in thread
From: Dirk Wetter @ 1996-07-15 21:03 UTC (permalink / raw)
On Mon, 15 Jul 1996 ethan_shayne@mail.amsinc.com wrote:
> Is the SCSI version of the Iomega 100Mb zip drive supported for Linux
> on the Alpha?
>
> Thanks,
> Ethan Shayne
> ethan_shayne@mail.amsinc.com
>
> --
It works well. I've tried it with my Noname machine (therfore you need
possibly an adaptor), with a Linux/i386- and a Linux/m68k-box.
Dirk Wetter
at Institut fuer Physikalische Chemie
Universitaet Hannover
Germany
dirkw@groucho.pci.uni-hannover.de
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Iomega zip drive?
@ 1996-07-16 1:41 Bryan W. Headley
0 siblings, 0 replies; 9+ messages in thread
From: Bryan W. Headley @ 1996-07-16 1:41 UTC (permalink / raw)
On Jul 15, 3:01pm, ethan_shayne@mail.amsinc.com wrote:
> Subject: Iomega zip drive?
> Is the SCSI version of the Iomega 100Mb zip drive supported for Linux
> on the Alpha?
>
> Thanks,
> Ethan Shayne
> ethan_shayne@mail.amsinc.com
>
> --
> To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
>
>-- End of excerpt from ethan_shayne@mail.amsinc.com
I should expect so. I threw a SyQuest EZ-135 at my UDB, and it thought it was a
small hard disk. The parallel port version I wouldn't bet a quarter on, for
out-of-the box running.
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Iomega zip drive?
@ 1996-07-16 5:06 Stefan Kanthak
1996-07-16 10:22 ` Dirk Wetter
0 siblings, 1 reply; 9+ messages in thread
From: Stefan Kanthak @ 1996-07-16 5:06 UTC (permalink / raw)
Hello Ethan!
> Is the SCSI version of the Iomega 100Mb zip drive supported for Linux
> on the Alpha?
Sure. It functions in the same way as on all intel-driven Linux systems:
you use them like hard disks or removable disks.
Note that the only visible partition is sd?4 on preformatted ZIP-disks
(they are always pre-formatted with MSDOS-FAT and MSDOS-filesystem at the
moment). I did not manage to put other filesystems on it!
Stephan
--
_______________________________________________________________________________
Stephan Kanthak
Department of Computer Science VI
Pattern- and Speech Recognition Research
RWTH Aachen, Germany """""
e-mail: kanthak@i6.informatik.rwth-aachen.de | |
http://www.informatik.rwth-aachen.de/I6/Colleagues/kanthak/ O -
______________________________________________________________.oO_| u |_Oo.____
\_/
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Iomega zip drive?
1996-07-16 5:06 Stefan Kanthak
@ 1996-07-16 10:22 ` Dirk Wetter
0 siblings, 0 replies; 9+ messages in thread
From: Dirk Wetter @ 1996-07-16 10:22 UTC (permalink / raw)
On Mon, 15 Jul 1996, Stefan Kanthak wrote:
> Hello Ethan!
>
> > Is the SCSI version of the Iomega 100Mb zip drive supported for Linux
> > on the Alpha?
>
> Sure. It functions in the same way as on all intel-driven Linux systems:
> you use them like hard disks or removable disks.
>
> Note that the only visible partition is sd?4 on preformatted ZIP-disks
> (they are always pre-formatted with MSDOS-FAT and MSDOS-filesystem at the
> moment). I did not manage to put other filesystems on it!
>
After 'mke2fs /dev/sdb4' I can mount and write files onto this
partition without any problems. In addition I changed the partition ID
from 6 to 83, although I can mount ('mount -t ext2 /dev/sdb4 /zip')
the partition without that.
bye,
Dirk
---
Dirk Wetter
at Institut fuer Physikalische Chemie
Universitaet Hannover
Germany
dirkw@groucho.pci.uni-hannover.de
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Iomega zip drive?
@ 1996-07-16 17:45 Eric Smith
0 siblings, 0 replies; 9+ messages in thread
From: Eric Smith @ 1996-07-16 17:45 UTC (permalink / raw)
"Stefan Kanthak" <kanthak@Gepard.Informatik.RWTH-Aachen.DE> writes
regarding using SCSI ZIP drives on Linux/Alpha:
> Sorry, that I forgot to mention it. Yes, you are right, I tried to reformat
> it with an ext2fs, but did not manage to. This was some months ago and the
I didn't have any trouble with it. I just ran fdisk and mke2fs and set it
up exactly like a fixed disk. At one point I had a small Linux/Alpha system
running from only a ZIP disk (swap space and all).
Of course, the ZIP Tools disk that comes with the drive is initially password
protected, so you have to run their lame DOS software first. But if you buy
blank ZIP disks you won't have this problem.
Eric
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Iomega zip drive?
@ 1996-07-16 20:25 Stefan Kanthak
0 siblings, 0 replies; 9+ messages in thread
From: Stefan Kanthak @ 1996-07-16 20:25 UTC (permalink / raw)
Hello Ethan!
> Thanks. By "did not manage to", do you mean that you had tried to put
> the ext2fs filesystem on the zip disk and were not able to do so, or
> that you simply never tried to do so?
Sorry, that I forgot to mention it. Yes, you are right, I tried to reformat
it with an ext2fs, but did not manage to. This was some months ago and the
behaviour might have changed with recent kernel/mount versions (I remember
it was a problem with the block/sector size of the device when mounting a
certain partition). So I will try it again this evening.
But, nevertheless, I have a small (~90MB) linux recovery system for my alpha
on a ZIP medium and can boot from it via SRM/aboot. And you can really work
with it (~500 KB/s transfer rate).
Stephan
--
_______________________________________________________________________________
Stephan Kanthak
Department of Computer Science VI
Pattern- and Speech Recognition Research
RWTH Aachen, Germany """""
e-mail: kanthak@i6.informatik.rwth-aachen.de | |
http://www.informatik.rwth-aachen.de/I6/Colleagues/kanthak/ O -
______________________________________________________________.oO_| u |_Oo.____
\_/
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Iomega zip drive?
[not found] <m0ugEBR-001VADC@goonsquad.spies.com>
@ 1996-07-17 17:22 ` Michael Schwingen
1996-07-17 21:25 ` Dirk Wetter
0 siblings, 1 reply; 9+ messages in thread
From: Michael Schwingen @ 1996-07-17 17:22 UTC (permalink / raw)
> Of course, the ZIP Tools disk that comes with the drive is initially password
> protected, so you have to run their lame DOS software first. But if you buy
> blank ZIP disks you won't have this problem.
I have written a small C program which allows you to protect/unprotect
ZIP disks under linux.
cu
Michael
--
Michael Schwingen <m.schwingen@stochastik.rwth-aachen.de>
Institut fuer Statistik und Wirtschaftsmathematik, | In the beginning there was
Wuellnerstr. 3, 52056 Aachen | nothing, which exploded.
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Iomega zip drive?
1996-07-17 17:22 ` Michael Schwingen
@ 1996-07-17 21:25 ` Dirk Wetter
0 siblings, 0 replies; 9+ messages in thread
From: Dirk Wetter @ 1996-07-17 21:25 UTC (permalink / raw)
On Wed, 17 Jul 1996, Michael Schwingen wrote:
>
> I have written a small C program which allows you to protect/unprotect
> ZIP disks under linux.
>
Is it possible to publish/post/mail your program ?
bye,
Dirk
---
Dirk Wetter
at Institut fuer Physikalische Chemie
Universitaet Hannover
Germany
dirkw@groucho.pci.uni-hannover.de
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Iomega zip drive?
[not found] <Pine.SGI.3.94.960717232236.6243A-100000@groucho.pci.uni-hannover.de>
@ 1996-07-18 10:32 ` Michael Schwingen
0 siblings, 0 replies; 9+ messages in thread
From: Michael Schwingen @ 1996-07-18 10:32 UTC (permalink / raw)
> Is it possible to publish/post/mail your program ?
I did once on the linux/scsi list - apparently noone wanted to maintain it.
As I don't have a ZIP drive, I won't do much with it - it could need some
improvements.
I hope I have the latest version here:
/* ex:set ts=2: */
/*
* $Id: zip.c,v 1.4 1995/11/27 23:10:13 rincewind Exp $
*
* zip.c: access special protection features on IOMEGA ZIP drives
* written 1995 by Michael Schwingen, rincewind@discworld.oche.de
*
* SCSI routines based on scsiinfo.c 1.0 by Eric Youngdale
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/fcntl.h>
#include <linux/hdreg.h>
#define SCSI_IOCTL_SEND_COMMAND 1
/*
* check if this is really a ZIP drive, since we would not want to
* send undocumented SCSI commands to a different target
*
* return value: 1 = ZIP, 0 = other
*/
int check_zip(int file)
{
int status;
unsigned char *cmd;
char buffer[2000];
memset(buffer,0,2000);
*( (int *) buffer ) = 0; /* length of input data */
*( ((int *) buffer) + 1 ) = 1000; /* length of output buffer */
cmd = (char *) ( ((int *) buffer) + 2);
cmd[0] = 0x12; /* INQUIRY */
cmd[1] = 0x00; /* lun=0, evpd=0 */
cmd[2] = 0x00; /* page code = 0 */
cmd[3] = 0x00; /* (reserved) */
cmd[4] = 0xff; /* allocation length */
cmd[5] = 0x00; /* control */
status = ioctl( file, SCSI_IOCTL_SEND_COMMAND, buffer);
if(status)
return 0;
/* check Vendor */
if (strncmp(buffer+16,"IOMEGA",6) != 0)
return 0;
if (strncmp(buffer+24,"ZIP 100",7) != 0)
return 0;
return 1;
}
/*
* send the ZIP special SCSI command
* mode specifies what to do:
* 0 = unlock (password optional)
* 2 = write protect (no password)
* 3 = write protect (password = 1..33 chars)
* 5 = lock (password = 1..33 chars)
*
* return value: 0 = success
*/
int zipspecial(int file, int mode, char *pwd)
{
int status, len;
unsigned char *cmd;
char buffer[2000];
memset(buffer,0,2000);
len = strlen(pwd);
if (len > 33)
return -1;
*( (int *) buffer) = len; /* length of input data */
*( (int *) buffer) + 1 ) = 1000; /* length of output buffer */
cmd = (char *) ( ((int *) buffer) + 2 );
cmd[0] = 0x0C; /* ZIP special OpCode */
cmd[1] = mode;
cmd[2] = 0x00; /* page code = 0 */
cmd[3] = 0x00; /* (reserved) */
cmd[4] = len; /* allocation length */
cmd[5] = 0x00; /* control */
memcpy(cmd+6, pwd, len);
status = ioctl(file, SCSI_IOCTL_SEND_COMMAND, buffer );
#if 0
if(status) printf("ioctl(SCSI_IOCTL_SEND_COMMAND) status\t= %d\n", status );
#endif
return status; /* 0 = OK */
}
void usage(char *name)
{
fprintf(stderr,
"Usage: %s device cmd [password]\n"
"valid values for cmd: lock unlock wrprot\n"
"password may be 1-33 characters long\n",name);
}
int main(int argc, char *argv[])
{
int f;
char *passwd = "";
int cmd=0,status;
if (argc != 4 && argc != 3)
{
usage(argv[1]);
return 1;
}
if (strcmp(argv[2],"lock") == 0)
{
cmd = 5;
if (argc == 3)
{
fprintf(stderr,"lock requires password!\n");
return 1;
}
}
else if (strcmp(argv[2],"unlock") == 0)
cmd = 0;
else if (strcmp(argv[2],"wrprot") == 0)
{
cmd = 3;
if (argc == 3)
cmd = 2;
}
else
{
usage(argv[1]);
return 1;
}
if (argc == 4)
passwd = argv[3];
if (strlen(passwd) > 33)
{
fprintf(stderr,"%s: passwd must be 33 chars or less\n",argv[1]);
return 1;
}
f = open(argv[1],O_RDONLY);
if (f<0)
{
perror("open");
return 1;
}
if (!check_zip(f))
{
fprintf(stderr,"error: %s is not a ZIP drive!\n",argv[1]);
return 1;
}
status = zipspecial(f,cmd,passwd);
fprintf(stderr,"%s %s\n",argv[2],status?"failed":"succeded");
close(f);
return 0;
}
--
Michael Schwingen <m.schwingen@stochastik.rwth-aachen.de>
Institut fuer Statistik und Wirtschaftsmathematik, | In the beginning there was
Wuellnerstr. 3, 52056 Aachen | nothing, which exploded.
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1996-07-18 10:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-07-16 1:41 Iomega zip drive? Bryan W. Headley
[not found] <Pine.SGI.3.94.960717232236.6243A-100000@groucho.pci.uni-hannover.de>
1996-07-18 10:32 ` Michael Schwingen
[not found] <m0ugEBR-001VADC@goonsquad.spies.com>
1996-07-17 17:22 ` Michael Schwingen
1996-07-17 21:25 ` Dirk Wetter
-- strict thread matches above, loose matches on Subject: below --
1996-07-16 20:25 Stefan Kanthak
1996-07-16 17:45 Eric Smith
1996-07-16 5:06 Stefan Kanthak
1996-07-16 10:22 ` Dirk Wetter
[not found] <9606158374.AA837469228@mail.amsinc.com>
1996-07-15 21:03 ` Dirk Wetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox