*BSD News Article 21859


Return to BSD News archive

Xref: sserve comp.os.386bsd.bugs:1549 comp.os.386bsd.questions:5620
Newsgroups: comp.os.386bsd.bugs,comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!cs.utexas.edu!uunet!ihz.compuserve.com!mfoley
From: mfoley@csi.compuserve.com (M Foley)
Subject: Re: YET ANOTHER disklabel AND IDE 2nd DRIVE PROBLEM - HELP!!
Message-ID: <CEE7Bq.n00@csi.compuserve.com>
Organization: CompuServe Incorporated
Date: Mon, 4 Oct 1993 21:50:10 GMT
Lines: 29

In article <CE8Hy0.6tv@csi.compuserve.com> I quoted the FAQ:
[...]
>    2.5.4   How do I disklabel my second hard drive?
>            :
>            :
>            This is also a symptom of some of the versions of FreeBSD and 
>            NetBSD where the disklabel code was 'fixed' to only write a 
>            disklabel on a drive with a disklabel.  Oops.
>
>Could this be the problem with pk 0.1.4 also? Should I attempt a disklabel
>with tiny BSD? (This would mean swapping drive devices since tiny BSD
>doesn't work with 2nd drives - I don't want to do this: removing drives, 
>changing jumpers, etc.)

In article <9310022057.AA09324@Sceard.COM> Mike Murphy responded:

>The reference in 2.5.4 above is correct. The patchkit also has the error.
>It's a catch 22. If all else fails, I'll send you a kernel that will work.

I solved this problem myself the hard way.  I'm posting my solution for
the benefit of anyone else who might run into the same problem.

As Mike and the FAQ confirm, the disk must be labeled before it can be
labeled! I swapped my 2nd drive to be the first, booted from Tiny BSD,
and ran install. This labeled the disk. I was then able to replace and
boot from my first drive and properly disklabel my 2nd drive with my
desired configuration.

I hope this gets fixed in future [Net/Free/386]BSD's!! :-)