Subject: Problems installing NetBSD-1.1
To: None <port-pmax@NetBSD.ORG>
From: Helge MEINHARD, CERN-ECP/FEX <Helge.Meinhard@cern.ch>
List: port-pmax
Date: 03/11/1996 07:59:06
Hi,

I've got the following situation: Last year, I installed NetBSD 0.9 (or 
whatever it was called) on a DECstation 5000/120 (rz1). I would like to 
upgrade to 1.1 now. I fetched Arne's miniroot and the boot blocks. Using 
plain disklabel while the machine was up under NetBSD 0.9, I wrote a 
disklabel and the bootblocks to rz2. The disk looks as follows:

# disklabel -r rz2
# /dev/rrz2c:
type: SCSI
disk: rz24
label: 
flags:
bytes/sector: 512
sectors/track: 38
tracks/cylinder: 8
sectors/cylinder: 304
cylinders: 1348
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   cpg]
  a:    81984   163840    4.2BSD     1024  8192    16   # (Cyl.  538*- 808*)
  b:   131072    32768      swap                        # (Cyl.  107*- 538*)
  c:   409792        0    unused     1024  8192         # (Cyl.    0 - 1347)
  d:    32768        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 107*)
  e:    81984   245824    4.2BSD     1024  8192    16   # (Cyl.  808*- 1078*)
  f:    81984   327808    4.2BSD     1024  8192    16   # (Cyl. 1078*- 1347*)
  g:   245952   163840    unused     1024  8192         # (Cyl.  538*- 1347*)

I then dd'd the miniroot:

# dd if=miniroot-1.1+tar+gzip+mount_ffs of=/dev/rz2c bs=512 seek=163840
4476+1 records in
4476+1 records out
2291722 bytes transferred in 41 secs (55895 bytes/sec)

Subsequent boot attempts fail with messages similar to this:

open (3/rz2/netbsd) failed: 21
Can't boot ...

I then rebooted from rz1 and tried to look at the miniroot, but I can't 
even mount the file system:

# mount /dev/rz2a /mnt/tmp
ufs: /dev/rz2a on /mnt/tmp: incorrect super block

Has anybody got an idea what went wrong? Has the disk label or file 
system format changed between 0.9 and 1.1, is the miniroot bad, is the 
disk label wrong, or have I used the wrong dd command?

Thanks in advance,

Helge