Subject: Re: Booting new laptops (Was Re: OF boot string (Re: 1.5.1_BETA2 on iBook2))
To: Nathan J. Williams <nathanw@MIT.EDU>
From: Bob Nestor <rnestor@augustmail.com>
List: port-macppc
Date: 07/08/2001 22:31:13
mw@blobulent.com

>At 12:48 PM -0400 7/6/01, Nathan J. Williams wrote:
>
>:)Okay. I've now tried up to 39 with no success in that syntax. What
>:)does "partition" mean in this context, anyway? Is it the same thing
>:)that I created when I used Drive Setup to repartition my disk for
>:)MacOS and NetBSD, or something else?
>
>No, it is the logical order on the drive.  Drive Setup injects about 8
>"partitions" onto the drive, which are MacOS drivers.  The "partitions"
>that you set up Drive Setup are the user-accessible ones.  Open Firmware
>doesn't know the difference between driver and user-accessible, and will
>fail if you tell it to use a driver partition (usually 1 thru 8).
>
>To make matters more confusing, the partition numbering in NetBSD is also
>different, based on whether the partition has A/UX flags indicating that
>it's a UNIX filesystem.

Some third party disk formatters also scramble the order of the entries 
in the Disk Partition Map so they don't necessarily follow in the same 
order as the partitions they map.  I'm not sure if ofwboot looks for 
partitions through the Map Entries, but NetBSD does and this can cause 
some problems locating disk partitions. 

If you're really curious about the way your disk is organized and what 
the partition numbers are you can use the "V" option in the version of 
pdisk that I modified for NetBSD.  It also has the ability to set and 
display the A/UX partition flags.  The latest version should fix the 
problem about not being able to access the IDE Master drive too and can 
be found at:

   ftp://murphy.dyndns.org/pub/map/pdisk.sea.hqx

There are both 68k and ppc executables in the file along with the 
modified sources. I'd be happy to post it on the NetBSD site if people 
think it's worthwhile.

-bob