Subject: Mistery moved..
To: None <current-users@NetBSD.ORG>
From: Gerard J van der Grinten <Gerard.vdGrinten@wldelft.nl>
List: current-users
Date: 07/13/1995 14:00:23
Hallo All,

Some of you might remember that I had severe problems updating NetBSD 1.0
to -current. My system ran fine 1.0 (and for a while 1.0+)
When I build a new kernel it would abort with init dying.
When i builded fsck once and used it (on my working system) it wiped the
disk clean with the most fantastic garbage displays (bad this and that)
you have never seen before.
As it was time to grow I got a new 1 Gb disk and moved the old primary
(Yes, IDE disk) to the secondary position. Rebuilding the boot disk
and putting the latest binary snapshot on it worked like a charm.
Now i looked at my 540Mb secondary disk and fsck again. Bad idea.
So I started playing around and think that the lba addressing screws up
the drive one way or the other.
Configuration is 486SX 8Mb, wd31000 prim, lps540a as secondary disk
and adaptec 1542b as scsi.
Here is some output from the various commands. If anybody knows what is
going on, please tell. 
(when using partition wd1e fsck goes bad on 1760, 1761 and following)

--------------------------------------------------------------------------------
output from fdisk /dev/rwd1d:

******* Working on device /dev/rwd1d *******
parameters extracted from in-core disklabel are:
cylinders=1120 heads=16 sectors/track=59 (944 sectors/cylinder)

Figures below won't work with BIOS for partitions not in cylinder 1
parameters to be used for BIOS calculations are:
cylinders=1120 heads=16 sectors/track=59 (944 sectors/cylinder)

Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 0 is:
sysid 0 (unused)
    start 0, size 0 (0 MB), flag 0
	beg: cylinder    0, head   0, sector  1
	end: cylinder    0, head   0, sector  0
The data for partition 1 is:
<UNUSED>
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
sysid 165 (NetBSD or 386BSD)
    start 0, size 1057280 (516 MB), flag 80
	beg: cylinder    0, head   0, sector  1
	end: cylinder 1023, head  15, sector 59
--------------------------------------------------------------------------------

output from disklabel -r wd1:
# /dev/rwd1d:
type: ST506
disk: lps540a
label: second_disk
flags:
bytes/sector: 512
sectors/track: 59
tracks/cylinder: 16
sectors/cylinder: 944
cylinders: 1120
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:    40592        0    4.2BSD     1024  8192    16 	# (Cyl.    0 - 42)
  b:    49088    40592      swap                    	# (Cyl.   43 - 94)
  c:  1057280        0    unused        0     0       	# (Cyl.    0 - 1119)
  d:  1057280        0    unused        0     0       	# (Cyl.    0 - 1119)
  e:   967600    89680    4.2BSD     1024  8192     0 	# (Cyl.   95 - 1119)
--------------------------------------------------------------------------------

output from newfs -m 5 /dev/rwd1a:
/dev/rwd1a:	40592 sectors in 43 cylinders of 16 tracks, 59 sectors
	19.8MB in 3 cyl groups (16 c/g, 7.38MB/g, 1792 i/g)
super-block backups (for fsck -b #) at:
 32, 15200, 30368,
--------------------------------------------------------------------------------

output from fsck -n /dev/rwd1a:
** /dev/rwd1a (NO WRITE)
** File system is already clean
** Last Mounted on 
** Phase 1 - Check Blocks and Sizes
PARTIALLY ALLOCATED INODE I=1760
CLEAR? no

** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1 files, 1 used, 19558 free (14 frags, 2443 blocks, 0.1% fragmentation)
--
Gerard J van der Grinten           pa0gri@net.pa0gri.ampr.org [44.137.1.1]
Elzenlaan 8                        gerard.vdgrinten@wldelft.nl (temp. qrl)
3467 TJ Driebruggen                gvdg%net.pa0gri.ampr.org@uhm.ampr.org (home)
Netherlands  
Phone  -   Home:   (+031)-3487-1606 (per 10-10-95 0348 501606)
       -   Office: (+031)-15-569353 (per 10-10-95 015-2569353)