So I have a bootcamp volume which has windows installed on it. I used MiniTool partition wizard to shrink the bootcamp size from 60 GB to 40 GB to reclaim 20 GB for my Macintosh HD.
That operation successfully executed and as you will see, container for APFS is at 190 GB now. But my Macintosh HD is still occupying 165.4 GB. I tried resizing using (/usr/sbin/diskutil apfs resizeContainer /dev/disk1 0) but to no avail. Does anyone know how I can reclaim the 20 GB space I freed up before and use container to its max capacity?
What surprises me a little is that this freed 20 GB doesn't show up in UI of disk utility but can be noticed in cmd output of diskutil list:
$ diskutil list /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *251.0 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_APFS Container disk1 190.0 GB disk0s2 3: Microsoft Reserved 134.2 MB disk0s3 4: Microsoft Basic Data BOOTCAMP 42.9 GB disk0s4 5: Windows Recovery 471.9 MB disk0s5 /dev/disk1 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +190.0 GB disk1 Physical Store disk0s2 1: APFS Volume Macintosh HD 165.4 GB disk1s1 2: APFS Volume Preboot 21.1 MB disk1s2 3: APFS Volume Recovery 519.0 MB disk1s3 4: APFS Volume VM 2.1 GB disk1s4
Thank you so much for all your help in advance!