Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jun 1997 10:16:14 +0200
From:      Philipp Reichmuth <chokepnt@prima.ruhr.de>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   EZ230 removable drive
Message-ID:  <33B76B4E.41C67EA6@prima.ruhr.de>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi everyone!

I've got an EZflyer removable SCSI drive, and I seem to be unable to
initialize it for use with FreeBSD.

/stand/sysinstall (from 2.1.7 since I ctm'ed to 2.2-stable) says "No
disks found, check if your controller is configured aat boot time". I
happen to know that it is because otherwise I wouldn't be able to boot
my fs'es on sd0, and in fact it says:

======> begin dmesg output <=============

Probing for devices on PCI bus 0:
ahc0 <Adaptec 2940 Ultra SCSI host adapter> rev 0 int a irq 10 on pci0:8
ahc0: aic7880 Single Channel, SCSI Id=7, 16 SCBs
ahc0 waiting for scsi devices to settle
(ahc0:0:0): "QUANTUM FIREBALL_TM3200S 300X" type 0 fixed SCSI 2
sd0(ahc0:0:0): Direct-Access 3067MB (6281856 512 byte sectors)
(ahc0:1:0): "TOSHIBA CD-ROM XM-5701TA 3136" type 5 removable SCSI 2
cd0(ahc0:1:0): CD-ROM cd present [257675 x 2048 byte records]
(ahc0:5:0): "SyQuest EZ230S 6722" type 0 removable SCSI 2
sd1(ahc0:5:0): Direct-Access 220MB (450560 512 byte sectors)

======> end dmesg output <=============

There it is - /dev/sd1. Abandoning the thought of /stand/sysinstall I
chose to use disklabel instead. I overwrote the first 512 sectors using
dd, then did a "disklabel -Brw sd1 auto" (at which it complained about
an "invalid primary partition table"; on a second try it remained quiet)
and then did a "disklabel -e sd1". It reported the following:

======> begin disklabel output <===========
# /dev/rsd1c:
type: unknown
disk: 
label: 
flags:
bytes/sector: 512
sectors/track: 107
tracks/cylinder: 1
sectors/cylinder: 107
cylinders: 4210
sectors/unit: 450560
rpm: 3600
interleave: 1
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:   450560        0    unused        0     0         # (Cyl.    0 -
4210*)
======> end disklabel output <=============

I tried to add an entry at the end for a FreeBSD slice "e", spanning the
whole of "c" and looking like the following:

===========================================
3 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c:   450560        0    unused        0     0         # (Cyl.    0 -
4210*)
  e:   450560        0    4.2BSD       1024 8192        # (Cyl.    0 -
4210*)
===========================================

Now disklabel complains about a "bad partition name in line 23" which
happens to be the line with the new "e" partition.

Three Questions:

(1) What's Wrong with /stand/sysinstall?
(2) What am I doing wrong with disklabel? (i.e. Do I have reason to feel
silly?)
(3) If /stand/sysinstall can't be fixed: is there any other way to
quick'n'dirty initialize a disk for FreeBSD?

Oh, and BTW: Can I use 4.4LFS filesystems, what is the
difference/advantage over 4.2BSD and what consequences do I have to
dread? ;)

Hoping I specified my problem in enough detail...

Philipp





Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?33B76B4E.41C67EA6>