*BSD News Article 25628


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!news.sprintlink.net!clark.net!clark.net!not-for-mail
From: ack@clark.net (Eric S. Hvozda)
Newsgroups: comp.os.386bsd.bugs
Subject: Solution! (was Re: [NetBSD 0.9] patch to wd.c for IDE controller weirdnesses)
Date: 5 Jan 1994 17:52:56 -0500
Organization: Clark Internet Services, Inc.
Lines: 22
Message-ID: <2gfgc8$d6@explorer.clark.net>
References: <2gaogb$7k@explorer.clark.net> <2gc724$plj@explorer.clark.net> <explorer.757753457@tbird.cc.iastate.edu> <1994Jan05.074411.11109@crash>
NNTP-Posting-Host: explorer.clark.net
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


Ok kids, I got a solution (well actaully I read it here :-).  Do one of the 
following:

1)  have swap space on both drives or swap on one and root on the other, etc
2)  do `dd if=/dev/rwd?c of=/dev/null bs=512 count=1 > /dev/null 2>&1` in
    /etc/rc before fsck.  ? is the drive you are having problems with
    (probably 1, but it was 0 for me)

So what does this buy me?  This ensures that both IDE drives are open before
fsck starts up.  I did it with dd since I don't need more swap, and I can't
justify throwing disk at something I don't need.  Having swap on both drives
works too.  Having root on one and swap on the other works as well.  All that
matters is that both drives are open in some way shape of form before hand.

Outta question I used bs=512, why use bs=1k?  512 is the size of the device
I'm dding.  Then again, the man page impies bs= is a 512 byte block count,
not the number of bytes, but dd reports copying only 512 bytes.  Empirical
(Hi Kyn) observation seems to show the man page is outta date...
-- 
Ack!
Creek, not creek; Pop not soda; Car needs washed...