I think I severely ruined my partition table. I had a BOOTCAMP partition, a macOS APFS partition, and an exFAT partition. I believe I also had 17GB of unallocated space. I tried to shrink the BOOTCAMP partition, and I think that ruined the partition table. The BOOTCAMP partition errored on startup, and the macOS partition wasn't detected. In Testdisk, use the left/right arrow keys to change the D(eleted) signs of the largest non-overlapping partitions. I’d try writing a partition table with the latest version of TestDisk, where “EFI System 6 0 EFI” and “Mac HFS 69066” are not Deleted and at. Here you can find the changelog of Partition Table Doctor since it was posted on our website on 2011-07-20 21:30:40. The latest version is 3.5 and it was updated on 2018-03-27 04:31:43.
Apple Partition Map (APM) is a partition scheme used to define the low-level organization of data on disks formatted for use with 68k and PowerPCMacintosh computers. It was introduced with the Macintosh II.[1]
Disks using the Apple Partition Map are divided into logical blocks, with 512 bytes usually belonging to each block. The first block, Block 0, contains an Apple-specific data structure called “Driver Descriptor Map” for the Macintosh Toolbox ROM to load driver updates and patches before loading from a 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 2 TiB.[4]
The Apple Partition Map maps out all space used (including the map) and unused (free space) on disk, unlike the minimal x86 master 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 an ISO 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]
For accessing volumes, both APM and GUID partitions can be used in a standard manner with Mac OS X Tiger (10.4) and higher. For starting an operating system, PowerPC-based systems can only boot from APM disks[5] whereas Intel-based systems generally boot from GUID disks.[1][6][7] Nevertheless, Intel-based Macs are able to boot from APM, GPT (GUID Partition Table) and MBR (Master Boot Record, using the BIOS-Emulation called EFI-CSM i.e. the Compatibility Support Module provided by EFI).
Intel-based models that came with Mac OS X Tiger (10.4) or Leopard (10.5) preinstalled had to be able to boot from both APM and GUID disks due to the installation media for these universal 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 GUID 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 the Apple Partition Map: one block for the Driver Descriptor Map as Block 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, but also a name, a type, a position of the data area and 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 have processed every partition table entry. All entries are in big-endian byte-order.[citation needed]
Address | Size in bytes | Contents | Required? | |
---|---|---|---|---|
Decimal | Hex | |||
0 | 0x0000 | 1 | signature1 (ASCII value 'P') | No |
1 | 0x0001 | 1 | signature2 (ASCII value 'M') | No |
2–3 | 0x0002 | 2 | reserved | No |
4–7 | 0x0004 | 4 | number of partitions (total) | Yes |
8–11 | 0x0008 | 4 | starting sector of partition | Yes |
12–15 | 0x000C | 4 | size of partition (in sectors) | Yes |
16–47 | 0x0010 | 32 | name of partition (fixed ASCII right-side NULL padded) | No |
48–79 | 0x0030 | 32 | type of partition (fixed ASCII right-side NULL padded) | No |
80–83 | 0x0050 | 4 | starting sector of data area in partition | No |
84–87 | 0x0054 | 4 | size of data area in partition (in sectors) | No |
88–91 | 0x0058 | 4 | status of partition | No |
92–95 | 0x005C | 4 | starting sector of boot code | No |
96–99 | 0x0060 | 4 | size of boot code (in bytes) | No |
100–103 | 0x0064 | 4 | address of bootloader code | No |
104–107 | 0x0068 | 4 | reserved | No |
108–111 | 0x006C | 4 | boot code entry point | No |
112–115 | 0x0070 | 4 | reserved | No |
116–119 | 0x0074 | 4 | boot code checksum | No |
120–135 | 0x0078 | 16 | processor type (fixed ASCII right-side NULL padded) | No |
136–511 | 0x0088 | 376 | reserved | No |
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 / type | Contents / file system | Name (typical) | Remarks |
---|---|---|---|
Apple_Boot | bootloader | MOSX_OF3_Booter, eXternal booter | This boot partition is used by Mac OS X on New 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 contains BootX on an HFS filesystem. |
Apple_Boot_RAID | bootloader | Raid Partition | |
Apple_Bootstrap | NewWorld bootblock | Although it is a general Open Firmware (New World) boot partition, it is specifically used by yaboot. It must be HFS formatted, so that it can be accessed by Open Firmware. | |
Apple_Driver | device driver | Macintosh | Mac OS classic drivers partition |
Apple_Driver43 | SCSI Manager 4.3 device driver | Macintosh | Mac OS classic drivers partition |
Apple_Driver43_CD | Macintosh | Mac OS classic drivers partition | |
Apple_Driver_ATA | Macintosh | Mac OS classic drivers partition | |
Apple_Driver_ATAPI | Macintosh | Mac OS classic drivers partition | |
Apple_Driver_IOKit | I/O Kit driver | Macintosh | Mac OS classic drivers partition |
Apple_Driver_OpenFirmware | Macintosh | ||
Apple_Extra | unused | This identifier masks an unused partition map entry. | |
Apple_Free | free space | Extra | This identifier masks free space as a partition map entry. |
Apple_FWDriver | Macintosh | Mac OS classic drivers partition | |
Apple_HFS | Hierarchical File System | Apple_HFS | While 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_HFSX | HFS Plus | This partition contains a HFS+ volume without a HFS wrapper. HFSX was introduced with Mac 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 GUID instead of APM). | |
Apple_Loader | – | SecondaryLoader | Like Apple_Boot but on Old 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 the BootXmachine code in XCOFF format. This partition type was discontinued with Mac OS X 10.3. |
Apple_MDFW | firmware | firmware | This partition is used by iPod to load the firmware/OS. |
Apple_MFS | Macintosh File System | This partition is used by Mac OS for the Macintosh File System (MFS), which was introduced with the Macintosh 128K in 1984. | |
Apple_partition_map | partition map | Apple | The partition map is also a partition of its own. It can vary in size depending on how many partitions it may contain. |
Apple_Patches | patches | Patch Partition | Mac OS classic patch partition |
Apple_PRODOS | ProDOS | ProDOS file system | |
Apple_RAID | RAID | Apple_RAID_OfflineV2 | This 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 partition Apple_Boot is mandatory. |
Apple_Rhapsody_UFS | Unix File System | Mac OS X Server | This partition contains a Unix File System (UFS) used by the Apple Rhapsody operating system (a development name marking the transition from OPENSTEP to Mac OS X) and is also used by Mac OS X Server 1.0 through 1.2 v3. |
Apple_Scratch | empty | This identifier marks an empty partition. | |
Apple_Second | Second stage bootloader | ||
Apple_UFS | Unix File System | Mac OS X | This partition contains a Unix File System (UFS) and is used by Mac OS X, Mac OS X Server (Version 10.0 and newer) and various Unix-like operating systems. |
Apple_UNIX_SVR2 | A/UX, Unix | Originally introduced for A/UX (Apple Unix operating system based on System V Release 2, hence SVR2) on the 68k, it was later reused for MkLinux which used the Extended file system. It is the standard partition identifier for many Unix-like operating systems, including Linux and NetBSD. 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 from Apple_Bootstrap (e.g. yaboot) must be used. | |
Apple_Void | A dummy partition map entry to ensure correct partition alignment on bootable media. | ||
Be_BFS | Be File System | This partition contains a Be File System (BFS) and is normally used by BeOS. | |
MFS | TiVo Media File System | MFS application region, MFS media region | Used to hold the proprietary Media File System on TiVo hard drives formatted using Apple Partition Map. |
Partition status[edit]
Partition status is a bit field composed of the flags:
Value | Description | System |
---|---|---|
0x00000001 | entry is valid | A/UX |
0x00000002 | entry is allocated | A/UX |
0x00000004 | entry in use | A/UX |
0x00000008 | entry contains boot information | A/UX |
0x00000010 | partition is readable | A/UX |
0x00000020 | partition is writable | A/UX, Macintosh |
0x00000040 | boot code is position independent | A/UX |
0x00000100 | partition contains chain-compatible driver | Macintosh |
0x00000200 | partition contains a real driver | Macintosh |
0x00000400 | partition contains a chain driver | Macintosh |
0x40000000 | automatically mount at startup | Macintosh |
0x80000000 | the startup partition | Macintosh |
See also[edit]
- Amiga rigid disk block (RDB)
- Extended boot record (EBR)
- GUID Partition Table (GPT)
- Host protected area (HPA)
- Master boot record (MBR)
References[edit]
- ^ abc'Technical Note TN2166 – Secrets of the GPT'. Apple. Retrieved 2013-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…
- ^Mac OS: Technical overview of disk volume structures
- ^Apple Support Communities: Guid Partition or Apple Partition? (2012)
- ^MacTech Magazine: Apple's Transition from Apple Partition Map to the GUID Partition Table by Criss Myers
- ^Apple Mailing List: Subject: Re: Apple Partition Scheme or GUID Partition SchemeArchived 2009-04-06 at the Wayback Machine, Timothy Standing, 2006-04-30
- ^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.
- ^Apple Support Communities: Running Mavericks + FCPX on External Boot Drive? (2014): OS X Mavericks does not boot from APM partitioned drives.
- ^OWC: Booting your Intel Mac to an APM-formatted drive, M. Christopher Stevens
- ^Mac OS X 10.5: Creating and maintaining a bootable 'universal' external disk
- ^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.
- ^'Yellow Dog Solutions – Attaching Firewire Disks to a Linux Box'. Fixstars Corporation. Archived from the original on 2009-10-13. Retrieved 2013-02-24.
Comment: The command pdisk -l /dev/sda shows a size of 63 blocks for the Apple_partition_map. There is a multitude of examples like this to be found on the internet.
- ^'IOApplePartitionScheme.h'. Apple. 2009. Retrieved 2016-08-07.
External links[edit]
- Mac OS: Technical overview of disk volume structures Overview of the elements of a disk volume / partition
- File System Forensic Analysis: PC-based Partitions – Apple partitions Detailed technical analysis of the structure of Apple's partition map.
This article provides a list of frequently asked questions about the GUID Partition Table disk architecture.
Original product version: Windows Server 2012 R2
Original KB number: 302873
Important
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, see How to back up and restore the registry in Windows.
What is a GUID Partition Table disk
The GUID Partition Table disk architecture was introduced as part of the Extensible Firmware Interface initiative. GUID Partition Table is a new disk architecture that expands on the older Master Boot Record (MBR) partitioning scheme that has been common to Intel-based computers.
A partition is a contiguous space of storage on a physical or logical disk that functions as though it were a physically separate disk. Partitions are visible to the system firmware and the installed operating systems. Access to a partition is controlled by the system firmware and the operating system that is currently active.
Why do we need GUID Partition Table
GUID Partition Table disks can grow to a large size. As of July 2001, the Microsoft implementation supports a hard disk of up to 18 EB (512 KB LBAs).
The number of partitions on a GUID Partition Table disk is not constrained by temporary schemes such as container partitions as defined by the MBR Extended Boot Record. The Microsoft implementation of GUID Partition Table is limited to 128 partitions. However, it is important to note that one partition is used for the EFI System Partition, one for the Microsoft Reserved and two more are used if you use dynamic disks. This leaves 124 partitions for data use.
The GUID Partition Table disk partition format is well defined and fully self-identifying. Data that is critical to the operating system is located in partitions and not in unpartitioned or hidden sectors. GUID Partition Table does not allow for hidden sectors or partitions. GUID Partition Table disks use primary and backup partition tables for redundancy and CRC32 fields for improved partition data structure integrity. The GUID Partition Table partition format uses version number and size fields for future expansion.
Each GUID Partition Table partition has a unique identification GUID and a partition content type, so no coordination is necessary to prevent partition identifier collision. Each GUID Partition Table partition has a 36-character Unicode name, which means that any software can present an easily readable name for the partition without any additional understanding of the partition.
What is wrong with MBR partitioning
MBR disks support only four primary partitions table entries or multiple logical partitions in the extended partition. If more partitions are wanted, a secondary structure, an extended partition, is necessary. Extended partitions are then subdivided into one or more logical disks.
Only one extended partition can be present on any given drive, and the maximum number of logical drives is MAXULONG/4. All MBR disk partitions and logical drives must be cylinder-aligned, even on hardware RAID sets that are built from multiple different drives with no clear underlying physical geometry.
MBR partitioning rules are complex and poorly specified. For example, does cylinder alignment mean that each partition must be at least one cylinder in length? An MBR partition is identified by a two-byte field, and coordination is necessary to avoid collision. IBM originally provided that coordination, but as of July 2001, there is no single authoritative list of partition identifiers.
Another common practice is to use partitioned or 'hidden' sectors to hold specific information. That practice is undocumented and results in severe system problems that are difficult to debug. Over the years, broken implementations and tools have been released to the public, making support difficult.
Where can I find the specification for GUID Partition Table disk partitioning
Chapter 16 of the Extensible Firmware Interface specification defines the GUID Partition Table format. This document is available at the following Intel Web site:
Third-party information disclaimer
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.
Is Extensible Firmware Interface required for a GUID Partition Table disk
No. GUID Partition Table disks are self-identifying. All the information that is needed to interpret the partitioning scheme of a GUID Partition Table disk is completely contained in structures in specified locations on the physical media.
How big can a GUID Partition Table disk be
In theory, a GUID Partition Table disk can be up to 264 sectors in a single logical block in length. Logical blocks are commonly 512 bytes or one sector in size.
In practice, Windows XP supports GUID Partition Table disks of up to approximately 18 exabytes in size.
How many partitions can a GUID Partition Table disk have
In theory, an unlimited number. As the July 2001, the Microsoft implementation is 128 partitions. The number of partitions is limited by the amount of space that is reserved for making partition entries.
Can a disk be both a GUID Partition Table disk and an MBR disk
No. However, all GUID Partition Table disks contain a protective MBR that is used for legacy programs that do not understand the GUID Partition Table disk structure.
What is a Protective MBR
The Protective MBR, beginning in sector 0, precedes the GUID Partition Table partition table on the disk. The MBR contains one type 0xEE partition that spans the entire length of the disk. This is the same regardless of the number of partitions that are defined in the GUID Partition Table disk entry array.
Why does the GUID Partition Table have a Protective MBR
The Protective MBR protects GUID Partition Table disks from previously-released MBR disk tools such as Microsoft MS-DOS FDISK or Microsoft Windows NT Disk Administrator. These tools are not aware of GUID Partition Table and do not know how to properly access a GUID Partition Table disk. Legacy software that does not know about GUID Partition Table interprets only the Protected MBR when it accesses a GUID Partition Table disk. These tools will view a GUID Partition Table disk as having a single encompassing (possibly unrecognized) partition by interpreting the Protected MBR, rather than mistaking the disk for one that is unpartitioned.
Why would a GUID Partition Table-partitioned disk appear to have an MBR on it
If this occurred, you must have used an MBR-only-aware disk tool to access the GUID Partition Table disk.
If the disk is larger than the maximum size an MBR can report, will the entire disk contents be protected
The EE partition in the Protective MBR is specified to be the maximum size that is allowable in an MBR.
Can Windows read, write, and boot from GUID Partition Table disks
Can the 64-bit version of Windows XP read, write, and boot from GUID Partition Table disks?
Yes.
Can the 64-bit version of Windows XP read, write, and boot from MBR disks?
The 64-bit version of Windows XP can read and write MBR disks, but cannot boot from MBR disks.
Can the 32-bit version of Windows XP read, write, and boot from GUID Partition Table disks?
No. The 32-bit version will see only the Protective MBR. The EE partition will not be mounted or otherwise exposed to program software.
Can the 32-bit version of Windows XP read, write, and boot from MBR disks?
Yes.
Can Microsoft Windows 2000, Microsoft Windows NT 4.0, or Microsoft Windows 98/95 read, write, and boot from GUID Partition Table?
No. Legacy software will see only the Protective MBR.
What about mixing and matching GUID Partition Table and MBR disks on the same computer
GUID Partition Table and MBR disks can be mixed only on 64-bit systems, and the following restrictions apply:
The Windows XP loader and the boot partition must reside on a GUID Partition Table disk. Other hard disks can be either MBR or GUID Partition Table.
Both MBR and GUID Partition Table disks can be present in a single dynamic disk group. Volume sets can span both MBR and GUID Partition Table disks, however, the MBR cylinder alignment restriction might cause some difficulties with mirroring or striping MBR and GUID Partition Table disks.
What about removable media
Removable media must be MBR or superfloppy.
What is a superfloppy
Removable media without either GUID Partition Table or MBR formatting is considered a superfloppy. The entire media is treated as a single partition.
The media manufacturer performs any MBR partitioning of removable media; Windows never partitions removable media. If the media does have an MBR, only one partition is supported. There is little user-discernible difference between MBR-partitioned media and superfloppies.
Examples of removable media include floppy disk drives, JAZZ disk cartridges, magneto-optical media, DVD-ROM, and CD-ROM. Hard disk drives on external buses such as SCSI or IEEE 1394 are not considered removable.
What is the default behavior of Windows when partitioning media
What is the default behavior of the 64-bit version of Windows XP when partitioning media?
Fixed disks are partitioned by using GUID Partition Table partitioning. GUID Partition Table disks can be converted to MBR disks only if all existing partitioning is first deleted, with associated loss of data.
What is the default behavior of the 32-bit version of Windows XP when partitioning media?
Only MBR disks can be used. MBR disks cannot be converted to GUID Partition Table disks.
Extensible Firmware Interface Firmware
How can a drive letter in the operating system be mapped to a partition in Extensible Firmware Interface Firmware?
There is no inherent mapping between drive letter and partition that can be used to determine one from the other. A basic data partition must be identified by its partition GUID.
How can an Extensible Firmware Interface System Partition be created?
Extensible Firmware Interface System Partitions can be created by using the Extensible Firmware Interface firmware utility Diskpart.efi or the Windows XP command-line utility Diskpart.exe, or they can be created programmatically by using IOCTL_SET_DRIVE_LAYOUT .
What can be changed on a partition
You should not change any partition header entry directly. Do not use disk tools or utilities to make alterations or changes.
What partitioning does Windows XP support on detachable disks
Detachable disks are commonly expected to migrate between computers or simply to be unavailable to the operating system at times. Examples of detachable disks are IEEE 1394 disks, which can be easily disconnected by the end user, or Microsoft Cluster Services (MSCS) shared disks, which move between nodes in a cluster. Windows XP supports only MBR partitioning on detachable disks.
Extensible Firmware Interface System Partition
What is the Extensible Firmware Interface System Partition?
The Extensible Firmware Interface System Partition contains the NTLDR, Boot.ini, and other files that are necessary to boot the computer, such as drivers. The Partition GUID defines the Extensible Firmware Interface System Partition:
DEFINE_GUID (PARTITION_SYSTEM_GUID, 0xC12A7328L, 0xF81F, 0x11D2, 0xBA, 0x4B, 0x00, 0xA0, 0xC9, 0x3E, 0xC9, 0x3B)
Do only GUID Partition Table disks have Extensible Firmware Interface System Partitions?
No, MBR disks can also have Extensible Firmware Interface System Partitions. Extensible Firmware Interface specifies booting from either GUID Partition Table or MBR. The Extensible Firmware Interface System Partitions on an MBR disk is identified by partition type 0xEF. However, Windows XP does not support booting Extensible Firmware Interface from MBR disks or 0xEF partitions.
How big is the Extensible Firmware Interface System Partition?
The Extensible Firmware Interface System Partition is determined by using the following algorithm:
Max (100MB, min (1 percent of physical disk, 1GB))
In other words, the size of the Extensible Firmware Interface System Partition must be the larger of these two numbers, 100 MB or 1 percent of the physical disk size (up to 1 GB). The physical disk size is measured at the time of disk partitioning.
The value 1 percent of the physical disk is calculated at the time that the Extensible Firmware Interface System Partition is created and does not change if the disk is extended later (for example, by using RAID).
Can there be two Extensible Firmware Interface System Partitions on a single disk?
Such a configuration should not be created and will not be supported.
What about two Extensible Firmware Interface System Partitions on two different disks?
Extensible Firmware Interface System Partitions can be replicated for high-availability configurations. Replication must be done manually and the contents must be synchronized manually. Extensible Firmware Interface System Partitions cannot be mirrored.
What does Microsoft place in the Extensible Firmware Interface System Partition?
Microsoft places the loader, and other files that are necessary to boot the operating system in the Extensible Firmware Interface System Partition.
Where should the Extensible Firmware Interface System Partition be placed on the disk?
The Extensible Firmware Interface System Partition must be first on the disk. While there is no architectural requirement, there are numerous reasons why it is beneficial to place the Extensible Firmware Interface System Partition first. The primary reason for this is that it is impossible to span volumes when the Extensible Firmware Interface System Partition is logically between the two data partitions you are attempting to span.
What should a computer or device manufacturer place in the Extensible Firmware Interface System Partition?
The Extensible Firmware Interface System Partition should only include files that are required for booting an operating system, platform tools that run before operating system boot, or files that must be accessed before operating system boot, for example in performing pre-boot system maintenance. Other value-added files or diagnostics that are used while the operating system is running should not be placed in the Extensible Firmware Interface System Partition. It is important to note that the space in the Extensible Firmware Interface System Partition is a limited system resource; its primary purpose is to provide storage for the files that are necessary to boot the operating system.
Where should a computer manufacturer place files such as Platform Diagnostics or other value-added files
Partition Mac For Windows 10
The preferred option is for computer manufacturers to place value-added contents in an OEM-specific partition. Just like MBR OEM partitions, the contents of GUID Partition Table OEM (or other unrecognized) partitions are not exposed (given drive letters or returned in volume lists). Users are warned that deleting the partition can cause the computer to fail to operate. An OEM-specific partition should be placed before the Microsoft Reserved Partition and after any Extensible Firmware Interface System Partition on the disk. Although not architectural, this placement has the same benefits as placing the Extensible Firmware Interface System Partition first. For example, it is also impossible to span volumes when an OEM-specific partition is logically between the two data partitions you are attempting to span.
Placement in the Extensible Firmware Interface System Partition is an option for programs or files that run in the pre-operating system boot environment. However, the Extensible Firmware Interface System Partition is architecturally-shared space and represents a limited resource. Consuming space in the Extensible Firmware Interface System Partition should be considered carefully. Files that are not relevant to the pre-operating system boot environment should not be placed in the Extensible Firmware Interface System Partition.
Microsoft Reserved Partition
What is a Microsoft Reserved Partition?
The Microsoft Reserved Partition reserves space on each disk drive for subsequent use by operating system software. GUID Partition Table disks do not allow hidden sectors. Software components that formerly used hidden sectors now allocate portions of the Microsoft Reserved Partition for component-specific partitions. For example, converting a basic disk to a dynamic disk causes the Microsoft Reserved Partition on that disk to be reduced in size and a newly created partition holds the dynamic disk database. The Microsoft Reserved Partition has the following Partition GUID:
DEFINE_GUID (PARTITION_MSFT_RESERVED_GUID, 0xE3C9E316L, 0x0B5C, 0x4DB8, 0x81, 0x7D, 0xF9, 0x2D, 0xF0, 0x02, 0x15, 0xAE
What disks require a Microsoft Reserved Partition?
Every GUID Partition Table disk must contain a Microsoft Reserved Partition. The Microsoft Reserved Partition must be the first partition after the Extensible Firmware Interface System Partition (if any) on the disk. It is particularly important that the Microsoft Reserved Partition be created before other primary data partitions.
Who creates the Microsoft Reserved Partition?
The Microsoft Reserved Partition must be created when disk-partitioning information is first written to the drive. If the manufacturer partitions the disk, the manufacturer must create the Microsoft Reserved Partition at the same time. If Windows partitions the disk during Setup, it creates the Microsoft Reserved Partition.
Why must the Microsoft Reserved Partition be created when the disk is first partitioned?
After the disk is partitioned, there will be no free space left to create a Microsoft Reserved Partition.
How big is the Microsoft Reserved Partition?
When initially created, the size of the Microsoft Reserved Partition depends on the size of the disk drive:
- On drives that are less than 16 GB, the Microsoft Reserved Partition is 32 MB.
- On drives that are greater than or equal to 16 GB, the Microsoft Reserved Partition is 128 MB. As the Microsoft Reserved Partition is divided into other partitions, it becomes smaller.
What partitions are required by Windows XP
Each bootable drive must contain an Extensible Firmware Interface System Partition, a Microsoft Reserved Partition, and at least one basic data partition that contains the operating system. Each data drive must contain at least a Microsoft Reserved Partition and one basic data partition.
All basic data partitions on the drive should be contiguous. As previously noted, placing an OEM-specific or other unrecognized partition between data partitions imposes limitations on later volume spanning
What is a basic data partition
Basic data partitions correspond to primary MBR partitions 0x6 (FAT), 0x7 (NTFS), or 0xB (FAT32). There is a direct one-to-one correlation between a basic data partition and a drive letter or mount point, other volume device object, or both. Each basic data partition is represented in Windows as a volume device object, and optionally as a mount point or a drive letter.
How is a basic data partition identified
It has the following partition type GUID:
DEFINE_GUID (PARTITION_BASIC_DATA_GUID, 0xEBD0A0A2L, 0xB9E5, 0x4433, 0x87, 0xC0, 0x68, 0xB6, 0xB7, 0x26, 0x99, 0xC7)
Will end users see the Extensible Firmware Interface System Partition, Microsoft Reserved Partition, and OEM-specific partitions
Partition Table Doctor For Mac Osx
The user won't see these partitions exposed in Windows Explorer, nor is any recognized file system exposed to legacy programs such as Context Indexing. The Extensible Firmware Interface System Partition, OEM-specific, and other unrecognized partitions will be visible only in the Disk Management MMC snap-in.
What partitions are mounted by default by Windows
Windows XP exposes only basic data partitions. Other partitions with FAT file systems may be mounted, but not exposed (only programmatically). Only basic data partitions are assigned drive letters or mount points.
The Extensible Firmware Interface System Partition FAT file system is mounted, but not exposed. This allows programs running under Windows to update the contents of the Extensible Firmware Interface System Partition. The following registry key locates the Extensible Firmware Interface System Partition:
HKEY_LOCAL_MACHINE/System/Setup/SystemPartition
The Microsoft Reserved Partition (and any partitions that are created from the Microsoft Reserved Partition) could have recognizable file systems; none are exposed.
Any OEM-specific partitions or partitions that are associated with other operating systems are not recognized by Windows. Unrecognized partitions with recognizable file systems are treated like the Extensible Firmware Interface System Partition. They will be mounted, but not exposed. Unlike MBR disks, there is no practical difference between OEM-specific partitions and other operating system partitions; all are unrecognized.
How can the user see the Extensible Firmware Interface System Partition, OEM, and other unrecognized partitions
The user can use disk management tools such as the Disk Management MMC snap-in or Diskpart.exe. The Microsoft Reserved Partition and any partitions that are created from the Microsoft Reserved Partition are only visible from a command prompt.
What about dynamic disks
Dynamic disks use two different GUID Partition Table partitions:
A data container partition corresponding to the MBR partition 0x42, with the following GUID:DEFINE_GUID (PARTITION_LDM_DATA_GUID, 0xAF9B60A0L, 0x1431, 0x4F62, 0xBC, 0x68, 0x33, 0x11, 0x71, 0x4A, 0x69, 0xAD)
A partition to contain the dynamic configuration database, with the following GUID:DEFINE_GUID(PARTITION_LDM_METADATA_GUID, 0x5808C8AAL, 0x7E8F, 0x42E0, 0x85, 0xD2, 0xE1, 0xE9, 0x04, 0x34, 0xCF, 0xB3)Volumes are created in the data container and are mounted by default. This is the same as the contents of 0x42 MBR partitions.
What happens when a basic disk is converted to dynamic
For a drive to be eligible for conversion to dynamic, all basic data partitions on the drive must be contiguous. If other unrecognized partitions separate basic data partitions, the disk cannot be converted. This is one of the reasons that the Microsoft Reserved Partition must be created before any basic data partitions.
The first step in conversion is to separate a portion of the Microsoft Reserved Partition to create the configuration database partition. All non-bootable basic partitions are then combined into a single data container partition. Boot partitions are retained as separate data container partitions. This is analogous to conversion of primary partitions.
Windows XP differs from Windows 2000 in that basic and extended partitions are preferentially converted to a single 0x42 partition, rather than being retained as multiple distinct 0x42 partitions as on Windows 2000.
How can a specific partition be mounted
You can access the GUID Partition Table disk partitions of different types by using the following tools.
Diskpart.efi:
Firmware: Extensible Firmware Interface System Partition
Microsoft Reserved Partition
Diskpart.exe:
Windows XP: Extensible Firmware Interface System Partition
Microsoft Reserved Partition
Diskgmt.msc:
Windows XP: Extensible Firmware Interface System Partition
DATA
Explorer.exe:
Windows XP: DATA
You can also develop your own tools (by using the Microsoft Win32 or Microsoft Win64 APIs) to access the GUID Partition Table disk partitions at their primitive levels.
How are GUID Partition Table disks managed in Windows XP
GUID Partition Table and MBR disks are managed the same way. Disks can be formatted as GUID Partition Table or MBR by using the Diskpart.exe command-line utility or by using the Disk Management snap-in. Volumes can be created on both GUID Partition Table and MBR disks, and both kinds of disks can be mixed in the same dynamic disk group.
What about FTdisk sets
There is no FTdisk set support on Windows XP for MBR or GUID Partition Table disks. The only support for logical volumes is through dynamic disks.
Can a disk be converted from GUID Partition Table to MBR or MBR to GUID Partition Table
Yes, but only if the disk contains no partitions or volumes. Any data on the disk will be destroyed. GUID Partition Table disks are only supported on the 64-bit version of Windows XP.
What file systems are supported on GUID Partition Table disks
NTFS is recommended on all basic data partitions and all dynamic volumes. Windows Setup and the Disk Management snap-in offer only NTFS. However, you can still use FAT16 and FAT32 on these partitions as well. To circumvent this, the partition or volume must be formatted explicitly by using the Format tool.
Is it possible to make a sector-by-sector copy of a GUID Partition Table disk
No. The Disk and Partition GUIDs will no longer be unique. This must never happen. You can make a sector-by-sector copy of the contents of Extensible Firmware Interface System Partition or basic data partitions.
Is there anyway to copy a whole GUID Partition Table disk by using the OPK imaging tools
Yes; however, there are some key caveats. The OEM Preinstallation Kit (OPK) initializes the Disk and Partition GUIDs to zero. On first boot of Windows XP, the operating system generates unique GUIDs. The OPK only supports generation of Extensible Firmware Interface System Partition, Microsoft Reserved Partition, and basic data partitions.
If a program has recorded any Disk or Partition GUIDs, the program may not work. Any programs, drivers, utilities, or firmware implementations that are supplied by computer manufacturers or program vendors that rely on GUIDs should be capable of handling GUIDs that change from the OPK initialization values to those that are generated by the operating system.
What is the Diskpart.efi MAKE command
It is a way for OEMs to simplify operating system pre-installation and system recovery. This command can easily be extended to create a default disk configuration for the platform. For example, the computer manufacturer could extend the MAKE command to automatically partition the boot drive with an Extensible Firmware Interface System Partition, Microsoft Reserved Partition, an OEM-specific partition, and one basic data partition. For example, consider a possible disk configuration called BOOT_DISK. In the event of disaster recovery, MAKE BOOT_DISK would allow the customer to completely repartition a boot disk to the original factory defaults.
What happens if a duplicate disk or partition GUID is detected
Windows XP will generate new GUIDs for any duplicate Disk GUID, Microsoft Reserved Partition GUID, or Microsoft Reserved Partition basic data GUID upon detection. This is similar to the duplicate MBR signature handling in Windows 2000. Duplicate GUIDs on a dynamic container or database partition cause unpredictable results.
What is the maximum NTFS volume size supported on a GPT disk
This depends on the cluster size that is selected at the time of formatting. NTFS is currently limited to 2^32-1 allocation units. This yields a 256TB volume, using 64k clusters. However, this has only been tested to 16TB, or 17,592,186,040,320 bytes, using 4K cluster size. The following chart shows the NTFS limits based on cluster size:
Cluster size | Maximum NTFS Volume Size (bytes RAW) |
---|---|
512 | 2,199,023,255,040 (2TB) |
1,024 | 4,398,046,510,080 (4TB) |
2,048 | 8,796,093,020,160 (8TB) |
4,096 | 17,592,186,040,320 (16TB) |
8,192 | 35,184,372,080,640 (32TB) |
16,384 | 70,368,744,161,280 (64TB) |
32,768 | 140,737,488,322,560 (128TB) |
65,536 | 281,474,976,645,120 (256TB) |
For example, to format a volume that has a cluster size of 8 KB, you would use a command such as the following from a command prompt, where /a: #### specifies the number of bytes per cluster:
If you choose a cluster size that is too small for the size of the partition, you receive the following error message when you try to format the partition:
The format operation did not complete because the cluster count is higher than expected
To determine the cluster size of a volume, run the following command at a command prompt, and then note the Bytes Per Cluster value:
Mac Os Partition
Note
The <volume> placeholder represents the volume letter.
For example, when you run the fsutil fsinfo ntfsinfo c:
command, you may receive results that resemble the following output:
NTFS Volume Serial Number : 0xf4300f6c300f3560
Version : 3.1
Number Sectors : 0x000000001d17dbee
Total Clusters : 0x0000000003a2fb7d
Free Clusters : 0x000000000102bfa0
Total Reserved : 0x0000000000000800
Bytes Per Sector : 512
Bytes Per Cluster : 4096
Bytes Per FileRecord Segment : 1024
Clusters Per FileRecord Segment : 0
Mft Valid Data Length : 0x000000000e630000
Mft Start Lcn : 0x00000000000c0000
Mft2 Start Lcn : 0x0000000001d17dbe
Mft Zone Start : 0x00000000002185a0
Mft Zone End : 0x0000000000218740
RM Identifier : 1587CC47-A713-11DB-9287-806E6F6E6963
Note
In this example, the Bytes Per Cluster value is 4096. This value represents a 4-kilobyte (KB) cluster size.