Hard disk Partitions

yellowdog-general@lists.terrasoftsolutions.com yellowdog-general@lists.terrasoftsolutions.com
Mon Aug 26 20:28:00 2002


Hi,

you can find a method to prepare hfs and dos partitions on one disk
in the README in the pdisk-0.8 packaeg, which you may have in your Linux. 

>From it,
****
Making a disk with Apple & Intel partitioning
---------------------------------------------
Don't cringe. I know it is an awful hack, but sometimes...
While I don't recommend doing this, it can be useful.
The procedure below is what we did.

The intel map can contain NO MORE THAN FOUR PRIMARY PARTITIONS.
You can't have any extended or logical partitions.  (Well, you might get it
to work but I wouldn't want to try it.)  The disk will NOT BE INTEL BOOTABLE.

1) Use pdisk to initialize an apple partition map.  Don't add any partitions
   yet, just write the map out and quit.

2) Use fdisk to create the primary partitions.  Go into the expert 'x' menu
   in fdisk and print out the table with the sector addresses.  Write the
   start and lengths down some where.  Write the table out.

3) Use pdisk again.  Shrink the partition map down, if necessary, so it
   does not overlap any intel partition.  Create an apple partition for each
   intel partition using the start and length value you got from fdisk.
   Write out the map and quit.
*******

Or, you may use parted from GNU project.

HTH,
kaz

From: "Bill Mueller" <williamm@mai.com>
> I tried your suggestions, and a combination there in, and I still can't get
> both types of partitions onto the same disk.  The HFS system seems to need 4
> extra partitions starting from the beginning of the disk to be reconized as
> an HFS volume.
> 
> I can make an HFS partition on a DOS partitioned drive with the hformat, but
> can't get it to boot MAC OS because it doesn't reconize the volume.  pdisk
> is only reconizing/creating Apple file systems, just as fdisk only does dos.
> 
> The end result of this whole escapade is to be able to boot linux or dos.
> If boot into linux, to boot into MAC OS using Mac on Linux.  All on the same
> disc.
> 
> Is there any type of setup where a link or pointer can be used to simulate
> the HFS volume/dos volume residing at the beginning of the disk?