{"id":172,"date":"2019-01-06T21:30:41","date_gmt":"2019-01-06T09:30:41","guid":{"rendered":"https:\/\/adriel.co.nz\/blog\/?p=172"},"modified":"2019-01-07T10:31:48","modified_gmt":"2019-01-06T22:31:48","slug":"installing-windows-on-a-mac-getting-your-disk-could-not-be-partitioned-error","status":"publish","type":"post","link":"https:\/\/blog.adriel.co.nz\/2019\/01\/06\/installing-windows-on-a-mac-getting-your-disk-could-not-be-partitioned-error\/","title":{"rendered":"Installing Windows on a Mac, getting “Your disk could not be partitioned” error"},"content":{"rendered":"
The problem<\/strong><\/p>\n 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”<\/em>, suggesting\u00a0“run Disk Utility to check and fix the error”.<\/em><\/p>\n “An error occurred while partitioning the disk. Please run Disk Utility to check and fix the error.”<\/p><\/blockquote>\n 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.<\/p>\n Possible solution<\/strong><\/p>\n If you are using Time Machine to back up your Mac, then clearing out all your local snapshots<\/a> could fix this.<\/p>\n Make sure to do a Time Machine backup in case something bad happens here or with the Windows install.<\/p>\n 1, In System\u00a0Preferences<\/em>, untick “Back Up Automatically” in the\u00a0Time Machine\u00a0<\/em>preference<\/p>\n 2, Run this command in the Terminal<\/em> app;<\/p>\n basically, it will remove all the local backups on your boot drive, it won’t delete any of your files on your\u00a0Time Machine backup drive.<\/p>\n 3, Once the command finishes, start the\u00a0Boot Camp Assistant<\/em> app and try again, it should work now.<\/p>\n 4, When you have Windows installed remember to re-enable Time Machine<\/em> on the Mac side.<\/p>\n Not sure if this is related or not, but my boot drive at the time was formatted\u00a0as APFS and I was on macOS Mojave 10.14.2<\/em><\/p>\n A little bit about the <\/strong>tmutil\u00a0command:<\/strong><\/p>\n The\u00a0<mount_point><\/strong> is which drive you’d like cleaned.<\/p>\n The [purgeamount]<\/strong> is the amount of space you want to recover. (optional)<\/p>\n The [urgency] <\/strong>part is a number between 1 – 4, on how quickly you want the space recovered. (optional)<\/p>\n Other possible solutions:<\/strong><\/p>\n Feel free to leave comments if you get stuck, or find other solutions to this error.<\/p>\ntmutil thinlocalsnapshots \/ 9999999999999999<\/pre>\n
tmutil thinlocalsnapshots <mount_point<\/span>> [purge_amount<\/span>] [urgency]\n<\/pre>\n
\n
\/sbin\/fsck -fy<\/code>) during boot, see\u00a0instructions here<\/a>\u00a0or here<\/a>.<\/li>\n
\n