Subject: Re: help with MacOS/pdisk and disklabel !
To: NetBSD/macppc list <port-macppc@netbsd.org>
From: John Valdes <valdes@uchicago.edu>
List: port-macppc
Date: 08/22/2001 12:09:07
On Wed, Aug 22, 2001 at 05:30:38AM +0200, Samuel Hornus wrote:

> I have used MacOSX's pdisk to split an old HFS partition
> into one HFS and one Apple_Unix_SRV2 partition.
> However, the latter, which I'd like to format in FFS
> (in fact in MSDOS but that is the next question...)
> does not appear under NetBSD when typing 'disklabel wd0'
> 
> How can I acess this partition ? what went wrong ??

I don't know if this is the problem, but there are additional flags
which may need to be set in the Apple_Unix_SRV2 partition in order for
NetBSD to recognize it.  If you can boot your Mac under MacOS, try
using the MacOS version of pdisk Bob Nestor hacked for NetBSD support,
available at

 ftp://ftp.netbsd.org/pub/NetBSD/arch/macppc/macos-utils/pdisk.sea.hqx 

> Second question : can I format a partition in MSDOS file format ?
> I tried newfs_msdos /dev/wd0d but it did not work...

Someone please correct me, but I don't think this is currently
possible for hard drives.  From the (1.5) newfs_msdos man page:

BUGS
     There is currently no way to specify obscure file system parameters.
     Thus, only media with one of the supported capacity values can be format-
     ted.  For the same reason, it's not possible to handle hard disk parti-
     tions.  More options should be added to allow this.  More entries should
     be added to the table of known formats, too.

> (because this is a partition I'd like to share between MacOS and NetBSD
>  and it seems MSDOS is the only file system available on both sides...
>  am I right ?)

That is mountable, readable & writable, correct.  It looks like you'll
have to format the DOS partition under MacOS.  See the FAQ (specifically
http://www.netbsd.org/Ports/macppc/faq.html#disk-sharing) for some
details.

John