1

Yesterday I tried installing Windows using Bootcamp but as usual, it didn't go well after partitioning. BC Assistant wasn't able to remove its partitions either. So after reading around, I managed to format the 50 GB that I allocated to BC into FAT32 and then into APFS and I tried to increase the main APFS volume (that has macOS and every thing) using (I used the correct disk identifiers, not those names mentioned below)

diskutil apfs deleteContainer disk0s3
diskutil eraseVolume free n disk0s3
diskutil apfs resizeContainer disk0s2 0

However it seems like my main volume's size didn't increase and the 50GB are no where to be found. Here's my latest diskutil list and also note that BC Assistant won't fix anything on its own.

diskutil list

PS: What's wrong with BootCamp Assistant? It always never work without issues. First attempt it failed at partitioning, second attempt it partitioned and then it failed and tried rewinding but then it failed again. Is there a way to fix it without having to reset all my Mac?

1 Answer 1

1

There is nothing wrong with the Boot Camp Assistant. The problem is with the use of APFS. If the APFS configuration is not precisely correct, then the Boot Camp Assistant fails. Eventually, your macOS installation can boot and preform correctly without you knowing there is a problem with the APFS configuration. In such cases, problems first appear when trying to repartition using the Disk Utility, Boot Camp Assistant or the command line.

The stock solution is to backup using Time Machine, then reinstall everything from scratch. The result is a clean system where the Boot Camp Assistant correctly installs Windows on your Mac.

An alternate solution would be to use the Boot Camp Assistant to only download the Boot Camp Support Software (Windows Helper Software). You then would install Windows using a USB flash drive. An example of such a procedure is outlined in the accepted answer to the question "Can I install Win 10 (GPT formatted USB installer) on MacBook Pro without using BootCamp?". In your case, you have already allocated space for Windows. I would recommend modifying step 7.1 to include deleting the OSXRESERVED partition, then using the remaining free space for the Windows installation.

If you want to forgo a Windows installation, them the following commands should recover the lost space.

diskutil eraseVolume free n disk0s3
diskutil apfs resizeContainer disk0s2 0

If the above commands fail to work, then you will need to boot to Recovery Mode and enter the following commands. These commands will not alter your computer. The commands just shows the internal partition table values. Post the results to your question.

sudo fdisk /dev/disk0
sudo gpt -r show /dev/disk0
1
  • They worked but my Mac got locked for ~20 mins so I cancelled it. Luckily it still works (I know I know....) and I am not sure if there is any data loss. Question: If I backup using TimeMachine and reset my Mac, does the TimeMachine copy inherit any partition issues I had in the past or does it only save files and their paths regardless? I would like to start in a clean state without redownloading all my apps and reconfiguring all my settings
    – Tarek
    Commented Apr 15, 2018 at 15:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .