What should I do if Bootcamp keeps saying my disk cannot be partitioned?

I am at my wit’s end here.

I’m trying to install Windows on my macOS Catalina, version 10.15.7, but BootCamp keeps saying “The disk could not be partitioned” even though I have more than enough space (400GB available for it.) I tried doing something with /sbin/fsck -y but then my computer says “error: container /dev/rdisk1 is mounted with write access”. I’ve been trying for more than a week now and I still haven’t figured anything out. We even formatted our computer just to see if it could help with the process, but it was still the same as it was before it was formatted. I have already run First Aid, but I still get my problem. Time Machine is already off.

If there is anyone willing to help me or contact me to help with this problem, please let me know because I am so close to contacting Apple Support even though I don’t live in the US. I tried using my braincells to do this, that didn’t work, I tried combining my braincells with my father’s for this, still didn’t work, so I’m really looking for any possible solutions here.

Thanks so much in advance to those who can help me and make suggestions. Cheers.


Solution 1:

You may have some space taken up by local Time Machine snapshots. Run tmutil listlocalsnapshots / to see if you have any, and if you do, remove them with

for d in $(tmutil listlocalsnapshotdates | grep "-"); do sudo tmutil deletelocalsnapshots $d; done.