*BSD News Article 81613


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!www.nntp.primenet.com!nntp.primenet.com!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Iomega SCSI zip drive experiences?
Date: 27 Oct 1996 20:38:41 GMT
Organization: Private BSD site, Dresden
Lines: 52
Message-ID: <550h8h$eus@uriah.heep.sax.de>
References: <54t3of$bqd@trumpet.uni-mannheim.de>
  <3272B1DD.33F8@onthenet.com.au>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

Tony Griffiths <tonyg@OntheNet.com.au> wrote:

> The only 'problem' I've seen is FreeBSD spitting a "SCSI Attention/Media
> may have changed" message on the console when I change a cartridge. 
> Apparently, the SCSI disk driver doesn't think that this is kosher.

I think, in the long run, the `od' driver is a better candidate for
removable media drives, even if they are not strictly `optical'.  They
share the same set of problems as MO drives.

If you wanna give it a try, you can add a hook to /sys/scsi/scsiconf.c
like this:

[existing entries:]

static struct scsidevs knowndevs[] =
{
/* od's must be probed before sd's since some of them identify as T_DIRECT */
#if NOD > 0
	{
		T_OPTICAL, T_OPTICAL, T_REMOV, "MATSHITA", "PD-1 LF-1000", "*",
		"od", SC_MORE_LUS
	},
	{
		T_DIRECT, T_OPTICAL, T_REMOV, "SONY", "SMO-*", "*",
		"od", SC_MORE_LUS
	},
^^^^
around here, put:

	{
		T_DIRECT, T_OPTICAL, T_REMOV, "IOMEGA", "XXX*", "*",
		"od", SC_ONE_LUS
	},

...with "XXX" being the beginning of your device model string (as you
can obtain from the probe message in /var/log/messages).  This will
forcibly assign the IOMEGA drive to the `od' driver.  Of course, you
need

	device	od0

in your config file.  It should become device /dev/od0 etc. then.

Disclaimer: All this will only work for FreeBSD 2.2-something systems.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)