*BSD News Article 24645


Return to BSD News archive

Newsgroups: comp.os.386bsd.bugs
Path: sserve!newshost.anu.edu.au!munnari.oz.au!uniwa!harbinger.cc.monash.edu.au!msuinfo!agate!usenet.ins.cwru.edu!news.csuohio.edu!stever
From: stever@csuohio.edu (Steve Ratliff)
Subject: Re: IDE drive problems - is it a bug?
Message-ID: <1993Dec3.170624.14588@news.csuohio.edu>
Sender: news@news.csuohio.edu (USENET News System)
Organization: Cleveland State University
X-Newsreader: Tin 1.1 PL5
References: <2dl8s1$8v7@sun.rhbnc.ac.uk>
Date: Fri, 3 Dec 1993 17:06:24 GMT
Lines: 57

	This is a known bug introduced with the 2.4 patchkit.  Disklabel
will not label a drive that doesn't already have a label.  Catch22
The old (June93) workaround solution was to boot off the tiny or fixit
floppies and initially disklabel a new drive with them.  This is not
a problem with earlier patchkits or later *BSD systems.  I believe
that the relevant broken code is in wd.c.

simon@dcs.rhbnc.ac.uk wrote:
: Hi there,
:         I am having a spot of bother.  I decided that 200M wasn't enough,
: and finally treated myself to another 250M of harddisc.  But after a chunk
: of struggling I can't make it happen...
: 
:         I have 386BSD 0.1 with the 2.4 patchkit installed, on a Western
: Digital WDAC2200 IDE drive.  The kernel recognizes it as <WDC AC220F>. 
: Recompiling the kernel with the config lines
: 
: 
: controller      wd0     at isa? port "IO_WD1" bio irq 14 vector wdintr
: disk            wd0     at wd0 drive 0
: disk            wd1     at wd0 drive 1
: 
: in the configuration file.  The kernel recognizes the new drive, an 
: IBM-H3256-A3 (badge-engineered?) drive as <H3256-A3>.  But I can't disklabel
: it.  Every time I try it produces the errors
: 
: disklabel: /dev/rwd1a: Invalid argument
: 
: and then (from the system)
: 
: [date+time+machine name] /386bsd: wd1: Cannot find label (no disk label)
: 
:         The devices wd0 and rwd0 are
: 
: crw-r-----    1 root      3,   8 Dec  1 18:01 /dev/rwd1a
: brw-r-----    1 root      0,   8 Sep  7 18:56 /dev/wd1a 
: 
: 
: 
:         I have tried setting up a 1-drive system with the new drive, and as
: wd0 it disklabels just fine, with correct parameters and then newfs's OK.  I
: have set it up as 2-drive and set up DOS on the second drive - FDISK seems
: to have no problems.  So I would guess that my hardware is OK.
: 
:         So what?  Am I being like badly dumb?  Or is it really a bug?
: 
: Thanx
: 
: Simon
: 
: ---
: "This too is meaningless, a chasing after the wind"   -Ecclesiastes 4:16 
: 
: simon@dcs.rhbnc.ac.uk           | Not affiliated to any religion
: simon@cs.rhbnc.ac.uk            | Not affiliated to any politics
: zhac149@vax.rhbnc.ac.uk         | Not affiliated to any ideology
: (+44/0)784 434568 (WET)         | What does that make me?