From owner-freebsd-doc Sun May 26 01:41:04 1996 Return-Path: owner-doc Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA14349 for doc-outgoing; Sun, 26 May 1996 01:41:04 -0700 (PDT) Received: from palmer.demon.co.uk (palmer.demon.co.uk [158.152.50.150]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id BAA14309; Sun, 26 May 1996 01:40:39 -0700 (PDT) Received: from palmer.demon.co.uk (localhost [127.0.0.1]) by palmer.demon.co.uk (sendmail/PALMER-1) with ESMTP id JAA07810; Sun, 26 May 1996 09:32:19 +0100 (BST) To: doc@FreeBSD.ORG CC: FAQ@FreeBSD.ORG From: "Gary Palmer" Subject: Gregory D Moncreaff: Using Bernoulli 230 under FreeBSD 2.1 Date: Sun, 26 May 1996 09:32:17 +0100 Message-ID: <7808.833099537@palmer.demon.co.uk> Sender: owner-doc@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi Someone may like to look at this and put it in the doc somewhere. It looks like one of these little tit bits of info that we should try and publish somewhere to save other people hassle/worry/hair loss... Thanks Gary -- Gary Palmer FreeBSD Core Team Member FreeBSD: Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info ------- Forwarded Message Date: Fri, 24 May 1996 13:42:00 -0400 From: Gregory_D_Moncreaff@ccmail.ed.ray.com To: gpalmer@FreeBSD.org, info@iomega.com, Robert_Connelly@ccmail.ed.ray.com, Gregory_D_Moncreaff@ccmail.ed.ray.com Subject: Using Bernoulli 230 under FreeBSD 2.1 I noticed that there wasn't any information about using the Bernoulli 230 (or any removable media) under FreeBSD 2.1 ( a BSD 4.4 Lite based unix ) The Bernoulli was recognized by the SCSI adapter(with some warning/error messages): ---------------------------------------------------------------------- ahc0 rev 0 int a irq 15 on pci0:17 ahc0: aic7870 Ultra Single Channel, SCSI Id=7, aic7870, 255 SCBs ahc0 waiting for scsi devices to settle ... ahc0:A:6: refuses syncronous negotiation. Using asyncronous transfers (ahc0:6:0): "IOMEGA BETA230 2.02" type 0 removable SCSI 2 sd1(ahc0:6:0): Direct-Access sd1(ahc0:6:0): ILLEGAL REQUEST asc:24,0 Invalid field in CDB sd1 could not mode sense (4). Using ficticious geometry 220MB (450566 512 byte sectors) ---------------------------------------------------------------------- --- I had to change the partition sysid from DOS (the disk was originally formatted for DOS) to FreeBSD via the 'fdisk' program : ---------------------------------------------------------------------- # fdisk /dev/sd1 ******* Working on device /dev/sd1 ******* parameters extracted from in-core disklabel are: cylinders=220 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=220 heads=64 sectors/track=32 (2048 blks/cyl) Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 0 is: The data for partition 1 is: The data for partition 2 is: The data for partition 3 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 32, size 450528 (219 Meg), flag 80 beg: cyl 0/ sector 1/ head 1; end: cyl 219/ sector 32/ head 63 ---------------------------------------------------------------------- I added the following section to '/etc/disktab' ---------------------------------------------------------------------- # Bernoulli transportable 230 (a really big floppy) bern230:\ :ty=winchester:dt=SCSIse#512:nt#64:ns#32:nc#220:rm#3600:\ :pa#447280:oa#0:ba#4096:fa#512:ta=4.2BSD: \ :pb#447280:ob#0:bb#4096:fb#512:tb=4.2BSD: \ :pc#447280:oc#0:bc#4096:fc#512:tc=4.2BSD: ---------------------------------------------------------------------- I the used 'newfs' to format the disk ---------------------------------------------------------------------- # newfs -T bern230 /dev/sd1s4 ---------------------------------------------------------------------- I then could mount and read/write the disk ---------------------------------------------------------------------- # mount /dev/sd1s4 /bern # df /bern Filesystem 512-blocks Used Avail Capacity Mounted on /dev/sd1s4 422255 1 388473 0% /bern ---------------------------------------------------------------------- The related man pages refer to a command 'disklabel' whose write operations are not supported by the Bernoulli disk/drive. There will be messages logged to console about the disk not being labeled that can be (safely?) ignored. The output of 'disklabel', below, would have, for a standard disk, type be 'SCSI', disk be a disk/bios partition name, eg 'sd1', and the interleave should be non-zero. ---------------------------------------------------------------------- # disklabel /dev/sd1 # /dev/sd1: type: unknown disk: label: flags: bytes/sector: 512 sectors/track: 32 tracks/cylinder: 64 sectors/cylinder: 2048 cylinders: 220 sectors/unit: 450566 rpm: 0 interleave: 0 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 3 partitions: # size offset fstype [fsize bsize bps/cpg] c: 450566 0 unused 0 0 # (Cyl. 0 - 220*) Warning, revolutions/minute 0 boot block size 0 super block size 0 ====================================================================== If any of this could be improved, I'd appreciate a response to this message indicating how so. Feel free to distribute this info (with standard disclaimers!) dist: System Administration: Gary Palmer Iomega Info: ------- End of Forwarded Message