How can I add space from an unallocated disk to an existing partition?

I have a MacBook Pro (Mid 2014) installed with macOS Mojave.

I accidentally deleted one of the containers on my hard drive. Now it is only showing 249GB out of 500GBs.

/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         249.6 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +249.6 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume HD                      197.2 GB   disk1s1
   2:                APFS Volume PreBoot                 44.7 MB    disk1s2
   3:                APFS Volume Recovery                516.5 MB   disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4


also when tried with the diskutil resizeContainer command it gives the following error.

sudo diskutil apfs resizeContainer disk0s2 0


Started APFS operation
Error: -69743: The new size must be different than the existing size


Can anyone help with how I can allocate the remaining space to my primary partition.


Thanks in advance.

MacBook Pro Retina

Posted on Oct 9, 2019 6:14 AM

Reply

Similar questions

1 reply

Oct 9, 2019 10:37 PM in response to Sky_Bullet

You could try the GUI Disk Utility, select the disk, click partition button, change the allocation to the total of current partition + unallocated, e.g. 500 GB. However, when I tried the only way that I managed to do this was to delete the current partition and then create a new one with the same name. That does erase the contents, so be aware. In my case the previous content did not matter, which was great. If you need the current contents of that primary partition, be sure to copy them out before deleting and recreating the partition.

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.

How can I add space from an unallocated disk to an existing partition?

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