Merge two APFS containers

apfshard drive

I want to know if I can merge two APFS containers.

enter image description here

I want to merge Untitled to mac, mac-Data container.
If I click - button at the bottom, Untitled container is merged to Workspace. But this is not what I want to do.

Anyone can help ?

This image is diskutil list result.

enter image description here

I am using Mac Mojave now.

enter image description here

Best Answer

No - there is no merging. The point of APFS is to put all your volumes in one container and not make multiple containers, but you're where you are today.

Looking at the image you should have more than enough space to move what you can off of the middle container (into the first ideally or into the last if needed. Then you can remove the middle empty container, grow the first container, then complete cleanup

Of course, just copying the data from the second two containers to another drive and then removing both, growing the first is the simplest way to return to one container with all your space.

David's comment to show the diskutil list will unlock someone giving you the exact commands needed to accomplish the rough sketch idea I've put in words here.

Related Question