Subject: Re: IIsi installer/running error(s)
To: None <port-mac68k@NetBSD.ORG>
From: Stephen C. Brown <sbrown@shellx.best.com>
List: port-mac68k
Date: 04/15/1996 13:13:48
Apologies to Bill Studenmund for mistakenly directing a reply directly to
him.  Here it is for the rest of the list:

>Date: Mon, 15 Apr 1996 13:10:29 -0800
>To:wrstuden@loki.stanford.edu (Bill Studenmund)
>From:sbrown@shellx.best.com (Stephen C. Brown)
>Subject:Re: IIsi installer/running error(s)
>
>
>If anyone is chomping at the bit for a fix, then get the following
>executable:
>
>ftp://ftp.best.com/pub.s/sbrown/MacBSDInstaller1.0.sea.hqx
>
>I changed one line in interface.c to cause the installer to ignore
>anything other than SCSI device type 0(hard drive).  This tests out ok
>and also gets rid of the consistent SCSIRead() and SCSIComplete() errors.
>The generated /etc/fstab comes up with the proper netbsd device numbers.
>
>Let me know if you have any problems with this.
>
>Steve Brown
>
>p.s. If anyone is curious, all I did was change the line that read:
>                if (inquiry(i,buffer)==0)
>        to read:
>                if ((inquiry(i,buffer)==0)&&(buffer[0]==(char) 0x0))
>
>        the very first byte of the buffer returned from inquiry() is the
>        device type.  Device type 0 seems to be the typical hard drive.
>        Device type 5 is cdrom.  I'll look up the references and see what
>        the others possibilities are, but after I've had some sleep :) .
>
>>> First while running Mkfs I got the following error:
>>> Error on SCSIRead(),#5
>>>
>>> Then while running Install I got:
>>> Error on SCSIComplete(), #10
>>
>>Possibly not important. I think I always get the #5 error. One is
>>probably ok.
>>There's a bug in the installer; it doesn't know that CDROMs are cd's,
>>not sd's. So if you have (in accending SCSI ID)
>>
>>Thing:          Installer ID    NetBSD ID
>>Drive A         sd0             sd0
>>CD              sd1             cd0
>>Drive B         sd2             sd1
>>
>>So the generated /etc/fstab comes out wrong.
>>
>>Watch the messages about found SCSI devices at boot time. Find the
>>message for your drive, and make sure that /etc/fstab points to the
>>right place.
>>
>>cpout /etc/fstab, change the sd2a to sd1a, cpin it, and you should be set.
>>You should also be able to mount /dev/sd1a / (is my syntac correct?);
>>have mount not look in /etc/fstab. Then just vi it.
>>
>>Could some kind, gentle, MacOS utility maintainer teach the installer about
>>cd's and st's? This bug comes up often!
>>
>>Take care,
>>
>>Bill
>