*BSD News Article 72372


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news2.acs.oakland.edu!news.tacom.army.mil!ulowell.uml.edu!wang!news.kei.com!newsfeed.internetmci.com!info.ucla.edu!galaxy.ucr.edu!ihnp4.ucsd.edu!munnari.OZ.AU!news.mel.connect.com.au!news.syd.connect.com.au!news.bri.connect.com.au!corolla.OntheNet.com.au!news
From: Tony Griffiths <tonyg@onthenet.com.au>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: ZIP drive support for FreeBSD 2.1?
Date: Sat, 29 Jun 1996 17:38:21 +1000
Organization: Network Technologies P/L
Lines: 49
Message-ID: <31D4DD6D.41C6@onthenet.com.au>
References: <31D304F6.EF@job-link.com>
NNTP-Posting-Host: pulsar.nt.com.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0 (X11; I; OSF1 V3.2 alpha)
To: Charles Boesel <webguy@job-link.com>

Charles Boesel wrote:
> 
> Is there ZIP Drive (SCSI version) support in FreeBSD v2.1?
> --
> Charles
> webguy@job-link.com
> Promote your skills to the world for free at http://www.job-link.com
> Personal homepage at http://www.job-link.com/home/charles.html

Yes (and No!).  By that I mean that FreeBSD (2.0.5, 2.1.0 & 2.2-SNAP)
doesn't do anything *special* to support the SCSI variant of the ZIP
drive, but it works quite OK.  You get a message about a failed 'sense
mode' read of page 4 at bootup, and also get a couple of "what the hell
is going on here!" messages on the console windows whenever you change
cartridges but you can probably live with that...  I do!

The trick is to fdisk the cartridge and give it a topology of 96/64/32
(96 Cylinders, 64 Heads, 32 Sectors) and then disklabel the cartridge
using the following command-

# disklabel -w -r /dev/rsd2c zip

where the entry in /etc/disktab is-

zip|zip100|IOMEGA ZIP 100 N*32:\
        :dt=SCSI:ty=removeable:se#512:nt#64:ns#32:nc#96:\
        :pa#32768:oa#0:ba#4096:fa#512:ta=4.2BSD:\
        :pb#32768:ob#32768:tb=swap:\
        :pc#196608:oc#0:\
        :ph#131072:oh#65536:bh#4096:fh#512:th=4.2BSD:

The boot-time output looks like-

Jun 29 18:28:27 gunsynd /kernel: (ncr0:5:0): "IOMEGA ZIP 100 N*32" type
0 removable SCSI 2
ble SCSI 2
Jun 29 18:28:27 gunsynd /kernel: sd2(ncr0:5:0): Direct-Access
Jun 29 18:28:27 gunsynd /kernel: sd2(ncr0:5:0): ILLEGAL REQUEST asc:24,0
Invalid field in CDB
Jun 29 18:28:28 gunsynd /kernel: sd2 could not mode sense (4). Using
ficticious geometry
Jun 29 18:28:28 gunsynd /kernel: 96MB (196608 512 byte sectors)

The JAZ drive is a bit smarter (ie the sense mode returns a 'valid'
geometry) but I don't think FreeBSD is smart enough to know about SCSI
disk media changes to ignore ATTENTION interrupts when no partition is
mounted but prevent media unload when the drive is "busy"!

Tony