old-www/LDP/LG/issue81/tag/2.html

568 lines
21 KiB
HTML

<!--startcut ======================================================= -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<META NAME="generator" CONTENT="lgazmail v1.4F.v">
<TITLE>The Answer Gang 81: ide-scsi emulation for IDE IOMEGA ZIP 250MB</TITLE>
</HEAD><BODY BGCOLOR="#FFFFFF" TEXT="#000000"
LINK="#3366FF" VLINK="#A000A0">
<!--endcut ========================================================= -->
<P> <hr>
<!--startcut ======================================================= -->
<CENTER>
<!-- *** BEGIN navbar *** -->
<!-- *** END navbar *** -->
</CENTER>
</p>
<!--endcut ========================================================= -->
<!--startcut ======================================================= -->
<P> <hr>
<!-- begin tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::-->
<p align="center">
<table width="100%" border="0"><tr>
<td align="right" valign="center"
><IMG ALT="" SRC="../../gx/navbar/left.jpg"
WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="middle" border="0"
><A HREF="../index.html"
><IMG SRC="../../gx/navbar/toc.jpg" align="middle"
ALT="[ Table Of Contents ]" border="0"></A
><A HREF="../lg_answer.html"
><IMG SRC="../../gx/dennis/answertoc.jpg" align="middle"
ALT="[ Answer Guy Current Index ]" border="0"></A></td>
<td align="center" valign="center"><A HREF="../lg_answer.html#greeting"><img align="middle"
src="../../gx/dennis/smily.gif" alt="greetings" border="0"></A> &nbsp;
<A HREF="../tag/bios.html">Meet&nbsp;the&nbsp;Gang</A> &nbsp;
<A HREF="1.html">1</A> &nbsp;
<A HREF="2.html">2</A> &nbsp;
<A HREF="3.html">3</A> &nbsp;
<A HREF="4.html">4</A>
</td>
<td align="left" valign="center"><A HREF="../../tag/kb.html"
><IMG SRC="../../gx/dennis/answerpast.jpg" align="middle"
ALT="[ Index of Past Answers ]" border="0"></A
><IMG ALT="" SRC="../../gx/navbar/right.jpg" align="middle"
WIDTH="14" HEIGHT="45" BORDER="0"></td></tr></table>
</p>
<!-- end tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::::-->
<!--endcut ========================================================= -->
<P> <hr> <P>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<center>
<H1><A NAME="answer">
<img src="../../gx/dennis/qbubble.gif" alt="(?)"
border="0" align="middle">
<font color="#B03060">The Answer Gang</font>
<img src="../../gx/dennis/bbubble.gif" alt="(!)"
border="0" align="middle">
</A></H1>
<BR>
<H4>By Jim Dennis, Ben Okopnik, Dan Wilder, Breen, Chris, and...
(<a href="tag/bios.html">meet the Gang</a>) ...
the Editors of Linux Gazette...
and You!
<br>Send questions (or interesting answers) to
The Answer Gang
for possible publication
(but read the <a href="../tag/ask-the-gang.html">guidelines</a> first)
</H4>
</center>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<p><hr><p>
<!-- begin 2 -->
<H3 align="left"><img src="../../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>ide-scsi emulation for IDE IOMEGA ZIP 250MB</H3>
<p><strong>From Dominik Szczerba
</strong></p>
<p></strong></p>
<p align="right"><strong>Answered By Matthias Posseldt, Ben Okopnik, John Karns, Mike Martin
</strong></p>
<P><STRONG>
Hello,
</STRONG></P>
<P><STRONG>
Do you have experience with ide-scsi emulation for IDE ZIP? For the last
week I have searched the whole internet wide and broad and found no info
on my very problem (only some similar ones), which is "unable to read
partition table" and/or "READ CAPACITY failed" on my dev/sda during
start-up (errors from dmesg and/or boot.msg, the disk was both in and
out for testing during boot). I have my internal IDE ZIP drive 250 MB on
my machine physically under <TT>/dev/hdb</TT> (internal ZIP 250MB), but I made it
emulated under <TT>/dev/sda</TT> (because I had similar problem just using
<TT>/dev/hdb</TT>, so I used ide-scsi after being suggested to do so). Apart from
errors in boot.msg and dmesg, "fdisk -l" or fdisk <TT>/dev/sda</TT> =&gt; 'p' doesnt
recognize the partition table of correctly formated (on other machines,
external USB IOMEGA ZIP 250, running usb scsi emulation) ZIP disks with
ext2 file system (I didnt try fat, I am not concerned). But I can mount
the disk, but I am affraid to write to it because of obvious error
messages.
</STRONG></P>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [John K.]
Have you read the ZIP-Drive mini-HowTo? Is your drive simple IDE or the
later ATAPI model? From that document:
</blockQuote>
<blockQuote><BLOCKQuote>
IDE:
</BLOCKQuote></blockQuote>
<blockQuote>
The good news about this drive: no kernel modules or modifications are
needed to support it. It looks to the kernel like an IDE hard drive.
It worked for me with no effort with kernel 2.0.31 and 2.0.32.
</blockQuote>
<blockQuote>
The bad news about this drive: because it doesn't use ATAPI, you can't
use the SCSI-to-ATAPI translation, which means you can't use mtools to
write-protect disks (or to eject them, for that matter).
</blockQuote>
<blockQuote>
ATAPI:
</blockQuote>
<blockQuote><BLOCKQuote>
I use an ATAPI Zip drive and it works with both 2.0.32 and 2.0.33
kernels. I've used it under both RH 5.0 and OpenLinux 1.2 (my current
used distribution). To get it to work under OpenLinux, I just enabled
ATAPI floppy support in the kernel. OpenLinux does not have this
support compiled in by default.
</BLOCKQuote></blockQuote>
<blockQuote>
No other drivers are needed. It will mount as an extended partition
on partition 4. I.E, mine mounts on HDB4. I mount it under <TT>/mnt/zip</TT>
as noauto, although I don't suppose there would be any real problem
with automounting. I just wonder about ejecting disks. I always
dismount the drive before ejecting a cartridge.
</blockQuote>
<blockQuote>
There are more detailed instructions for the ATAPI install in the
Linux Gazette May 1998 issue. See the 2 cent tip section.
</blockQuote>
<blockQuote>
<A HREF="../..//issue28/lg_tips28.html#atapi"
>http://www.linuxgazette.com/issue28/lg_tips28.html#atapi</A>
</blockQuote>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Matthias]
Have you inserted the ide-floppy module or is IDE Floppy support compiled
into your kernel. Only then you can use the ZIP drive like a removable
hard drive.
</blockQuote>
<blockQuote>
so you do: "modprobe ide-floppy &amp;&amp; modprobe ide-scsi" and carefully watch
the kernel messages.
If it doesn't help, please post the part of your kernel boot messages
concerning the detection of the ZIP drive.
</blockQuote>
<P><STRONG>
<IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
To make it yet more complex: if I now format a ZIP disk on MY
scsi-emulated IDE ZIP drive then I dont have ANY problems on MY machine
(format/partition table is correctly recognized) but on ALL the other
machines the disk is not recognized at all (not even mounting is
possible).
</STRONG></P>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Matthias]
How did you format the disks? With mke2fs <TT>/dev/hdb?</TT>
</blockQuote>
<P><STRONG>
<IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
please help me solve this puzzle,
</STRONG></P>
<P><STRONG>
regards,
Dominik
</STRONG></P>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Matthias]
Perhaps this helps a bit.
</blockQuote>
<HR width="10%" align="left"><P><STRONG>
<IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Hello wizards,
<P><STRONG><IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
><em><font color="#007F7F">
Have you inserted the ide-floppy module or is IDE Floppy support compiled
into your kernel. Only then you can use the ZIP drive like a removable
hard drive.
</font></em></STRONG></P>
<P><STRONG>
ide-floppy 0.99 is reported in both machines at startup, and in both
machines the module is NOT loaded.
</STRONG></P>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
I can't offer much help on the overall topic, not having any experience with ZIP, but
one thing seems clear from the above: the "ide-floppy" functionality is
compiled into your kernel.
</blockQuote>
<P><STRONG>
<IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
><em><font color="#007F7F">
In both machines (ZIP IDE and ZIP
USB) I CAN format/copy from/to, but errors are reported using the disk
on ANOTHER computer. I didnt try to configure the kernel as I thought "I
CAN use the drive so the drivers are there". Anyway, I am not going to
recompile the kernel, because it doesnt solve the problem of easy
compatibility of ZIP drives. I dont want to have this problem when going
to yet another computer...
</font></em></STRONG></P>
<P><STRONG><em><font color="#007F7F">
so you do: "modprobe ide-floppy &amp;&amp; modprobe ide-scsi" and carefully watch
the kernel messages.
</font></em></STRONG></P>
<P><STRONG>
ide-floppy module is just not there, so it is not modprobing... (module
not found or something)
</STRONG></P>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
"Or something" is not a useful error report; however, if it's compiled
in, you won't have a module - so this is another indication of the
above. Presumably, the error will look something like this:
</blockQuote>
<blockQuote><BLOCKQuote>
modprobe: Can't locate module ide-floppy
</BLOCKQuote></blockQuote>
<p><strong><IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
><em><font color="#007F7F">
Is your drive simple IDE or the later ATAPI model?
</font></em></strong></p>
<p><strong><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
It is being reported as IDE ATAPI (in BIOS and during startup) so I
really dont know...
</strong></p>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Yep, that would make it an IDE ATAPI.
</blockQuote>
<P><STRONG>
<IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
And forget about help from IOMEGA...
</STRONG></P>
<TABLE WIDTH="95%" BORDER="1" BGCOLOR="#FFFFCC"><TR><TD>
<p align="center">...............</p>
<P><STRONG><BLOCKQuote>
In the HOWTO:
</BLOCKQuote></STRONG></P>
<P><STRONG>
I use an ATAPI Zip drive and it works with both 2.0.32 and 2.0.33
kernels. I've used it under both RH 5.0 and OpenLinux 1.2 (my current
used distribution). To get it to work under OpenLinux, I just enabled
ATAPI floppy support in the kernel. OpenLinux does not have this
support compiled in by default.
</STRONG></P><p align="center">...............</p>
</TD></TR></TABLE>
<P><STRONG>
1) I have kernel 2.4.18-4GB installed (default from <A HREF="http://www.suse.com/">SuSE</A>
<IMG SRC="../../gx/dennis/smily.gif" ALT="8)"
height="24" width="20" align="middle">, so I thought
all latest technology is there, no?
</STRONG></P>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
I'm not sure what you mean by "the latest technology", but it should
have a reasonably new version of "ide-floppy" support - either compiled
in (as it seems to be in your case) or as a loadable module.
</blockQuote>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Matthias]
Yes, SuSE's kernel should suffice. You can use the drive, and ide-floppy
support is built into the kernel.
</blockQuote>
<P><STRONG>
<IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
2) Anyway, I <EM>CAN</EM> use the drive, so the drivers must be there. The
problem is compatibility. Am I wrong?
</STRONG></P>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
I'm afraid that I missed the first part of this discussion, however -
when you say that the errors are reported on "another" computer, is
"ide-floppy" loaded on <em> _that</em> machine (either via being compiled in or
modprobing "ide-floppy")? The two machines that you report as being able
to format, copy, etc. are obviously getting it to work; the third one
isn't. So, the third machine has some kind of a problem - perhaps the
module does not get loaded on it?
</blockQuote>
<P><STRONG>
<IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I have removed the scsi-emulation on my home PC. It is still the same.
</STRONG></P>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [mike]
do an lsmod and check for imm and ppa modules
</blockQuote>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Both of those are SCSI-related modules; I think that Dominic has already
determined that SCSI is irrelevant to what he's doing (unloading SCSI
emulation has no effect on the process.) As well, it's a good idea to
explain to people <em> _why</em> they should do things that you recommend: if
your exact suggestions don't pan out, they would be able to explore an
avenue that they may not have been aware of.
</blockQuote>
<blockquote><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Heather] But they would have been the correct modules if it was an older, parallel
based ZIP drive. As noted above, however, if they were built-ins, then you
wouldn't have them available as modules, but they would have been likely
to "just work".
</blockquote>
<P><STRONG>
<IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Self-made disks are 100% OK, but not accesible elsewhere (cannot mount
nor read).
</STRONG></P>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
"Elsewhere" meaning other machines besides these three? Like, on a ZIP
drive under Wind*ws, etc.?
</blockQuote>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [John K.]
I think he means that Zip carts init'ed on the problem machine can't be
read by other Zip drvs. I would not rule out an alignment compability
issue here.
</blockQuote>
<P><STRONG>
<IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
And if I use elsewhere-formatted disks on my PC I get wrong
partition table message from fdisk (but I can mount it and read it!)
</STRONG></P>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
&lt;shrug&gt; I'd say, ignore "fdisk". It's not the smartest utility in the
world in the first place, and using it on anything except a plain HD is
asking for trouble.
</blockQuote>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [John K.]
While I wouldn't recommend using fdisk to set up partitions on the Zip
carts, I've used it with good results to show the status (fdisk -l).
</blockQuote>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Matthias]
Yes, ZIP disks don't have a standard partition table. Same with LS-120 disks.
I read about LS-120 &amp; Linux and it was said you should not low-level format
the disk as it can render it unusable.
</blockQuote>
<blockQuote>
The data partition on the ZIP disk is number 4, so you've to 'mount -t auto
<TT>/dev/hdb4</TT> <TT>/mnt/zip</TT>'.
</blockQuote>
<blockQuote>
So, one tip is to format the disk using IOMEGA tools under Windows (arghh).
A different one is using the tools provided at
<A HREF="http://www.iomega.com/software/linuxtools.html"
>http://www.iomega.com/software/linuxtools.html</A>
</blockQuote>
<blockQuote>
There you have formatting tools, tools to write protect your disks and
information utilities. Works with ATAPI ZIP 100 &amp; 250 and SCSI
counterparts.
</blockQuote>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [mike]
try mounting <TT>/dev/sda4</TT> <TT>/mnt/zip</TT>
zip drives historically have the data in partition 4
</blockQuote>
<blockQuote>
This should definitely solve the problem if when you format the drive
properly you get no problems
</blockQuote>
<P><STRONG>
<IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
do you still have some ideas?
</STRONG></P>
<P><STRONG>
Is it possible just to have ZIP compatible
like every CD device without experimenting (!!!) with kernel stuff? If
not I take the battle as lost and stop using ZIP drives... Warn
others...
</STRONG></P>
<P><STRONG>
best regards,
Dominik
</STRONG></P>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
There's lots of folks out there using ZIP drives with Linux. I think
that sounding the fire alarms and calling the New York Times would be
premature at best.
</blockQuote>
<blockQuote>
<IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [John K.]
My use of Zip drvs has been confined to the SCSI (Linux &amp; MS) and parport
models (MS only). I've never had any real problems, (other than very
slow with the parport version).
</blockQuote>
<HR width="10%" align="left">
<p><em>
Unfortunately, these seem to be all reasonable things, but the real
problem was something more akin to floppy alignment problems. -- Heather
</em></p>
<p><strong><IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
><em><font color="#007F7F">
So, one tip is to format the disk using IOMEGA tools under Windows (arghh).
A different one is using the tools provided at
<A HREF="http://www.iomega.com/software/linuxtools.html"
>http://www.iomega.com/software/linuxtools.html</A>
</font></em></strong></p>
<blockQuote>
great, but... unfortunately it just...simply... doesnt work! It doesnt
do what's written in help file.
</blockQuote>
<blockQuote>
I convinced myself how low quality iomega is. Never ever anything to do
with them.
</blockQuote>
<blockQuote>
And my messages to iomega were just left without any response.
</blockQuote>
<blockQuote>
I checked with FAT file systems. The same. It works 100% OK... but only
on the machine it was formated on. I am sick with this.
</blockQuote>
<blockQuote>
Thank you guys for feedback, but I give up and throw away the stupid drive.
</blockQuote>
<blockQuote>
No, no need to alarm New York Times, Ben, but a word of loud warning on
incopatibility of ZIP disks formatted on different machines will prevent
others from wasting their money.
</blockQuote>
<blockQuote>
What I experienced just prooves how low quality service is offered by
iomega.
</blockQuote>
<blockQuote>
thanks and bye
Domi
</blockQuote>
<!-- end 2 -->
<P> <hr> </p>
<!-- *** BEGIN copyright *** -->
<H5 align="center">This page edited and maintained by the Editors
of <I>Linux Gazette</I>
<a href=""
>Copyright &copy;</a> 2002
<BR>Published in issue 81 of <I>Linux Gazette</I> August 2002</H5>
<H6 ALIGN="center">HTML script maintained by
<A HREF="mailto:star@starshine.org">Heather Stern</a> of
Starshine Technical Services,
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
</H6>
<!-- *** END copyright *** -->
<!--startcut ======================================================= -->
<P> <hr>
<!-- begin tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::-->
<p align="center">
<table width="100%" border="0"><tr>
<td align="right" valign="center"
><IMG ALT="" SRC="../../gx/navbar/left.jpg"
WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="middle" border="0"
><A HREF="../index.html"
><IMG SRC="../../gx/navbar/toc.jpg" align="middle"
ALT="[ Table Of Contents ]" border="0"></A
><A HREF="../lg_answer.html"
><IMG SRC="../../gx/dennis/answertoc.jpg" align="middle"
ALT="[ Answer Guy Current Index ]" border="0"></A></td>
<td align="center" valign="center"><A HREF="../lg_answer.html#greeting"><img align="middle"
src="../../gx/dennis/smily.gif" alt="greetings" border="0"></A> &nbsp;
<A HREF="../tag/bios.html">Meet&nbsp;the&nbsp;Gang</A> &nbsp;
<A HREF="1.html">1</A> &nbsp;
<A HREF="2.html">2</A> &nbsp;
<A HREF="3.html">3</A> &nbsp;
<A HREF="4.html">4</A>
</td>
<td align="left" valign="center"><A HREF="../../tag/kb.html"
><IMG SRC="../../gx/dennis/answerpast.jpg" align="middle"
ALT="[ Index of Past Answers ]" border="0"></A
><IMG ALT="" SRC="../../gx/navbar/right.jpg" align="middle"
WIDTH="14" HEIGHT="45" BORDER="0"></td></tr></table>
</p>
<!-- end tagnav ::::::::::::::::::::::::::::::::::::::::::::::::::::-->
<!--endcut ========================================================= -->
<P> <hr>
<!--startcut ======================================================= -->
<CENTER>
<!-- *** BEGIN navbar *** -->
<!-- *** END navbar *** -->
</CENTER>
</p>
<!--endcut ========================================================= -->
<!--startcut ======================================================= -->
</BODY></HTML>
<!--endcut ========================================================= -->