*BSD News Article 98717


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!news.syd.connect.com.au!phaedrus.kralizec.net.au!godzilla.zeta.org.au!not-for-mail
From: bde@zeta.org.au (Bruce Evans)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Cannot correct disklabel
Date: 29 Jun 1997 23:17:44 +1000
Organization: Kralizec Internet
Lines: 31
Message-ID: <5p5n9o$20f$1@godzilla.zeta.org.au>
References: <33B368E4.41C67EA6@rockhead.com> <5p1bvb$rd6@uriah.heep.sax.de> <33B59A05.15FB7483@rockhead.com>
NNTP-Posting-Host: godzilla.zeta.org.au
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43703

In article <33B59A05.15FB7483@rockhead.com>,
Paul Newhouse  <newhouse~spam@rockhead.com> wrote:
>J Wunsch wrote:
>
>> Paul Newhouse <newhouse~spam@rockhead.com> wrote:

>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*)

8495072 is probably from an incorrect entry in the slice (DOS partition)
table.  The driver sets sectors/unit to the size of the slice and reduces
the size of the C partition to the size of the slice.  All adjustments
to the sizes are logged.  It is difficult to reduce the size of the C
partition using disklabel, since the label ioctls don't allow reducing
the size of an open partition.  You have to fix the slice table.
-- 
Bruce Evans  bde@zeta.org.au