[net.micro.mac] HFS on MacSCSI?

dave@rocksvax.UUCP (Dave Sewhuk) (01/07/86)

Has anyone out there in net land made this work?  I am still patiently
waiting for my developers package I ordered last month, but in the
interim I obtained a copy of the Hard Disk 20 system disk.  I have
looked at what block #2 has in it and tried to emulate all I saw.
When I set it up like the old file sys, zero out the disk and write block 
with volume info, I get the Sys Bomb 27 (your directory is mangled message).

I thus far have tried to emulate that floppy HFS disk as far as I could.
    1) I duplicated block 2 (except for volume name kept to the same length)
    2) Put the $FFFF at beginning of block 3
    3) Copied the magic numbers in block $A
    4) Copied the beginning of the directory block $B and the stuff in it.

All that and it still refuses to mount.

I then tried to use the old format vol info block and mounted the drive
OK.  I added the format and check control functions to re-write the 
vol info block and zero out the rest of the drive.  I picked "Erase Disk"
and found that it re-wrote the vol info block as expected and crashes when
done with Sys Bomb 27.  Clearly the HFS want more written on the disk
before it will manage it but what?

I guess the next thing to do is do some FSReads and FSWrites to copy that
floppy to the hard disk and see if that will coax the drive into mounting!!

Anyone got any ideas what to do next?

Dave

arpa: Sewhuk.HENR@Xerox.ARPA
uucp: {ihnp4,rochester,amd,sunybcs}!rocksvax!dave
ns: "Sewhuk:HENR801G:Xerox".ns@Xerox.ARPA
-- 
Dave

arpa: Sewhuk.HENR@Xerox.ARPA
uucp: {ihnp4,rochester,amd,sunybcs}!rocksvax!dave
ns: "Sewhuk:HENR801G:Xerox".ns@Xerox.ARPA

rick@ut-ngp.UUCP (Rick Watson) (01/08/86)

Forget trying to duplicate the HFS structure. That is unnecessary.

To make MacSCSI work:

1. The only really necessary driver fix is to initialize dQDrvSize in
the drive queue entry. This needs to be done in np_drv.c Set dQDrvSize
to the number of sectors on your drive.

2. Boot the HD20 startup floppy.

3. Mount your SCSI drive as usual. It will have the normal MFS file
system on it.

4. Select the MacSCSI drive and choose Erase Disk from the Special
menu.  Select Initialize from the dialog box. Your disk will be 
initialized as a HFS volume.

Rick Watson
University of Texas Computation Center
 arpa:   rick@ngp.UTEXAS.EDU   rick@ngp.ARPA
 uucp:   ...seismo!ut-sally!ut-ngp!rick   rick@ut-ngp.UUCP
 bitnet: ccaw001@utadnx
 phone:  512/471-3241

vishniac@wanginst.UUCP (Ephraim Vishniac) (01/08/86)

> Has anyone out there in net land made this work?  I am still patiently
> waiting for my developers package I ordered last month, but in the
> interim I obtained a copy of the Hard Disk 20 system disk.  I have
> looked at what block #2 has in it and tried to emulate all I saw.
> When I set it up like the old file sys, zero out the disk and write block 
> with volume info, I get the Sys Bomb 27 (your directory is mangled message).
> 
I've had no trouble (except the trouble of getting the software, but that's
another story) running HFS through the MacSCSI hardware with my own driver.
To change from flat to HFS, I simply chose "erase disk" from the finder's
"special" menu.  

Erase disk makes a #5 control call (format) followed by a #6 control call
(verify formatting).  For format, I do a real format of the disk, then
rewrite every sector with all zeroes.  For verify, I return success immediately
without doing anything.  The finder then rebuilds the volume header.

***It is very important that your drive queue entry have the correct drive
size in it.***  The last word of the drive queue entry gives the number
of sectors.  IM lists this as an INTEGER, which it was under finder 4.1 and
earlier, but finder 5.0 and later seem to read it as UNSIGNED.  That's a
good thing, because otherwise you were shafted after 16 Megs: finder 4.1
went bananas with "negative" drive sizes.

Has anyone (except Shulman @ Rutgers) received the December supplement?
I'm still waiting for my copy, and Apple's had my $25 for six weeks now...

-- 
Ephraim Vishniac
  [apollo, bbncca, cadmus, decvax, harvard, linus, masscomp]!wanginst!vishniac
  vishniac%Wang-Inst@Csnet-Relay

vishniac@wanginst.UUCP (Ephraim Vishniac) (01/09/86)

> > Has anyone out there in net land made this work?  I am still patiently
> > waiting for my developers package I ordered last month, but in the
> > interim I obtained a copy of the Hard Disk 20 system disk....
> > 
> Has anyone (except Shulman @ Rutgers) received the December supplement?
> I'm still waiting for my copy, and Apple's had my $25 for six weeks now...
> 
I spoke just a little too soon.  *Part one* of the December supplement
arrived a few hours after I wrote that yesterday.  The cover letter
explains:
    Not all the pieces of the Software Supplement Additions were complete
    before Apple closed for the Christmas holidays, so we are sending you
    what we have now in this package; when the Software Supplement 
    Additions package is completed in January 1986 we will send a copy 
    to you automatically, at no additional charge, regardless of which
    of the two packages [HFS Programmers pkg or 12/85 Supplement] you
    originally ordered.
The package does include the HD20 startup with Finder 5.0 (Finder 5.1
is already floating around); a Lisa WorkShop disk; and a MacStuff Disk.
The MacStuff disk has ResEdit 1.0D4 and some new MDS assembler equates.
The major piece of documentation is a new "File Manager" chapter for
IM: 133 pages!  There's also a copy of the HD20 owner's manual and
several technical notes about HFS issues, especially the standard file
package.

-- 
Ephraim Vishniac
  [apollo, bbncca, cadmus, decvax, harvard, linus, masscomp]!wanginst!vishniac
  vishniac%Wang-Inst@Csnet-Relay