Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

corvaxmuzzy

macrumors newbie
Original poster
Dec 4, 2011
11
0
Deep South
Had to reformat my M1 MacBook Pro. It has a 1TB drive. It automagically creates, by default, system and data partitions. I do not believe what Disk Utility seems to be simplifying. Would someone be so kind as to explain exactly what is going on. I have a pretty good understanding of partitions and filesystems.
 
Would someone be so kind as to explain exactly what is going on. I have a pretty good understanding of partitions and filesystems.
Well, since you have a pretty good understanding of partitions and filesystems, this should help ...
 
  • Like
Reactions: chabig and doogm
Had to reformat my M1 MacBook Pro. It has a 1TB drive. It automagically creates, by default, system and data partitions. I do not believe what Disk Utility seems to be simplifying. Would someone be so kind as to explain exactly what is going on. I have a pretty good understanding of partitions and filesystems.
FYI, one fine distinction not directly discussed in that Eclectic Light article (it's assumed as background knowledge) is that ever since the debut of the APFS filesystem, Apple has increasingly been using APFS volume groups (sometimes referred to as containers). Any partition formatted as APFS is actually an APFS volume group, containing one or more APFS volumes.

This might sound like a scheme for sub-partitioning a partition, and that's somewhat true, but there's a key difference between partitions and APFS volume groups: the volume group's storage is shared between all the APFS volumes in the group. Each individual APFS filesystem dynamically grows and shrinks on the fly as files are created or deleted, without need to go through an explicit filesystem resize operation.

Your system and data volumes are members of the same APFS volume group, and therefore effectively part of the same partition.

If you want to see the real structure, open Terminal.app and type diskutil list:

Code:
% diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk0
   1:             Apple_APFS_ISC Container disk1         524.3 MB   disk0s1
   2:                 Apple_APFS Container disk3         994.7 GB   disk0s2
   3:        Apple_APFS_Recovery Container disk2         5.4 GB     disk0s3

/dev/disk3 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +994.7 GB   disk3
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            11.2 GB    disk3s1
   2:              APFS Snapshot com.apple.os.update-... 11.2 GB    disk3s1s1
   3:                APFS Volume Preboot                 7.1 GB     disk3s2
   4:                APFS Volume Recovery                1.0 GB     disk3s3
   5:                APFS Volume Macintosh HD - Data     615.3 GB   disk3s5
   6:                APFS Volume VM                      20.5 KB    disk3s6

My SSD is disk0, and it has three partitions, each an APFS container.
  • disk0s1 is Apple_APFS_ISC, a container for firmware and other boot data required on Apple Silicon Macs.
  • disk0s2 is the main OS container, and the only one mounted at present.
  • disk0s3 is the recoveryOS container, a backup operating system that can reinstall macOS if the main container dies for some reason.
The main partition, disk0s2, has its APFS container presented as a "synthesized" disk3. All the volumes in disk3 (in order, system, system volume snapshot, preboot, recovery, data, and VM aka swap) share the space of the 994.7GB disk0s2 partition.
 
  • Like
Reactions: picpicmac
FYI, one fine distinction not directly discussed in that Eclectic Light article (it's assumed as background knowledge) is that ever since the debut of the APFS filesystem, Apple has increasingly been using APFS volume groups (sometimes referred to as containers). Any partition formatted as APFS is actually an APFS volume group, containing one or more APFS volumes.

This might sound like a scheme for sub-partitioning a partition, and that's somewhat true, but there's a key difference between partitions and APFS volume groups: the volume group's storage is shared between all the APFS volumes in the group. Each individual APFS filesystem dynamically grows and shrinks on the fly as files are created or deleted, without need to go through an explicit filesystem resize operation.

Your system and data volumes are members of the same APFS volume group, and therefore effectively part of the same partition.

If you want to see the real structure, open Terminal.app and type diskutil list:

Code:
% diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk0
   1:             Apple_APFS_ISC Container disk1         524.3 MB   disk0s1
   2:                 Apple_APFS Container disk3         994.7 GB   disk0s2
   3:        Apple_APFS_Recovery Container disk2         5.4 GB     disk0s3

/dev/disk3 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +994.7 GB   disk3
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            11.2 GB    disk3s1
   2:              APFS Snapshot com.apple.os.update-... 11.2 GB    disk3s1s1
   3:                APFS Volume Preboot                 7.1 GB     disk3s2
   4:                APFS Volume Recovery                1.0 GB     disk3s3
   5:                APFS Volume Macintosh HD - Data     615.3 GB   disk3s5
   6:                APFS Volume VM                      20.5 KB    disk3s6

My SSD is disk0, and it has three partitions, each an APFS container.
  • disk0s1 is Apple_APFS_ISC, a container for firmware and other boot data required on Apple Silicon Macs.
  • disk0s2 is the main OS container, and the only one mounted at present.
  • disk0s3 is the recoveryOS container, a backup operating system that can reinstall macOS if the main container dies for some reason.
The main partition, disk0s2, has its APFS container presented as a "synthesized" disk3. All the volumes in disk3 (in order, system, system volume snapshot, preboot, recovery, data, and VM aka swap) share the space of the 994.7GB disk0s2 partition.

This is not quite right. An APFS container is the same as a partition. It contains volumes which share the space within the container. A "volume group" is a logical construct that defines the relationships between two or more volumes.

apfs.png


The Macintosh HD volume (along with its snapshot) and the Data volume are in the Macintosh HD volume group. Notice that the volume group line has a different icon. Other volumes in the container are not part of the volume group.

DS
 
  • Like
Reactions: mr_roboto
To see the volume groups using the command line:

Code:
xxx@zzz % diskutil apfs listVolumeGroups
APFS Containers (3 found)
|
+-- Container disk1 B3D9D521-9887-4767-ABA9-CCCED8916BCC
|   |
|   +-> No Volume Groups among 4 Volumes
|
+-- Container disk2 023C651A-0280-4610-8C40-F1139EBB666D
|   |
|   +-> No Volume Groups among 2 Volumes
|
+-- Container disk3 2230F8F2-8867-4426-9215-2E3CC37BD32A
    |
    +-> Volume Group 4D27512D-F44F-417F-AF7C-B9046B3A0FE3
        =================================================
        APFS Volume Disk (Role):   disk3s1 (System)
        Name:                      Macintosh HD
        Volume UUID:               3928EDFC-593B-445C-B0DC-BF66D72188AF
        Capacity Consumed:         11243237376 B (11.2 GB)
        -------------------------------------------------
        APFS Volume Disk (Role):   disk3s5 (Data)
        Name:                      Data
        Volume UUID:               4D27512D-F44F-417F-AF7C-B9046B3A0FE3
        Capacity Consumed:         234380996608 B (234.4 GB)

DS
 
This is not quite right. An APFS container is the same as a partition. It contains volumes which share the space within the container. A "volume group" is a logical construct that defines the relationships between two or more volumes.
Right you are, I was confusing the two phrases.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.