Subject: newfs trouble on -current
To: None <port-sparc64@netbsd.org>
From: Jochen Kunz <jkunz@unixag-kl.fh-kl.de>
List: port-sparc64
Date: 05/11/2005 14:51:42
Hi.

I am trying to upgrade a U5 from 2.0 to -current. I booted the
netbsd-INSTALL.gz kernel. Sysinst faild when it wanted to re disklabel(8)
the disk. The screen got a bit hosed so I exited sysinst and tried by
hand:
# disklabel sd0
# /dev/rsd0c:
type: unknown
disk: mydisk
label: 
flags:
bytes/sector: 512
sectors/track: 218
tracks/cylinder: 10
sectors/cylinder: 2180
cylinders: 8152
total sectors: 17774160
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

8 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:    263780         0     4.2BSD   1024  8192     0  # (Cyl.      0 - 120)
 b:    525380    263780       swap                     # (Cyl.    121 - 361)
 c:  17774160         0     unused      0     0        # (Cyl.      0 - 8153*)
 e:   2097160    789160     4.2BSD   2048 16384     0  # (Cyl.    362 - 1323)
 f:  14887840   2886320     4.2BSD   2048 16384     0  # (Cyl.   1324 - 8153*)
# disklabel sd0 > dl
# disklabel -r -R sd0 dl
write: No such file or directory


OK, why disklabel, there is already one on the disk, I thought.
So I went to newfs:
# newfs /dev/rsd0f
/dev/rsd0f: 7269.5MB (14887840 sectors) block size 16384, fragment size 2048
        using 40 cylinder groups of 181.75MB, 11632 blks, 22784 inodes.
wtfs: write error for sector 14887839: Undefined error: 0


So, maybe, hmmm and I tried:
# newfs /dev/sd0f
/dev/sd0f: 7269.5MB (14887840 sectors) block size 16384, fragment size 2048
        using 40 cylinder groups of 181.75MB, 11632 blks, 22784 inodes.
super-block backups (for fsck -b #) at:
       32,   372256,   744480,  1116704,  1488928,  1861152,  2233376, 2605600,
  2977824,  3350048,  3722272,  4094496,  4466720,  4838944,  5211168, 5583392,
  5955616,  6327840,  6700064,  7072288,  7444512,  7816736,  8188960, 8561184,
  8933408,  9305632,  9677856, 10050080, 10422304, 10794528, 11166752, 11538976,
 11911200, 12283424, 12655648, 13027872, 13400096, 13772320, 14144544, 14516768,
rdfs: read error for sector 64: Undefined error: 0


From dmesg(8):
esiop0 at pci2 dev 2 function 0: Symbios Logic 53c875 (ultra-wide scsi)
esiop0: using on-board RAM
esiop0: interrupting at ivec 1814
scsibus0 at esiop0: 16 targets, 8 luns per target
[...]
sd0 at scsibus0 target 1 lun 0: <IBM, DGHS09U, 03E0> disk fixed
sd0: 8678 MB, 8152 cyl, 10 head, 218 sec, 512 bytes/sect x 17774160 sectors
sd0: sync (50.00ns offset 15), 16-bit (40.000MB/s) transfers, tagged queueing
cd0 at scsibus0 target 2 lun 0: <TOSHIBA, CD-ROM XM-5701TA, 1557> cdrom removable


The machine runs 2.0 flawlessly.
Any hints?
-- 



tschüß,
         Jochen

Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/