[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Interesting Disk Partitions (was - Re: Installation super-woes on PowerBook 3400)



On Thu, Sep 07, 2000 at 10:11:45PM -0500, Rick Cook wrote:
> [root@p7300 /root]# fdisk -l /dev/sdb
>  
> Disk /dev/sdb: 67 heads, 62 sectors, 1009 cylinders
> Units = cylinders of 4154 * 512 bytes
>  
>    Device Boot    Start       End    Blocks   Id  System
> /dev/sdb1             1         3      6200   83  Linux
> /dev/sdb2             4        67    132928   82  Linux swap
> /dev/sdb3            68      1009   1956534   83  Linux                         

looks like a x86 partition table to me.

> [root@p7300 /root]# pdisk -l /dev/sdb
>  
> Partition map (with 512 byte blocks) on '/dev/sdb'
>  #:                type name              length   base    ( size )
>  1: Apple_partition_map Apple                 63 @ 1
>  2:      Apple_Driver43 Macintosh             32 @ 64
>  3:           Apple_HFS MacOS             256770 @ 96      (125.4M)
>  4:     Apple_UNIX_SVR2 Root file system  410832 @ 256866  (200.6M)
>  5:     Apple_UNIX_SVR2 Usr file system  2567700 @ 667698  (  1.2G)
>  6:     Apple_UNIX_SVR2 Unreserved 1      244020 @ 3235398 (119.2M)
>  7:     Apple_UNIX_SVR2 Unreserved 2      400890 @ 3479418 (195.7M)
>  8:     Apple_UNIX_SVR2 Swap              129185 @ 3880308 ( 63.1M)
>  9:           Apple_HFS MacOS             184561 @ 4009493 ( 90.1M)
> 10:          Apple_Free Extra                  3 @ 4194054
> 
> Device block size=512, Number of Blocks=4194056 (2.0G)
> DeviceType=0x0, DeviceId=0x0

interesting, how are you booting this system?  miboot or quik?  if
miboot it seems that the macos rom only insists on a driver for CDs
(or does it???) 

[snip]
> Anyone have a clue why both partition maps are coexisting on the same drive? Do
> I need to do anything to "fix" this?

it just so happens that the structure of the Apple partition table
allows for a intel x86 partition to exist at the same time.  there are
some very rare cases where this might be useful but i really don't see
the point in this case.  (especially since they partitions don't even
match) since the linux kernel has for a while support apple partition
tables i really don't see the point of this anymore but from
/usr/share/doc/mac-fdisk/README.gz:

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.

At present file systems are not compatible between Linux & MkLinux, but you
can tar stuff into these partitions and tar them out on another machine.


-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpvaN85JwXya.pgp
Description: PGP signature


Reply to: