How to merge partition in macos catalina I want to merge two partitions in mac but can't answer on internet please help
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:                 Apple_APFS Container disk3         350.0 GB   disk0s2
   3:                 Apple_APFS Container disk2         75.0 GB    disk0s3
   4:                 Apple_APFS Container disk1         75.0 GB    disk0s4

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +75.0 GB    disk1
                                 Physical Store disk0s4
   1:                APFS Volume Untitled                761.9 KB   disk1s1

/dev/disk2 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +75.0 GB    disk2
                                 Physical Store disk0s3
   1:                APFS Volume Projects                27.1 GB    disk2s1

/dev/disk3 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +350.0 GB   disk3
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            11.0 GB    disk3s1
   2:                APFS Volume Macintosh HD - Data     220.0 GB   disk3s2
   3:                APFS Volume Preboot                 81.4 MB    disk3s3
   4:                APFS Volume Recovery                535.7 MB   disk3s4
   5:                APFS Volume VM                      1.1 GB     disk3s5
I agree with Gilby's answer with respect to having the Projects volume stored in the same container as the Macintosh HD volume. This answer involves merging while attempting to preserve the Projects volume in a separate partition.  Here, I assume there is no data to be saved on the Untitled volume. You can not directly merge the partition containing the Untitled volume into the partition containing the Macintosh HD volume, because the partition containing the Projects volume is between these two partitions. This answer will clone the Projects volume to the partition containing the Untitled volume, then merge the partition that contained the original Projects volume into the partition containing the Macintosh HD volume

The example used in this answer was taken from a virtual machine with Catalina installed on a much smaller internal drive. The drive was not encrypted.

The steps to clone and merge are given next.

Click on the Disk Utility window and then press the ⌘+1 key combination to insure the proper sidebar is displayed, as shown below.


First, highlight the Untitled volume shown in the sidebar, then select the Restore button. For Restore from:, select the Projects volume, as shown below.

Finally, select the Restore button in the popup window. When finished, select the Done button. I needed to quit and open the Disk Utility to see the results. There should now be two Projects volumes, as shown below.


Highlight the first Projects volume shown in the sidebar, then select the Partition button. If necessary, select the Partition button in the popup window. With the partition containing the original Projects volume highlighted in the pie chart, select the - button. The result is shown below.

Next, select the Apply button, then the Partition button. When finished, select the Done button. I quit and opened the Disk Utility to be sure I was seeing the correct results. There should now be one Projects volume, as shown below.



You are finished.
Instructions When Projects Volume Is Formatted Mac OS Extended (Journaled)

Since your Projects Volume is APFS formatted, you can ignore the instructions below.

Before proceeding with the numbered steps given above, first execute the following instructions. Click on the Disk Utility window and then press the ⌘+2 key combination to insure the proper sidebar is displayed, as shown below.

Note: Your container numbering may different.


Next, highlight the container for the Untitled volume shown in the sidebar, then select the Erase button. For Format:, select the Mac OS Extended (Journaled), as shown below.

Finally, select the Erase button in the popup window. When finished, select the Done button. I needed to quit and open the Disk Utility to see the results. The Untitled volume should no longer be in a container, as shown below.

You can now proceed with the numbered steps given above.