MacOS: Unable to assign additional free space to the primary drive.
MacOS: Unable to assign additional free space to the primary drive.
I have a Boot Camp section that I wanted to reduce in size, giving more room inside my main macOS installation. I went through this guide, but the final part is giving me trouble. After using the MiniTool Partition Wizard to shrink it, the available space shows up in Disk Utility. Then I ran these commands: df -h diskutil apfs list sudo diskutil apfs resizeContainer disk0s2 0. But when I tried the command “sudo diskutil apfs resizeContainer disk0s2 0”, the Terminal returned this message:
"Started APFS operation Aligning grow delta to 79.263.285.248 bytes and targeting a new physical store size of 429.316.349.952 bytes Determined the maximum size for the targeted physical store of this APFS Container to be 429.316.349.952 bytes Resizing APFS Container designated by APFS Container Reference disk1"
That’s what I see now.
It seems you need to perform maintenance on the .2 volume, which often requires disabling parts to reduce its size—though the changes won’t be huge. If this involves a mechanical HDD, I’d note that recurring errors could indicate issues, and the drive might be showing signs of wear.
Hi, sorry about the situation. It seems the disk might not be functioning properly. Maybe TimeMachine was active and affected the diskutil process... In any case, I recommend backing up all your files and installing a fresh version of macOS from the official OSX base or recovery options. The steps for these depend on whether you're using an Intel or Apple Silicon chip. Once installed, you can use the disk utility to handle disks and partitions.
Thanks for the helpful suggestions. The device is an Intel 16 MBPCM from 2019 with a 500GB SSD. It seems the problem might be related to the free space created by MiniTool Partition. Since SSDs don’t need defragmentation, trying to boot into Windows and defragment the unused space could help. I’d like to avoid reinstalling or erasing anything. Any other ideas?
Store crucial documents on a separate external storage device. Turn off the time machine feature, remove any saved backups from the time machine, and run the diskutil utility again. Should the process encounter failure and cause file system damage, reinstall the operating system.
Choose your Macintosh HD drive and run a "SOS" to verify the filesystem. It detected an error and will stop until resolved.
APFS has been around for about four years, making it relatively recent compared to older file systems.
Really? I was under the impression it was significantly older than I remembered. My recollection about it being initially created for something else might be incorrect too. It seems the problem could stem from adapting an earlier version meant for a different function. I felt there was a lot of “why” surrounding APFS, and it mostly came down to “well, we got it.”