How do you rename an APFS container?

Joined
Dec 16, 2021
Messages
775
Reaction score
103
Points
43
I never thought about this. They default to "Container disk##." However, I just installed a new SSD and one partition, disk11, was named "AppleAPFSMedia" by Disk Utility while the second partition was named "Container disk12." It would be helpful to have recognizable names for containers but I can't figure out how to rename them!
 
Joined
May 21, 2012
Messages
11,406
Reaction score
1,655
Points
113
Location
Southern New England
Your Mac's Specs
2024 M4 14" MBP, iPhone 16 Pro Max, Watch S7 & Watch S9, AirPods Pro 1
Do the icons show on the desktop? Can you right click? Or click to select, then click a second time? Not too quickly. though.
 
Joined
Jan 1, 2009
Messages
16,450
Reaction score
4,805
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 16 Pro, plus ATVs, AWatch, MacMinis (multiple)
Three ways:

1. Reformat using Disk Utility > Erase and name it at the time.
2. Open DU, right click on the name of the drive to highlight it in the main window and enter the name you want.
3. Locate the mounted drive in Finder and right click to rename it there.

Of these, #1 is most drastic, the others don't mess with what's on the drive.

You can name the Volume(s) in the Container, but not change the Container name itself, AFAIK. But what you see in Finder is the Volume name anyway, so that's all you need to change.
 
Joined
Jan 1, 2009
Messages
16,450
Reaction score
4,805
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 16 Pro, plus ATVs, AWatch, MacMinis (multiple)
I never thought about this. They default to "Container disk##." However, I just installed a new SSD and one partition, disk11, was named "AppleAPFSMedia" by Disk Utility while the second partition was named "Container disk12." It would be helpful to have recognizable names for containers but I can't figure out how to rename them!
Another thought. In my MBP with an M3 chip, the internal storage is called "APPLE SSD AP1024 Media" and is the name of the entire storage area provided with the chipset. There is then a Container and within that Container a Volme named "Macintosh HD" and a second with the same name and then a third wiht "Macintosh HD - Data". Those are the internal drive components. Is that what you are referring to? The "APPLE SSD..." name is the equivalent of the manufacturer name of any hardware drive. I would definitely leave that totally as it is. Similarly, the Container name should not be messed with as it is partially a system component and changing the name may trigger security issues. The first instance of a volume with "Macintosh HD" is the secure sealed volume, and is set to be read-only by the OS. The second Macintosh HD is just a name, unchangable, and within it is "Macintosh HD snapshot" which is the actual boot drive in a Mx or T2 system. The "Macintosh HD - Data" is the area that holds the user data. I wouldn't rename that part either, as some third party products actually read the storage names and cound on Macintosh HD - Data being there just that way.

So, is that what you are talking about? Maybe a screenshot of DU showing what is actually there would help.
 
OP
rbpeirce
Joined
Dec 16, 2021
Messages
775
Reaction score
103
Points
43
Do the icons show on the desktop? Can you right click? Or click to select, then click a second time? Not too quickly. though.
No. I can easily change APFS volume names but am unable to change the APFS container name.
 
Joined
Jan 1, 2009
Messages
16,450
Reaction score
4,805
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 16 Pro, plus ATVs, AWatch, MacMinis (multiple)
No. I can easily change APFS volume names but am unable to change the APFS container name.
That is correct. Container names are used nowhere but Disk Utility. No need to give them names. Name the Volumes inside the Containers.
 
OP
rbpeirce
Joined
Dec 16, 2021
Messages
775
Reaction score
103
Points
43
Three ways:

1. Reformat using Disk Utility > Erase and name it at the time.
2. Open DU, right click on the name of the drive to highlight it in the main window and enter the name you want.
3. Locate the mounted drive in Finder and right click to rename it there.

Of these, #1 is most drastic, the others don't mess with what's on the drive.

You can name the Volume(s) in the Container, but not change the Container name itself, AFAIK. But what you see in Finder is the Volume name anyway, so that's all you need to change.
Your last sentence is the key. I am trying to change the container name. I would not have thought this possible had Sequoia itself not produced an unexpected container name. I'm trying to figure out how it did that. Instead of an ID in DU like Container disk12 I would prefer something like OtherPartitionOnTMDrive.
 
Joined
Jan 1, 2009
Messages
16,450
Reaction score
4,805
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 16 Pro, plus ATVs, AWatch, MacMinis (multiple)
Your last sentence is the key. I am trying to change the container name. I would not have thought this possible had Sequoia itself not produced an unexpected container name. I'm trying to figure out how it did that. Instead of an ID in DU like Container disk12 I would prefer something like OtherPartitionOnTMDrive.
You cannot change Container names. And don't confuse Containers with partitions. Two different things entirely. WHen you create the first Volume in Container disk12, you will see that name in DU and Finder. Functionally, there is no way, and no need, to change a Container name.
 
OP
rbpeirce
Joined
Dec 16, 2021
Messages
775
Reaction score
103
Points
43
That is correct. Container names are used nowhere but Disk Utility. No need to give them names. Name the Volumes inside the Containers.
How did Sequoia come up with AppleAPFSMedia instead of Container disk11 and why? That's the first time I've seen that happen which is why I thought there must be a way to do it. I've always felt a need to give containers names I just never thought it was possible!
 
Joined
Jan 1, 2009
Messages
16,450
Reaction score
4,805
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 16 Pro, plus ATVs, AWatch, MacMinis (multiple)
"AppleAPFSMedia" is, I think, what Apple calls the internal storage area in the Apple Silicon Macs. As I said in post #4, my storage is named "APPLE SSD AP1024 Media" and is the 1tb of storage that came with the Mac. That's not a Container name, that's the hardware name, like Samsung, or Crucial, etc. If you post a screenshot of DU where you see that name, we can get to the naming better.

In any event, Containers cannot be renamed. Volumes can.
 
OP
rbpeirce
Joined
Dec 16, 2021
Messages
775
Reaction score
103
Points
43
You cannot change Container names. And don't confuse Containers with partitions. Two different things entirely. WHen you create the first Volume in Container disk12, you will see that name in DU and Finder. Functionally, there is no way, and no need, to change a Container name.
I created two partitions, which Apple called containers. As near as I can tell they really are the same things. I expected them to be called Container disk11 and Container disk12, but I got AppleAPFSMedia and Container disk12. I'm trying to figure out how Apple did that.
 
Joined
Jan 1, 2009
Messages
16,450
Reaction score
4,805
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 16 Pro, plus ATVs, AWatch, MacMinis (multiple)
I created two partitions, which Apple called containers. As near as I can tell they really are the same things.
No. Nowhere the same. Not even close. Totally different in concept and execution. You can have multiple Partitions on each hardware device, and in the hardware Partitions can be file structures with APFS that have Containers that then have Volumes in them. You can also have a separate partition with HFS+ or NTFS or ExFAT, or whatever structure you want. What most of us do is have ONE Container on a hardware device with multiple Volumes in it because that is the most efficient way to use hardware these days.
I got AppleAPFSMedia and Container disk12. I'm trying to figure out how Apple did that.
Was this done to the internal storage of an Apple Silicon Mac? I suspect it was, but as I said, post a DU image and we can talk about it.
 
OP
rbpeirce
Joined
Dec 16, 2021
Messages
775
Reaction score
103
Points
43
"AppleAPFSMedia" is, I think, what Apple calls the internal storage area in the Apple Silicon Macs. As I said in post #4, my storage is named "APPLE SSD AP1024 Media" and is the 1tb of storage that came with the Mac. That's not a Container name, that's the hardware name, like Samsung, or Crucial, etc. If you post a screenshot of DU where you see that name, we can get to the naming better.

In any event, Containers cannot be renamed. Volumes can.


This is what mine looks like. I is a single partition called Container disk3.

Screenshot 2025-02-04 at 4.47.49 PM.jpg


AppleAPFSMedia is the name of one of the two containers on an SSD add-on drive. I didn't get this with my HDD drives. Here is a screenshot of that.

Screenshot 2025-02-04 at 4.51.02 PM.jpg

The fact that one of the containers has a name means it is possible for that to happen. I'm just trying to figure out how I can do it. Maybe I can't.
 
OP
rbpeirce
Joined
Dec 16, 2021
Messages
775
Reaction score
103
Points
43
No. Nowhere the same. Not even close. Totally different in concept and execution. You can have multiple Partitions on each hardware device, and in the hardware Partitions can be file structures with APFS that have Containers that then have Volumes in them.

I did not know that. I've only been able to produce one container per partition. My version of DU only gives me two options when I select Partition, partition or volume. That is why I have thought of partitions as the same as containers. How do you get multiple containers in a partition? That would eliminate the need to do partitions.
 
Joined
Jan 1, 2009
Messages
16,450
Reaction score
4,805
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 16 Pro, plus ATVs, AWatch, MacMinis (multiple)
Thanks, that image helped a lot. TM has made that change. The operating system allowed TM to make that change as it formatted the area for TM use. But the user doesn't have the same system access to do that.
I did not know that. I've only been able to produce one container per partition. My version of DU only gives me two options when I select Partition, partition or volume. That is why I have thought of partitions as the same as containers. How do you get multiple containers in a partition? That would eliminate the need to do partitions.
Apple has made drive structures very complex with APFS. Let's start with the hardware. At the hardware level, where, for example, we see in your image "Samsung PSSD T7 Media" when you format the hardware as APFS, it creates one Partition with APFS as the structure, and, by default, one Container, with typically one Volume in it. Good so far.

Now, if you want TWO Containers, you use the "Partition" button in DU with either the Container or Volume name highlighted in the left column to create a new partition in which a new Container will be created. Apple uses the term "Partition" here, but it's not like you partitioned at the hardware level because when you go through the process it will not offer a new Partion Map, but only to add a new partition within the GUID Partion Map currently on the hardware. If you choose to create a new partition, it will offer to format it as APFS, but allow changes to make it various kinds of APFS (encrypted, case-sensitive, both) or HFS+ journaled, Case Sensitive or not and the ExFAT or NTFS. You can also set the size. You cannot change the partition map as that was set at the hardware level to be GUID, which makes this "partition" process different from the partition process at the hardware level where you can pick the partition map format between GUID and MBR. You can also name the partition, which will be the name of the Volume in the Container. Once the process is completed to make a new "partition" on the drive, the DU window will now show the hardware drive at the top, then multiple Containers with Volumes in them. At this point the first partition will be renamed to "AppleAPFSMedia" like you show. I don't know why that happens but it's not changeable. What is curious to me is that if the new Container is now deleted by selecting the harware, then Partition and click on the new partition and then the "-" button below the pie chart display, DU will ask if you want to delete the Container and if you say yes to that, the process will proceed very quickly and the progress window will report that the container is being deleted, never using the word "partition" but at the end of the process, the hardware will now show ONE single area, as expected, but the Container name will remain "AppleAPFSMedia" again with no way to change it. Apple has some quirks in APFS and without any user documentation, it's hard to determine exactly what is going on. I think what is happening is that to create a second Container Apple has chosen to use the term "partition" to define the area of the Container within the APFS area of the hardware itself. But Apple has released no technical information on APFS, so all of this is pure speculation based on experiments with the hardware.

In any event, at the end of the day for the "partition" process there are now two Containers on the drive with Volumes in them. Those Volumes can be renamed, but the Containers cannot. However, one of the Containers has been renamed to "AppleAPFSMedia" and the other given a "Container disk ##" name. The Hardware is not really in multiple partitions in a harware sense, as the entire drive is being controlled by APFS as it was set up when the hardware was initialized.

Functionally, yes, there are multiple areas called partitions that each have a Container within. Technically, at the deep drive level, there is still only one true partition, an APFS partition that now has multiple Containers. Each Container has a fixed amount of space in it, which is shared with each volume in it. Deleting a Container restores the "partition" as well, uniting the freed space to the other "partition" on the hardware. At least it appears to do so when the deleted Container is the second container on the drive. It also appears that one cannot delete the first Container on a hardware device if there is a second, but you can delete the second and the space will be merged back to the first in the process. I didn't experiment with three Containers, but suspect that only the "last" Container can be deleted at any given time, and the space will be recovered by the next-to-last. I might do some playing with that when/if I get the time.

By the way, I did some experimentation to get that information, using an HD, not an SSD, for the Container creation and removals, so it's not related to being HD or SSD.

Sorry that was long, and probably confusing. Apple has been very stingy with information about how APFS works and most of this that I have provided comes from guys like Howard Oakley at eclecticlight.co, where he has a lot of articles on APFS that he has extracted from his own research as a macOS SysOp and expert. Start here:
click the search icon and type in either "APFS" or "Container" and read some of the 83 pages of articles on the subject.

But the bottom line is that I am 99.9% sure Containers cannot be renamed by the user and that other than in Disk Utility, cannot be seen at all in normal use.
 
Joined
May 21, 2012
Messages
11,406
Reaction score
1,655
Points
113
Location
Southern New England
Your Mac's Specs
2024 M4 14" MBP, iPhone 16 Pro Max, Watch S7 & Watch S9, AirPods Pro 1
It seems you do want 2 partitions, not containers. It will be easier to identify them.

When you set up TM, you have the option to select how much space you want to use on the disk drive you selected. So you may not have to partition the external drive.

5. If a new window appears, you can select the maximum space used for backups and choose whether to encrypt backups. Click Done after selecting settings.

From here, Choose a backup disk and set encryption options on Mac
 
OP
rbpeirce
Joined
Dec 16, 2021
Messages
775
Reaction score
103
Points
43
I think I understand. The terminology was confusing. In DU, partition really means container in APFS format so you are still dealing with one single drive without hard partitions. Very confusing. However, I c an still treat them as partitions from a user standpoint.

I saw the ability to restrict Time Machine size when I created them on the new disk. I was not aware of that capability before. I must have missed it. I alway assumed Time Machine would expand to fill the available space. Anyhow, i now have fixed size containers [partitions] so I'm not going to go back to change it. However, this may be why Apple doesn't think you really need to split disks.
 
Joined
Jan 1, 2009
Messages
16,450
Reaction score
4,805
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 16 Pro, plus ATVs, AWatch, MacMinis (multiple)
However, this may be why Apple doesn't think you really need to split disks.
Yep, leave it all one big drive and sort it with Containers, or even better, have one Container and sort it with Volumes. About the only reason to not do that is to be able to have a Windows-friendly format like ExFAT, but you don't need that on an internal drive, just some external that you can move back and forth between windows and the Mac.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top