*BSD News Article 98583


Return to BSD News archive

From: Paul Newhouse <newhouse~spam@rockhead.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Cannot correct disklabel
Date: Fri, 27 Jun 1997 00:16:52 -0700
Organization: Rockhead Enterprises
Message-ID: <33B368E4.41C67EA6@rockhead.com>
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)
Lines: 65
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.lava.net!news.flex.com!www.nntp.primenet.com!nntp.primenet.com!dispatch.news.demon.net!demon!news-peer.sprintlink.net!news.sprintlink.net!Sprint!howland.erols.net!newshub2.home.com!newshub1.home.com!news.home.com!nick.arc.nasa.gov!cnn.nas.nasa.gov!not-for-mail
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43616

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:

# /dev/rwd0c:
type: ESDI
disk: BSD
label: BSD
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 8427
sectors/unit: 8495072
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0       # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

7 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   202576       32    4.2BSD     1024  8192    16   # (Cyl.    0*-
200*)
  b:  1033200   202608      swap                        # (Cyl.  201 -
1225)
  c:  8495072        0    unused        0     0         # (Cyl.    0 -
8427*)
  d:  6186064       32    unused        0     0         # (Cyl.    0*-
6136*)
  e:  2797200  1235808    4.2BSD     4096 16384    64   # (Cyl. 1226 -
4000)
  f:  1611792  4033008    4.2BSD        0     0     0   # (Cyl. 4001 -
5599)
  g:   540288  5644800    4.2BSD        0     0     0   # (Cyl. 5600 -
6135)

The "cylinders: 8427" is incorect, it should be 6136.
The "sectors/unit: 8495072" is incorrect, it should be 6186096.

If I change "cylinders", I can write the label but it gets changed 
right back on the next read. (Apparently never actually making it to 
the disk.)

If I change "sectors/unit" I'm told that the "c:" partition extends
beyond the disk.

If I then change the "c:" partition size to the correct size I'm told
"disklabel: ioctl DIOCSDINFO: Open partition would move or shrink".
Apparently the system does not want to make the disk smaller ... if
making a disk larger were only that easy!! *8^)

I've put and entry in "/etc/disktab" but it complains about "Open
partition would ..." also.

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

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