Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Apple Partition Map

From Wikipedia, the free encyclopedia
Computer disk partitioning standard for legacy Macintosh computers

Apple Partition Map (APM) is apartition scheme used to define the low-level organization of data on disks formatted for use with68k andPowerPCMacintosh computers. It was introduced with theMacintosh II.[1]

Disks using the Apple Partition Map are divided intological blocks, with 512 bytes usually belonging to eachblock. The first block,Block 0, contains an Apple-specific data structure called "Driver Descriptor Map" for theMacintosh Toolbox ROM to load driver updates and patches before loading from an MFS or HFS partition.[2] Because APM allows 32 bits worth of logical blocks, the historical size of an APM formatted disk using small blocks[3] is limited to 2TiB.[4]

TheApple Partition Map maps out all space used (including the map) and unused (free space) on disk, unlike the minimal x86master boot record that only accounts for used non-map partitions. This means that every block on the disk (with the exception of the first block,Block 0) belongs to a partition.

Some hybrid disks contain both anISO 9660 primary volume descriptor and an Apple Partition Map, thus allowing the disc to work on different types of computers, including Apple systems.

Intel-based Macs

[edit]
Further information:Mac transition to Intel processors

For accessing volumes, both APM andGPT partitions can be used in a standard manner withMac OS X Tiger (10.4) and higher. For starting an operating system,PowerPC-based systems can only boot from APM disks.[5] In contrast,Intel-based systems generally boot from GPT disks.[1][6][7] Nevertheless, older Intel-based Macs are able to boot from APM, GPT (GUID Partition Table) and MBR (Master Boot Record, using theBIOS-Emulation called EFI-CSM i.e. theCompatibility Support Module provided byEFI).

Intel-based models that came with Mac OS X Tiger (10.4) orLeopard (10.5) preinstalled had to be able to boot from both APM and GPT disks due to the installation media for theseuniversal versions of Mac OS X, which are APM partitioned in order to remain compatible with PowerPC-based systems.[8] However, the installation of OS X on an Intel-based Mac demands a GPT partitioned disk or will refuse to continue, the same way installation on a PowerPC-based system will demand an APM partitioned destination volume.Cloning an already installed OS X to an APM partition on Intel systems will remain bootable even on 2011 Intel-based Macs. Despite this apparent APM support, Apple never officially supported booting from an internal APM disk on an Intel-based system. The one exception for a universal version of Mac OS X (Tiger or Leopard) is an official Apple document describing how to set up a dual bootable external APM disk for use with PowerPC and Intel.[9]

Layout

[edit]

Each entry of the partition table is the size of one data block, which is normally 512 bytes.[1][10] Each partition entry on the table is the size of one block or sector of data. Because the partition table itself is also a partition, the size of this first partition limits the number of entries to the partition table itself.

The normal case is that 64 sectors (64 × 512 = 32 KB) are used by theApple Partition Map: one block for theDriver Descriptor Map asBlock 0, one block for the partition table itself and 62 blocks for a maximum of 62 data partitions.[11]

Each partition entry includes the starting sector and the size, as well as a name, a type, a position of the data area, and a possible boot code. It also includes the total number of partitions in that partition table.[12] This ensures that, after reading the first partition table entry, the firmware is aware of how many blocks more to read from the media in order to process every partition table entry. All entries are inbig-endian byte-order.[citation needed]

AddressSize
in bytes
ContentsRequired?
DecimalHex
00x00001signature1 (ASCII value"P")No
10x00011signature2 (ASCII value"M")No
2–30x00022reservedNo
4–70x00044number of partitions (total)Yes
8–110x00084starting sector of partitionYes
12–150x000C4size of partition (in sectors)Yes
16–470x001032name of partition (fixed ASCII right-side NULL padded)No
48–790x003032type of partition (fixed ASCII right-side NULL padded)No
80–830x00504starting sector of data area in partitionNo
84–870x00544size of data area in partition (in sectors)No
88–910x00584status of partitionNo
92–950x005C4starting sector of boot codeNo
96–990x00604size of boot code (in bytes)No
100–1030x00644address ofbootloader codeNo
104–1070x00684reservedNo
108–1110x006C4boot code entry pointNo
112–1150x00704reservedNo
116–1190x00744boot codechecksumNo
120–1350x007816processor type (fixed ASCII right-side NULL padded)No
136–5110x0088376reservedNo

Partition identifiers

[edit]

Types beginning with "Apple_" are reserved for assignment by Apple, all other custom defined types are free to use. However registrationwith Apple is encouraged.

Identifier / typeContents /file systemName (typical)Remarks
Apple_BootbootloaderMOSX_OF3_Booter,eXternal booterThis boot partition is used by Mac OS X onNew World Macs (Open Firmware 3.0 and greater) when the file system on the main partition is not supported by Open Firmware, like in a software RAID configuration or when using a HFS+ case-sensitive or a UFS file system. It containsBootX on an HFS filesystem.
Apple_Boot_RAIDbootloaderRaid Partition
Apple_BootstrapNewWorld bootblockAlthough it is a generalOpen Firmware (New World) boot partition, it is specifically used byyaboot andGRUB for loading PowerPCLinux, and will not automount under Mac OS X. It must be HFS formatted, so that it can be accessed by Open Firmware.
Apple_Driverdevice driverMacintoshClassic Mac OS drivers partition
Apple_Driver43SCSI Manager 4.3device driverMacintoshClassic Mac OS drivers partition
Apple_Driver43_CDSCSICD-ROMdevice driverMacintoshClassic Mac OS drivers partition
Apple_Driver_ATAATAdevice driverMacintoshClassic Mac OS drivers partition
Apple_Driver_ATAPIATAPIdevice driverMacintoshClassic Mac OS drivers partition
Apple_Driver_IOKitI/O KitdriverMacintoshClassic Mac OS drivers partition
Apple_Driver_OpenFirmwareMacintosh
Apple_ExtraunusedThis identifier masks an unused partition map entry.
Apple_Freefree spaceExtraThis identifier masks free space as a partition map entry.
Apple_FWDriverFireWiredevice driverMacintoshClassic Mac OS drivers partition
Apple_HFSHierarchical File SystemApple_HFSWhile normally a HFS or HFS+ volume for Mac OS and Mac OS X, it can also contain an MS-DOS formatted file system (File Allocation Table, which can be accessed by Mac OS and Mac OS X).
Apple_HFSXHFS PlusThis partition contains a HFS+ volume without a HFS wrapper. HFSX was introduced withMac OS X 10.3 and is only used in special cases, like case sensitive HFS+. HFSX is the standard partition type on Intel-based Macs (which use GPT instead of APM).
Apple_LoaderSecondaryLoaderLikeApple_Boot but onOld World Macs, it is used when Mac OS X is installed on a file system not readable by Open Firmware. This partition does not contain a filesystem—instead it contains theBootXmachine code inXCOFF format. This partition type was discontinued with Mac OS X 10.3.
Apple_MDFWfirmwarefirmwareThis partition is used by iPod to load the firmware/OS.
Apple_MFSMacintosh File SystemThis partition is used by Mac OS for theMacintosh File System (MFS), which was introduced with theMacintosh 128K in 1984.
Apple_partition_mappartition mapAppleThe partition map is also a partition of its own. It can vary in size depending on how many partitions it may contain.
Apple_PatchespatchesPatch PartitionMac OS classicpatch partition
Apple_PRODOSProDOSProDOS file system
Apple_RAIDRAIDApple_RAID_OfflineV2This identifier marks a Mac OS X partition used in a software RAID configuration. It normally contains the same filesystems a regular Mac OS X installation would have, like HFS/HFS+ or UFS. The separate boot partitionApple_Boot is mandatory.
Apple_Rhapsody_UFSUnix File SystemMac OS X ServerThis partition contains aUnix File System (UFS) used by the AppleRhapsody operating system (a development name marking the transition fromOPENSTEP to Mac OS X) and is also used byMac OS X Server 1.0 through 1.2 v3.
Apple_ScratchemptyThis identifier marks an empty partition.
Apple_SecondSecond stage bootloader
Apple_UFSUnix File SystemMac OS XThis partition contains aUnix File System (UFS) and is used by Mac OS X, Mac OS X Server (Version 10.0 and newer) and variousUnix-like operating systems.
Apple_UNIX_SVR2A/UX, UnixOriginally introduced for A/UX (Apple Unix operating system based onSystem V Release 2, henceSVR2) on the68k, it was later reused forMkLinux which used theExtended file system. It is the standard partition identifier for manyUnix-like operating systems, includingLinux andNetBSD. It may contain any file system suitable for the installed operating system. If bootable, a file system that can be read by the Open Firmware bootloader fromApple_Bootstrap (e.g. yaboot) must be used.
Apple_VoidISO9660paddingAdummy partition map entry to ensure correct partitionalignment on bootable media.
Be_BFSBe File SystemThis partition contains aBe File System (BFS) and is normally used byBeOS.
MFSTiVo Media File SystemMFS application region,MFS media regionUsed to hold the proprietary Media File System on TiVo hard drives formatted using Apple Partition Map.

Partition status

[edit]

Partition status is abit field composed of the flags:

ValueDescriptionSystem
0x00000001entry is validA/UX
0x00000002entry is allocatedA/UX
0x00000004entry in useA/UX
0x00000008entry contains boot informationA/UX
0x00000010partition is readableA/UX
0x00000020partition is writableA/UX, Macintosh
0x00000040boot code isposition independentA/UX
0x00000100partition containschain-compatible driverMacintosh
0x00000200partition contains a real driverMacintosh
0x00000400partition contains achain driverMacintosh
0x40000000automatically mount at startupMacintosh
0x80000000the startup partitionMacintosh

See also

[edit]

References

[edit]
  1. ^abc"Technical Note TN2166 – Secrets of the GPT". Apple. Retrieved2013-02-24....a standard block size of 512 bytes...Apple did consider extending APM to support larger disks. However, as such a change would break all existing partitioning tools...
  2. ^Mac OS: Technical overview of disk volume structures
  3. ^Apple Support Communities:Guid Partition or Apple Partition? (2012)
  4. ^MacTech Magazine:Apple's Transition from Apple Partition Map to the GUID Partition Table by Criss Myers
  5. ^Apple Mailing List:Subject: Re: Apple Partition Scheme or GUID Partition SchemeArchived 2009-04-06 at theWayback Machine, Timothy Standing, 2006-04-30
  6. ^Apple Support Communities:Create a bootable clone using Disk Utility (2014): an example of problems trying to boot on an Intel Mac using an APM partitioned drive.
  7. ^Apple Support Communities:Running Mavericks + FCPX on External Boot Drive? (2014):OS X Mavericks does not boot from APM partitioned drives.
  8. ^OWC:Booting your Intel Mac to an APM-formatted drive, M. Christopher Stevens
  9. ^Mac OS X 10.5: Creating and maintaining a bootable "universal" external disk
  10. ^Rebe, René; Klaus, Susanne (2007)."Creating custom Linux solutions – Apple Partition Map".T2 System Development Environment.While the original intent was to handle various block sizes, in practice only 512 byte blocks are supported.
  11. ^"Yellow Dog Solutions – Attaching Firewire Disks to a Linux Box". Fixstars Corporation. Archived fromthe original on 2009-10-13. Retrieved2013-02-24.Comment: The commandpdisk -l /dev/sda shows a size of 63 blocks for theApple_partition_map. There is a multitude of examples like this to be found on the internet.
  12. ^"IOStorageFamily/IOApplePartitionScheme.h at IOStorageFamily-116 - apple-oss-distributions/IOStorageFamily". Apple. 2009. Retrieved2025-11-22.

External links

[edit]
Disk and
non-rotating
Optical disc
Flash memory andSSD
host-sidewear leveling
Distributed parallel
NAS
Specialized
Pseudo
Encrypted
Types
Features
Access control
Interfaces
Lists
Layouts
Processes
Bootingfirmware
Types
Interfaces
Implementations
Hybrid firmware bootloader
Bootloaders
Implementations
Partition layouts
Partitions
Utilities
Software
Hardware
Network boot
ROM variants
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=Apple_Partition_Map&oldid=1323539904"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp