*BSD News Article 98684


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!platinum.sge.net!como.dpie.gov.au!news.gan.net.au!act.news.telstra.net!vic.news.telstra.net!news.mira.net.au!news.netspace.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.Hawaii.Edu!news.caldera.com!enews.sgi.com!news.corp.sgi.com!news.sgi.com!csulb.edu!gatech!howland.erols.net!newshub2.home.com!newshub1.home.com!news.home.com!nick.arc.nasa.gov!cnn.nas.nasa.gov!not-for-mail
From: Paul Newhouse <newhouse~spam@rockhead.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Cannot correct disklabel
Date: Sat, 28 Jun 1997 16:11:01 -0700
Organization: Rockhead Enterprises
Lines: 67
Message-ID: <33B59A05.15FB7483@rockhead.com>
References: <33B368E4.41C67EA6@rockhead.com> <5p1bvb$rd6@uriah.heep.sax.de>
NNTP-Posting-Host: wanker.nas.nasa.gov
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.1.6-RELEASE i386)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43693

J Wunsch wrote:

> Paul Newhouse <newhouse~spam@rockhead.com> wrote:

> > I have a Western Digital Caviar 3.02GB IDE drive that I'm trying to
> > set up as the second disk in this system.  The following disklabel is
> > apparently on the disk:

> Who put it there?

I don't know.  It looks like the label on the 4GB SCSI disk at sd0 on
this system.

>Why are you so confident that it's wrong?

The disk documents say it has 6136 cylinder, 16 heads(tracks) and 63
sectors per track.

  6136*63*16  = 6185088 != 8495072 

> > The "cylinders: 8427" is incorect, it should be 6136.
 
> This number is totally irrelevant.  As are the ``sectors per track''
> and ``tracks per cylinder'' values.

So how does this explain why I can't change it?
 
> > The "sectors/unit:  is incorrect, it should be 6186096.

My mistake, the number I meant to type in the original mail message was 
6185088.
 
> This number is relevant, and should match the number that's being
> announced during the device probe (or can be found in the data
> sheets), if BSD owns the entire disk.  If BSD owns just a slice, this
> number should reflect the slice sice.

You mean, like, this number "6185088", from the log files:

  Jun 24 17:17:38 wanker /kernel: wdc0: unit 0 (wd0): <WDC AC33100H>
  Jun 24 17:17:38 wanker /kernel: wd0: 3020MB (6185088 sectors), 6136
        cyls, 16 heads, 63 S/T, 512 B/S

> > Anybody have any clues as to how to get the disklabel on the disk set to
> > the correct values?
> 
> Trash it.

It's already trashed.  I was looking for some pointers on how to fix it.
"disklabel" doesn't seem up to the task.  I was trying to get :

    c:  8495072        0    unused        0     0         # (Cyl.    0 -
8427*)

Set to the correct value.  Apparently the kernel thinks the c
slice/partition cannot be moved or shrunk.  Nevermind I'm wiping the
entire disk at this point and starting from scratch.  What is being
protected here is a blank (except of course for the bogus label) disk
and some non-existent disk ... how useful.

> Never trust an operating system you don't have sources for. ;-)

If you don't have source IT's FIRMWARE!! *8^]

Paul
-- 
ISDN is almost like actually being connected to the net.