[new info below post] -- I'm having trouble resizing an APFS partition on the 240Gb SSD in my Mac. I want to make all space available to the system partition "Macintosh SSD".
/dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *240.1 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_Boot Boot OS X 134.2 MB disk0s2 3: Apple_APFS Container disk1 81.9 GB disk0s3 /dev/disk1 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +81.9 GB disk1 Physical Store disk0s3 1: APFS Volume Macintosh SSD 54.8 GB disk1s1 2: APFS Volume Preboot 44.7 MB disk1s2 3: APFS Volume Recovery 509.5 MB disk1s3 4: APFS Volume VM 20.5 KB disk1s4 5: APFS Volume Nieuw 655.4 KB disk1s5
I tried resizing the container, but this results in an error (see below). I believe due to the fact that the system partition is located at the end of the drive.
Mac-mini:~ admin$ diskutil apfs resizeContainer disk1 239g Started APFS operation Aligning grow delta to 157.073.416.192 bytes and targeting a new physical store size of 238.999.998.464 bytes Determined the maximum size for the targeted physical store of this APFS Container to be 81.926.582.272 bytes 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
Can anyone help me how to add the free space to the "Macintosh SSD" partition?
Update 1: Thanks for the quick response! Though, I got replies that it may be a duplicate with this post. I think it is not, because:
- I have no disk0s3 "storage" volume that may be blocking the space; and
- Running the command in step 3 in that post results in this error:
sh-3.2# diskutil apfs resizeContainer disk0s3 0 Started APFS operation Error: -69743: The new size must be different than the existing size
Thanks again for any help, it is much appreciated.
Update 2: Output of
diskutil info disk0s3 | grep -e "Partition Offset" -e "Disk Size" as requested by David Anderson:
Partition Offset: 158130806784 Bytes (308849232 512-Byte-Device-Blocks) Disk Size: 81.9 GB (81926582272 Bytes) (exactly 160012856 512-Byte-Units)