Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Oct 1995 16:22:35 -0700 (PDT)
From:      Clint Olsen <>
To: (Michael Smith)
Cc:        hardware@FreeBSD.ORG, questions@FreeBSD.ORG
Subject:   Re: scsi(8) requested output here
Message-ID:  <>
In-Reply-To: <> from "Michael Smith" at Oct 13, 95 06:26:31 pm

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

> This has nothing to do with the MD21; you can't edit a disklabel if 
> there isn't one there yet.  You'll have to write one out first.
> disklabel -w -r sd0 <random>

It would be nice if somewhere this little fact was DOCUMENTED IN
THE FAQ!!!!!  <-------  CLUE CLUE CLUE
You know, I really hate to bitch, but did it ever occur to anyone
that one might want to create a label by editing it first?????

> Pick a label at random from /etc/disktab, and then use disklabel -e to
> correct it.

Thanks for the heads up on this, but I would like to point out that
the above advice can cause problems.  Just picking any old random
entry from disktab caused us no end of grief.  You pretty much have
to get the values correct the first time you write the label because
disktab bitches when you try to relabel the disk (and will not let
you) when it happens to move the "c" partition significantly.  Once
we were able to clobber the existing label, using dd, we were able
to rerun disklabel.  We were forced to deal with the cryptic nonsense
of disktab.

So, is there a way to use scsi(8) commands to have a disk spew back
data about its physical characterstics (heads, sectors/track, blah 

I just cannot imagine how much fun this would've been if I had 
intended to split up the disk between DOS and FreeBSD.



Want to link to this message? Use this URL: <>