Subject: 1.5_ALPHA2, newfs and rz56
To: None <port-vax@netbsd.org>
From: John Hayward <John.C.Hayward@wheaton.edu>
List: port-vax
Date: 09/13/2000 23:47:23
Dear Vax Fans,
   I reciecently installed 1.5_ALPHA2 on a MicroVax 3100.  Because I had
difficulty with making a file system I have the system netbooting with 
/ mounted via nfs.

   After I label the disk and in the process of doing a newfs it proceeds
to print the backup super blocks then stops with the following error
message:
write error: 0
wtfs: Read-only file system

Follwing that the disk label is messed up.

Mike Dowden suggested a low level format and I found that test 75 on the 
3100 console provided for formatting a scsi drive.  This was performed
successfully - so I believe the hardware is ok.

Is anyone else seeing these kind of problems?

I note that 1632*15*53 = 1297440 where the dmesg indicates 1299174
I don't know if that is because of bad sector forwarding or different
number of sectors per track over the disk or something else.

I'm including output from dmesg, disklabel before, newfs and disklabel
after.

Are there special flags which need to be in disktab or do I need to
specify a bootstrap in the newfs?

Any pointers would be appreciated.
johnh...

===========
Script started on Wed Sep 13 21:24:51 2000
csserver4# dmesg
NetBSD 1.5_ALPHA2 (GENERIC) #1: Tue Sep 12 09:14:10 PDT 2000
    matt@cheetah.local:/other/vax/kobj/GENERIC

MicroVAX 3100
cpu: KA41/42
cpu: Enabling primary cache, no secondary cache present
total memory = 32640 KB
avail memory = 27268 KB
using 433 buffers containing 1732 KB of memory
mainbus0 (root)
vsbus0 at mainbus0
vsbus0: interrupt mask 8
le0 at vsbus0 csr 0x200e0000 vec 120 ipl 14 maskbit 5 buf
0x54e000-0x55dfff
le0: address 08:00:2b:1d:d8:cc
le0: 32 receive buffers, 8 transmit buffers
dz0 at vsbus0 csr 0x200a0000 vec 304 ipl 14 maskbit 6
dz0: 4 lines
si0 at vsbus0 csr 0x200c0080 vec 770 ipl 14 maskbit 1
si0: NCR5380, SCSI ID 6
scsibus0 at si0: 8 targets, 8 luns per target
si1 at vsbus0 csr 0x200c0180 vec 774 ipl 14 maskbit 0
si1: NCR5380, SCSI ID 6
scsibus1 at si1: 8 targets, 8 luns per target
scsibus0: waiting 2 seconds for devices to settle...
st0 at scsibus0 target 5 lun 0: <, , > SCSI1 1/sequential removable
st0: rogue, drive empty
scsibus1: waiting 2 seconds for devices to settle...
sd0 at scsibus1 target 1 lun 0: <DEC, RZ56     (C) DEC, 0400> SCSI1
0/direct fixed
sd0: 634 MB, 1632 cyl, 15 head, 53 sec, 512 bytes/sect x 1299174 sectors
sd1 at scsibus1 target 2 lun 0: <DEC, RZ56     (C) DEC, 0400> SCSI1
0/direct fixed
sd1: 634 MB, 1632 cyl, 15 head, 53 sec, 512 bytes/sect x 1299174 sectors
boot device: le0
root on le0
...
csserver4# disklabel sd1
# /dev/rsd1c:
type: unknown
disk: rz56
label:
flags:
bytes/sector: 512
sectors/track: 53
tracks/cylinder: 15
sectors/cylinder: 795
cylinders: 1632
total sectors: 1297440
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

3 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  a:    65985        0     4.2BSD     1024  8192     0   # (Cyl.    0 -
82)
  b:   100000    65985     unused        0     0         # (Cyl.   83 -
208*)
  c:  1297440        0     unused        0     0         # (Cyl.    0 -
1631)
csserver4# disklabel -r sd1
# /dev/rsd1c:
type: unknown
disk: rz56
label:
flags:
bytes/sector: 512
sectors/track: 53
tracks/cylinder: 15
sectors/cylinder: 795
cylinders: 1632
total sectors: 1297440
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

3 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  a:    65985        0     4.2BSD     1024  8192     0   # (Cyl.    0 -
82)
  b:   100000    65985     unused        0     0         # (Cyl.   83 -
208*)
  c:  1297440        0     unused        0     0         # (Cyl.    0 -
1631)

csserver4# newfs /dev/rsd1a
Warning: 1 sector(s) in last cylinder unallocated
/dev/rsd1a:     65984 sectors in 83 cylinders of 15 tracks, 53 sectors
       32.2MB in 6 cyl groups (16 c/g, 6.21MB/g, 1344 i/g)
super-block backups (for fsck -b #) at:
    32, 12816, 25600, 38384, 51168, 63952,
write error: 0
wtfs: Read-only file system
csserver4# disklabel -r sd1
disklabel: no disklabel
csserver4# disklabel sd1
# /dev/rsd1c:
type: SCSI
disk: RZ56     (C) DE
label: fictitious
flags:
bytes/sector: 512
sectors/track: 53
tracks/cylinder: 15
sectors/cylinder: 795
cylinders: 1632
total sectors: 1299174
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
eadswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

3 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  c:  1299174        0     unused        0     0         # (Cyl.    0 -
1634*)
disklabel: boot block size 0
disklabel: super block size 0
csserver4#
Script done on Wed Sep 13 21:26:08 2000
======