Trying to increase the size of the hard drive, Error: -69771: The target disk is too small for this operation

disk-utilityhard drivepartition

My MacBook keeps telling me I have to quit applications because there is not enough free memory.

I went into diskutil and this is how my hard drive(s) are broken down.

diskutil

Can anyone help?

I also tried opening Terminal and using the following script

sudo diskutil apfs resizeContainer disk0s2 0

But I got the following error message:

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

Best Answer

I have to quit applications because there is not enough free memory

Free memory is not hard disk space, but rather RAM. You can resolve this by quitting apps that are using lots of memory. You can find which processes are using memory in Activity Monitor.


If you're still interested in making more disk space for other reasons…

a gap is required in your partition map which is missing or too small

This is the actual error. diskutil list shows an APFS container disk0s2 of 70 GB, and a HFS partition disk0s3 of 180 GB.

70 GB + 180 GB = 250 GB, which is the total size of your disk — there's no free space gap to resize your container into, it's as big as it can be.

You can remove your HFS partition disk0s3 (back up your data first), then expand your APFS container into the gap created by that operation.