Installing Windows 10 using the Boot Camp Assistant app, but each time the app gets to the partitioning step it errors out saying “Your disk could not be partitioned”, suggesting “run Disk Utility to check and fix the error”.
“An error occurred while partitioning the disk. Please run Disk Utility to check and fix the error.”
You’ve tried running Disk Utility but the error still persists. Here is what fixed it for me, there are some other possible solutions at the end of the article.
Possible solution
If you are using Time Machine to back up your Mac, then clearing out all your local snapshots could fix this.
Make sure to do a Time Machine backup in case something bad happens here or with the Windows install.
1, In System Preferences, untick “Back Up Automatically” in the Time Machine preference
2, Run this command in the Terminal app;
tmutil thinlocalsnapshots / 9999999999999999
basically, it will remove all the local backups on your boot drive, it won’t delete any of your files on your Time Machine backup drive.
3, Once the command finishes, start the Boot Camp Assistant app and try again, it should work now.
4, When you have Windows installed remember to re-enable Time Machine on the Mac side.
Not sure if this is related or not, but my boot drive at the time was formatted as APFS and I was on macOS Mojave 10.14.2
A little bit about the tmutil command:
tmutil thinlocalsnapshots <mount_point> [purge_amount] [urgency]
The <mount_point> is which drive you’d like cleaned.
The [purgeamount] is the amount of space you want to recover. (optional)
The [urgency] part is a number between 1 – 4, on how quickly you want the space recovered. (optional)
Other possible solutions:
/sbin/fsck -fy
) during boot, see instructions here or here.Feel free to leave comments if you get stuck, or find other solutions to this error.
Source: Apple discussions
]]>