Expand APFS partition problem

Recommended Posts


So I succesfully installed Catalina with @SpaceInvaderOne Macinabox docker. Everything is now working (iMessage etc..) so I'm very cautious with what I'm doing.


I started with a 60G vdisk and now I would like to expand the APFS partition. I managed to expand the vdisk to 120G but I coudl not expand the APFS Volume.


sudo diskutil apfs resizeContainer disk3 0

Error: -69519: The target disk is too small for this operation, or a gap is required in your partition map which is missing or too small, which is often caused by an attempt to grow a partition beyond the beginning of another partition or beyond the end of partition map usable space

I searched for an answer and the best I could get is that the free space I'm trying to add is not adjacent to the volume...  The solution I found are creating a new vdisk and cloning (wich is basicaly starting over) or rearanging the partitions. But I'm not confortable with that. Could someone please provide some help ?


Here is my disk layout :


/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *2.1 GB     disk0
   1:                  Apple_HFS macOS Base System       2.0 GB     disk0s1

/dev/disk1 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *268.4 MB   disk1
   1:                        EFI EFI                     101.4 MB   disk1s1
   2:           Linux Filesystem                         163.9 MB   disk1s2

/dev/disk2 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *128.8 GB   disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                 Apple_APFS Container disk3         64.2 GB    disk2s2

/dev/disk3 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +64.2 GB    disk3
                                 Physical Store disk2s2
   1:                APFS Volume nV500 - Data            41.8 GB    disk3s1
   2:                APFS Volume Preboot                 81.4 MB    disk3s2
   3:                APFS Volume Recovery                526.6 MB   disk3s3
   4:                APFS Volume VM                      1.1 MB     disk3s4
   5:                APFS Volume nV500                   10.8 GB    disk3s5

EDIT : I'm sorry I posted in the wrong section...

Edited by bjornatic
Link to comment

I find it hard to believe that there is no (command line) solution... The partition setup is the default setup from a "Macinabox" install. Is there something wrong to begin with ?


If there is no other solution I will have to try CCC but what if I want to expand the drive again in the next years ? :-/

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.