Home > How to Tips

8 Ways to Fix 'Your disk could not be partitioned' on Boot Camp

Updated on Tuesday, December 3, 2024

Written by

Jenny Zeng

Approved by

Jessica Shee

English

Summary: This post gives you 8 proven ways to get rid of the warning reading"Your disk could not be partitioned." on Boot Camp for Macs running Monterey, Big Sur, Catalina, etc.

While many users managed to install Windows on Mac smoothly, some may encounter various problems, such as Boot Camp stuck on "Partitioning Disk" or the error we will address today, "Your disk could not be partitioned. An error occurred while partitioning the disk. Please run First Aid from within Disk Utility to check and fix the error."

The error doesn't seem related to a specific macOS version, as you may find "Your disk could not be partitioned." on Monterey, Big Sur, Catalina, etc. You may run into this issue due to disk errors or insufficient space for Boot Camp. Here, we will summarize the ways to fix "Your disk could not be partitioned." on Boot Camp.

You can share these fixes with your favorite platform by clicking the button below.

 

Fix 1: Repair your disk with Disk Utility

You might have followed the warning torun First Aid to check and repair disk errors that may cause "Your disk could not be partitioned." on Boot Camp. If so, make sure you are doing it from macOS Recovery. Otherwise, follow the steps below to verify your startup disk's health and repair its data structures if needed:

  1. Restart your Mac in Mac Recovery Mode.
  2. Select Disk Utility and click Continue.
  3. In Disk Utility, click View > Show All Devices from the menu bar.
  4. You should now see your available disk and storage device in the order of startup disk > container > volumes.
  5. Select the last volume of your startup disk(In this case, Macintosh HD - Data) and click First Aid.
  6. Wait for First Aid to complete, then continue with the next volume above it until the startup disk gets repaired.

If Disk Utility found no error, it means that the issue isn't caused by errors on your Mac hard drive. You can continue with Fix 3.

If Disk Utility can't repair your startup disk, try running the fsck command in Single User mode, as we will describe next, or back up your Mac and perform a clean macOS reinstall.

Fix 2: Run the fsck command to fix corruption

The fsck (file system check) command can verify the consistency of your Mac's file system and perform the necessary repairs. Running the command line tool fsck in Single User Mode is often the next choice if Disk Utility wasn't able to repair your drive. Note that the way to boot into Single User Mode differs on different Macs.

To perform the fsck check on Intel Macs with the T2 chip and Apple Silicon Macs, Apple recommends using Terminal in Recovery Mode.

On Intel Macs with the T2 chip:

  1. Shut down your Mac.
  2. Turn on your Mac and immediately hold down Command + R until you see the Apple logo.
  3. Type in your password if asked.
  4. Click Disk Utility, then Continue.
  5. Select your startup disk from the left side and click Mount.
  6. Exit Disk Utility.
  7. Click Utilities > Terminal from the top menu bar.

On Apple Silicon Macs:

  1. Turn off your Mac.
  2. Press and hold the power button until "Loading startup options" shows up.
  3. Click Options > Continue.
  4. Select your account and click Next.
  5. Enter your password and click Continue.
  6. Click Utilities > Terminal from the top menu bar.

On Intel Macs without the T2 chip:

  1. Turn off your Mac and wait a few seconds.
  2. Power on your Mac and immediately press and hold Command + S.
  3. Release the keys when you see lots of texts with a black background.
  4. Wait for the texts to stop scrolling.

Once you are in Single User Mode, you can carry on the steps below to fix the boot drive:

  1. Type in the following command and hit Enter./sbin/fsck -fy
  2. After fsck finishes repairing your drive, you can type the command below, and press Enter to restart your Mac.reboot

You can then open Boot Camp Assistant and try installing Windows again. If Boot Camp still pops up "Your disk could not be partitioned." on Big Sur, continue reading the fixes below.

Fix 3: Remove unallocated free space

Besides checking and repairing your Mac hard drive, Apple also suggests you check for unallocated free space and remove it, if any, to deal with "Your disk could not be partitioned." on Monterey or other macOS. This way, you make the free space available to be partitioned with Boot Camp.

  1. Open Disk Utility from the Applications > Utilities folder.
  2. Select your startup disk from the left sidebar, then click Partition.
  3. If you see a section of the pie chart labeled "Free space," select it and click the ( - ) button beneath the chart to remove it. 
  4. Quit Disk Utility.

Retry with Boot Camp Assistant to see if the issue persists. If it still gives "Your disk could not be partitioned." on Big Sur/Monterey, move on to the next fix.

Fix 4: Troubleshoot the issue by creating a FAT partition

Since Boot Camp doesn't offer details about the error "Your disk could not be partitioned. An error occurred while partitioning the disk," we can manually create a FAT32 partition of the same size as you intended with Boot Camp to get more information. After all, this is essentially what Boot Camp failed to do. 

How to troubleshoot "Your disk could not be partitioned." on Catalina/Big Sur/Monterey:

  1. Launch Disk Utility from the Applications > Utilities folder.
  2. Select your startup disk from the left side and click Partition.
  3. Click the ( + ) button below the pie chart and click Add Partition.
  4. Enter a name in the Name field. (E.g., Boot Camp)
  5. In the Format pop-up menu, choose MS-DOS (FAT).
  6. In the box next to Size, enter the same size as you wanted for the failed Boot Camp partition.
  7. Click Appy.

When Disk Utility finishes partitioning your Mac hard drive, it will likely fail but displays more information about the error. You can Google the error to find more specific instructions on solving the issue, then use Boot Camp to partition your disk again. We will list some common solutions below, so keep reading.

Fix 5: Delete your local snapshots

Often time, Disk Utility won't let you erase the drive but shows the error "APFS Container Resize error code is 49153 Error: -69606: A problem occurred while resizing APFS Container structures."

If you have Time Machine enabled, it's likely making snapshots that prevent you from partitioning your Mac and Boot Camp Says Not Enough Space But It Isn't. In which case, you can turn off the automatic backup of Time Machine and delete the local snapshots to fix it.

How to terminate "Your disk could not be partitioned." on Catalina/Big Sur/Monterey:

  1. Open the Apple menu > System Preferences.
  2. Select Time Machine.
  3. Uncheck the box next to "Back Up Automatically."
  4. Open Terminal from the Application > Utilities folder.
  5. Type in the following command and press Enter to list the local snapshots you have.tmutil listlocalsnapshots /
  6. Copy and paste the command below and hit Enter to delete all local snapshots.for d in $(tmutil listlocalsnapshotdates | grep "-"); do sudo tmutil deletelocalsnapshots $d; done
  7. Type in your account password and hit Enter.

It may take a few minutes if you have many local snapshots. Once all local snapshots are deleted, run Boot Camp to check whether the warning shows up. If you have resolved the issue with the methods we mentioned above, don't forget to share them with your friends.

 

Fix 6: Turn off FileVault

You may also come across the error "APFS Container Resize error code is 49187. A problem occurred while resizing APFS Container structures. : (-69606)." when creating the test FAT32 partition. If that happens, you need to check and disable FileVault as it may interfere with Boot Camp.

  1. Go to the Apple menu > System Preferences.
  2. Click Security & Privacy > FileVault.
  3. Tap the yellow padlock and enter your account password.
  4. Click "Turn Off FileVault." 
  5. Enter your account password to unlock the drive.
  6. Click "Turn off Encryption."

Suppose you still receive "Your disk could not be partitioned." on Boot Camp; try our next trick.

Fix 7: Turn off Optimize Mac Storage

If you back up your Mac with iCloud, you might have enabled "Optimize Mac Storage" to save space on your Mac. When it's on, files you haven't viewed for a while will be kept in purgeable space, which should be removed by the operating system when the space is needed.

However, macOS may fail to release the purgeable space on Mac when you need the space to create a Windows partition and cause the error "Your disk could not be partitioned. An error occurred while partitioning the disk." So, it's advisable to turn off "Optimize Mac Storage" before using Boot Camp and re-enable it when things are done.

  1. Go to the Apple menu > System Preferences.
  2. Click Apple ID > iCloud.
  3. Uncheck the box next to "Optimize Mac Storage." 

If, unfortunately, this fix didn't stop Mac from showing "Your disk could not be partitioned." on Boot Camp, proceed to the next solution.

Fix 8: Downgrade/upgrade macOS

If you are not running the latest macOS, consider updating to the newest available version and installing Windows on it. Doing this can fix certain bugs in your current operating system that may result in the Boot Camp partition error and equip it with more security patches. You can check the available update in System Preferences > Software Update.

Nevertheless, if you are using the latest macOS and none of the above solutions managed to resolve the issue, you can downgrade the macOS you are currently running to an earlier version. For instance, if you get "your disk could not be partitioned." on Monterey, you can downgrade from Monterey to Catalina as Big Sur may be buggy on Intel CPUs.

Did these solutions help you get rid of the warning, "Your disk could not be partitioned. An error occurred while partitioning the disk."? Please share it with your friends.