Catalina - volumes vs partitions in practice - a question or two

I'm new to Catalina and trying to wrap my head around how shared disk space is used between Volumes; and whether, in my approach, I should actually partition the drive.


If I understand correctly, in a standard installation of Catalina there is a single Container that holds two Volumes - Macintosh HD and Macintosh HD Data. They are in a single logical Container on the physical hard drive. According to Apple,

"macOS Catalina runs on a dedicated, read-only system volume called Macintosh HD. This volume is completely separate from all other data to help prevent the accidental overwriting of critical operating system files. Your files and data are stored in another volume named Macintosh HD - Data. In the Finder, both volumes appear as Macintosh HD. " <emphasis is mine>


But the free space in the Container is shared by the two Volumes:

"If a single APFS partition (or container) has multiple volumes, the container’s free space is shared and can be allocated to any of the volumes as needed."


So, with the two standard Catalina volumes residing in a single Container, and therefore sharing the free space in the container, as one adds more to the physical disk over time (eg. macOS updates, more apps, more data) doesn't the actual data written to disk become mixed across the physical disk regardless of which volume it belongs to? I don't quite understand how the MacHD volume remains "completely separate from all other data" if it shares the free space with the MacHD-Data volume and free space is allocated to each of them as needed.


With partitions, on the other hand, if you create a first partition for macOS + apps and a second, separate partition for data there is no shared space between them, ever.


What might I be missing about the claimed "separateness" between the two Catalina volumes? It seems to me that the separateness is a software or logical construct, not a physical separateness on the hard drive.



iMac Line (2012 and Later)

Posted on Apr 16, 2020 7:08 PM

Reply
Question marked as Top-ranking reply

Posted on Apr 16, 2020 7:32 PM

So, with the two standard Catalina volumes residing in a single Container, and therefore sharing the free space in the container, as one adds more to the physical disk over time (eg. macOS updates, more apps, more data) doesn't the actual data written to disk become mixed across the physical disk regardless of which volume it belongs to?


Yes. But so what. The advantage of Containers is that they dynamically allocate storage as necessary, within the volume in which those Containers reside.


It doesn't help that Apple publishes very little publicly accessible APFS documentation. You already read more about it than just about anyone else.


With partitions, on the other hand, if you create a MacHD partition for macOS + apps and a second, separate partition for data there is no shared space between them, ever.


Not all the time, and that's a problem. The primary reason for separating the read-only Macintosh HD from your data is to make macOS invulnerable to malicious alteration, as that Support document explains in Apple's characteristically vague language.


My advice: there is no physical separation anyway, so stop trying to think about it in those terms. Volumes remain what they have always been: no physical separation either, so unless you have a need to format a particular volume for a required file structure (Windows perhaps) then don't partition a disk.


In case you did not read this from Partition a physical disk in Disk Utility on Mac,


"However, with APFS, you shouldn’t partition your disk in most cases. Instead, create multiple APFS volumes within a single partition. With the flexible space management provided by APFS, you can even install another version of macOS on an APFS volume."


And pay attention to the Important note that immediately follows (if you're interested).

Similar questions

9 replies
Question marked as Top-ranking reply

Apr 16, 2020 7:32 PM in response to MartinR

So, with the two standard Catalina volumes residing in a single Container, and therefore sharing the free space in the container, as one adds more to the physical disk over time (eg. macOS updates, more apps, more data) doesn't the actual data written to disk become mixed across the physical disk regardless of which volume it belongs to?


Yes. But so what. The advantage of Containers is that they dynamically allocate storage as necessary, within the volume in which those Containers reside.


It doesn't help that Apple publishes very little publicly accessible APFS documentation. You already read more about it than just about anyone else.


With partitions, on the other hand, if you create a MacHD partition for macOS + apps and a second, separate partition for data there is no shared space between them, ever.


Not all the time, and that's a problem. The primary reason for separating the read-only Macintosh HD from your data is to make macOS invulnerable to malicious alteration, as that Support document explains in Apple's characteristically vague language.


My advice: there is no physical separation anyway, so stop trying to think about it in those terms. Volumes remain what they have always been: no physical separation either, so unless you have a need to format a particular volume for a required file structure (Windows perhaps) then don't partition a disk.


In case you did not read this from Partition a physical disk in Disk Utility on Mac,


"However, with APFS, you shouldn’t partition your disk in most cases. Instead, create multiple APFS volumes within a single partition. With the flexible space management provided by APFS, you can even install another version of macOS on an APFS volume."


And pay attention to the Important note that immediately follows (if you're interested).

Apr 16, 2020 7:16 PM in response to MartinR

If I understand correctly, in a standard installation of Catalina there is a single Container that holds two Volumes -

There are five. There is also a Preboot, VM, and Recovery.

I don't quite understand how the MacHD volume remains "completely separate from all other data" if it shares the free space with the MacHD-Data volume and the space is allocated to each of them as needed.

You have files stored in folders. The files are actually stored all over the drive, even in separate pieces, mixed in with other files. But somehow, they are still in a single folder. Not a perfect analogy, but I imagine it is similar.

What might I be missing about the "separateness" that is claimed between the two Catalina volumes?

That there is virtual separateness.

Really, a partition is virtual separateness. The files in different partitions are still all on the same drive. How are they separate, but still in the same physical medium?

Apr 16, 2020 7:38 PM in response to Barney-15E


That there is virtual separateness.


Ok, so it IS virtual!


Really, a partition is virtual separateness. The files in different partitions are still all on the same drive. How are they separate, but still in the same physical medium?


Partitioning creates physically separate areas on the disk. Files and folders in a partition exist only in the physical space of that partition. They are not stored "all over the drive" (although they may be stored "all over the partition").

Apr 16, 2020 8:07 PM in response to MartinR

It is separate, but attempting to ascribe physical separation as humans accept in the physical world is a fool's errand. Interleaving is another antiquated concept that no longer exists in any semblance that may have been comparable to magnetic media storage. APFS abandoned any previously accepted comparison to "files" or "folders" as their etymology might suggest, when the actual means of accomplishing data storage shouldn't be so limited.


An iPhone user who grew up in this century generally doesn't know or care what a "file" is. And forget about volumes. They just want their magical devices to work their magic. It's rather a problem when they expect literal magic from them (and they do), but that's the demographic Apple created.


Apple is trying to oversimplify things by describing the Macintosh HD volume as completely separate from any other. It just isn't. Suffer a catastrophic SSD failure and you'll know.

Apr 16, 2020 7:52 PM in response to MartinR

Partitioning creates physically separate areas on the disk. Files and folders in a partition exist only in the physical space of that partition. They are not stored "all over the drive" (although they may be stored "all over the partition").

Whether they cross some virtual boundary or not, they are on the same physical space. How is the partition boundary created. Is it fixed? How does the partitioning software divide the physical disk?


Why does it matter?

Apr 16, 2020 7:54 PM in response to John Galt

The primary reason for separating the read-only Macintosh HD from your data is to make macOS invulnerable to malicious alteration


I get that, and understand how important it has become. I didn't mean to sound as if I was proposing that having a separate macOS partition would make it invulnerable; only that it was separate and didn't share space with a second partition.


My advice: there is no physical separation anyway,


That's what I don't think I understand very well. Apple says the MacHD volume is completely separate from all other data. But if there's no physical separation, and free space is allocated to the two volumes as needed, then the actual data belonging to MacHD and MacHD-Data, when written to the disk, must be/become interleaved across the physical disk.

Apr 16, 2020 8:24 PM in response to Barney-15E

Whether they cross some virtual boundary or not, they are on the same physical space. How is the partition boundary created. Is it fixed? How does the partitioning software divide the physical disk?


(I'm only answering questions here, I'm not preaching.)


When you create a partition (say, with Disk Utility), entries are made to a partition table on the disk that specifies the exact physical cylinder, track, sector and block where the partition begins and those where it ends; the space between the beginning and end points of the partition is physically contiguous on the platters of the drive. No two partitions share any physical space on the hard drive. OS X/macOS only really asks you how many partitions you want and how large you want each to be; it calculates the actual values for the beginning & end points for each partition.


It matters because drive performance gradually degrades as you fill up the drive and as you interleave system & application files with user data files. The first partition, which is typically the boot partition, always resides at the "beginning" of the disk - the outermost tracks - and is the fastest responding part of the drive. It has been my practice to restrict the first partition to OS X/macOS + apps thereby maximizing system performance. By keeping user data out of that partition I also minimize two other things 1) fragmentation due to the frequent writes & deletes that occur with user data and 2) the inevitable additional disk seeking that has to go on when system files & user data files are interleaved and fragmented.


This isn't an issue with SSDs and not as much of an issue with Fusion drives.

Apr 16, 2020 8:35 PM in response to MartinR

I may be guilty of having overlooked any questions regarding spinning hard disks. As far as Apple is concerned they might as well already be dead. I couldn't agree more.


APFS was designed specifically for solid state storage, to both exploit its advantages and obviate magnetic media's disadvantages. Of course APFS works with hard disks too, but most of its benefits are lost on them.

Apr 17, 2020 5:00 AM in response to MartinR

MartinR wrote:


Whether they cross some virtual boundary or not, they are on the same physical space. How is the partition boundary created. Is it fixed? How does the partitioning software divide the physical disk?

(I'm only answering questions here, I'm not preaching.)

I wasn't actually asking those questions. I just provided them as thought exercises.


The first partition, which is typically the boot partition, always resides at the "beginning" of the disk - the outermost tracks - and is the fastest responding part of the drive. It has been my practice to restrict the first partition to OS X/macOS + apps thereby maximizing system performance.

The OS has done this for at least a decade. You don't need to do it yourself.

With APFS being optimized for solid state storage, this may not happen in APFS.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Catalina - volumes vs partitions in practice - a question or two

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.