Subject: New disklabel...
To: current <current-users@sun-lamp.cs.berkeley.edu>
From: D. Jay Newman <jay@qabalah.cac.psu.edu>
List: current-users
Date: 04/04/1994 11:31:16
Hi:

I am trying to relabel my primary drive so that I can have the newest
boot blocks.  This is a totally NetBSD drive, and it was originally
labelled with the NetBSD 0.9 installation disk.

When I try to relabel the drive I get:

# disklabel -w -r sd0 jay1 "boot" sdboot bootsd
partition e: offset past end of unit

I get the same error if I don't include a label parameter ("boot").
I'm probablly doing something stupid, but I've looked over these
partition numbers, and they seem right to me.

When I read the label, I get:

type: SCSI
disk: jay1
label: 
flags:
bytes/sector: 512
sectors/track: 76
tracks/cylinder: 4
sectors/cylinder: 304
cylinders: 2218
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

5 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    19760        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 64)
  b:    41040    19760      swap                        # (Cyl.   65 - 199)
  c:   674272        0    unused        0     0         # (Cyl.    0 - 2217)
  d:   674272        0    unused        0     0         # (Cyl.    0 - 2217)
  e:   613472    60800    4.2BSD     1024  8192    16   # (Cyl.  200 - 2217)

The disktab entry for this disk (taken from this information) is:

jay1|Maxtor 7345srB: \
	:dt=SCSI:ty=winchester:se#512:nt#4:ns#76:nc#2218:\
	:pa#19760:oa#0:ta=4.2BSD:ba#8192:fa#1024:\
	:pb#41040:ob#19760:tb=swap:\
	:pc#674272:oc#0:\
	:pd#674272:od#0:\
	:pe#613472:oe60800:te=4.2BSD:be#8192:fe#1024:

If anybody can help me, I would appreciate this greatly.  As far as I
know it, this disk has been working fine with the old boot blocks.
-- 
D. Jay Newman           ! I'm now on the World Wide Web.  To see more
dn5@psu.edu             ! about me (and trade MtG cards), check out URL
jay@qabalah.cac.psu.edu ! http://qabalah.cac.psu.edu/~jay/jay.html

------------------------------------------------------------------------------