Subject: None
To: None <port-mac68k@NetBSD.ORG>
From: Kent Boortz <kent@erlang.ericsson.se>
List: port-mac68k
Date: 09/16/1997 21:04:11
[Already posted in another thread but that thread got a bit of topic]

The installation of the "base" set is terminated with

  drwxr-xr-x     0/0             0 Sun Aug 31 18:26 1997 ./usr/share/man/cat8
  Error on SCSIRead(), # 5
  Error on SCSIWrite(), # 5
  Error on SCSIRead(), # 5
  Error on SCSIRead(), # 5
  Error on SCSIWrite(), # 5
  Error on SCSIRead(), # 5
  pos = 0, i = 22, fs = /
  alloccgblk: can't find blk in cyl

I have tried to install on a IBM 2 GB disk and get this error
message. Unfortunately I get the same error message trying to create
the devices so I can't even boot in single user mode.

I read about the tip increasing the memory to the installer or to
install the rest that didn't install by copying the file in
minishell. I tried both with no success. I think we might talk about
different problems with the same symptoms.

If I boot NetBSD on a Zip and do "disklabel sd0" (the IBM disk) the
output make no sense. First my hardware setup:

Hardware:       MacIIsi, 17Meg Ram, IBM UltraStar 2GB
                
Software:       NetBSD current-970829
                Mkfs 1.45
		Installer 1.1e
		APS PowerTools 4.1

Formatted and partitioned disk with APS PowerTools 4.1.

Installing to a combined Root & Usr of 1570 MB that was placed after
one MacOS partition and the Swap partition.

It was initialized with the values suggested by "Mkfs_1.45":

         Sector Size:     512
          Block Size:    8192
        Bytes/Sector:     512
       Sectors/Track:     171
     Tracks/Cylinder:       3
       Num Cylinders:    8188
         Bytes/Inode:    4096
     Cylinders/Group:      16
 Spare Sectors/Track:       0
    File System Size: 3140417
 Optimize Space/Time:   Space

The installer reports the disk like

  sd0a: Root 'NetBSD Root & Usr' at  268524 size 3140417
  sd0b: Swap 'NetBSD Swap'       at    6380 size  262144
  sd0d: HFS 'MacOS'              at 3408941 size  817784
  sd0e: Other (APPLE_DRIVER...   at      59 size       5
  sd0f: Other (APPLE_DRIVER...   at     192 size      12
  sd0h: APPLE_FREE 'Extra'       at     204 size      32
  sd0i: APPLE_FREE 'Extra'       at 1227580 size 2999145

The last entry looks strange, it will be a partition inside the
"NetBSD Root & Usr" partition ending at the same block.

But I thought that I could boot up NetBSD from my Zip and do "newfs"
from there instead. NOT. If I ran "disklabel sd0" I got

    Bytes/sector: 512
   Sectors/track: 172
  Tracks/cyliner: 3
Sectors/cylinder: 516
       Cylinders: 8188
    Tot. sectors: 4226725

This is strange because when formatting we where suggested and
formatted with 171 sectors/track, now "disklabel" reports 172.

The rest of the output from "disklabel sd0":

        size     offset  fstype

  a:  817784    3408941  HFS      6606-8191
  b:  262144       6380  swap       12-520
  c: 4226725          0  unused      0-8191
  d:       5         59  unknown     0-0
  e:     128         64  unknown     0-0
  f:      12        192  unknown     0-0
  g:      32        204  unknown     0-0

The letters are moved but in most part it does match the above
one. But "e" is not in the installer listing and the "NetBSD Root &
Usr" partition is gone!

By the way, "disklabel -r" does not work, is this by design or a bug?

Do you know what I can try next to get closer to a working
NetBSD installation?

/kgb