{"id":362,"date":"2016-05-23T21:40:12","date_gmt":"2016-05-24T05:40:12","guid":{"rendered":"http:\/\/www.pervasivecode.com\/blog\/?p=362"},"modified":"2021-09-26T15:12:15","modified_gmt":"2021-09-26T23:12:15","slug":"fixing-a-mac-fusion-drive-that-disk-utility-cant-erase","status":"publish","type":"post","link":"http:\/\/www.pervasivecode.com\/blog\/2016\/05\/23\/fixing-a-mac-fusion-drive-that-disk-utility-cant-erase\/","title":{"rendered":"Fixing a Mac Fusion Drive that Disk Utility can&#8217;t erase"},"content":{"rendered":"<p>My Mac Mini w\/ Fusion Drive (that&#8217;s a hard disk and an SSD pretending to be a single volume for better performance) froze and wouldn&#8217;t boot. Nothing would make it boot normally again. Recovery mode was OK but couldn&#8217;t erase the boot volume nor mount it via Disk Utility (I just got &#8220;Unable to delete the core storage logical volume&#8221;), so reinstalling seemed impossible.<\/p>\n<p>Fortunately, I figured out how to do it, using some help from a StackExchange post I found.\u00c2\u00a0See below for the details.<\/p>\n<p><!--more--><\/p>\n<p>The magic incantation that fixed it was inspired by instructions I found here:<br \/>\n<a href=\"http:\/\/apple.stackexchange.com\/questions\/136590\/how-can-i-delete-a-partition-corestorage-logical-volume-from-the-terminal\">http:\/\/apple.stackexchange.com\/questions\/136590\/how-can-i-delete-a-partition-corestorage-logical-volume-from-the-terminal<br \/>\n<\/a><\/p>\n<p>&nbsp;<\/p>\n<h5 style=\"text-align: center;\"><span style=\"color: #ff0000;\">Note: <strong>THIS WILL WIPE YOUR HARD DISK<\/strong>. Only do this if you&#8217;re completely ready to just burn it all down to the ground and start over with a blank boot disk.<\/span><\/h5>\n<p>&nbsp;<\/p>\n<p>Here are the steps:<\/p>\n<ol>\n<li>Boot the\u00c2\u00a0recovery volume, which will take you to an OS X Utilities page that shows four options: &#8220;Restore From Time Machine Backup&#8221;, &#8220;Reinstall OS X&#8221;, &#8220;Get Help Online&#8221;, and &#8220;Disk Utility&#8221;. If you have gotten to this article you have probably already been into Disk Utility a few times\u00c2\u00a0already without success, so don&#8217;t open Disk Utility.<\/li>\n<li>From the Utilities menu of the &#8220;OS X Utilities&#8221; app, open Terminal. (Maximize the terminal window that opens so it&#8217;s easier to see the output of the next step.)<\/li>\n<li>Run  <code>diskutil cs list<\/code> .\u00c2\u00a0Using the mouse, copy the long alphanumeric string that&#8217;s on the third\u00c2\u00a0line of output after &#8220;Logical Volume Group&#8221;. That&#8217;s the Logical Volume Group&#8217;s universally unique identifier, a.k.a. its\u00c2\u00a0&#8220;lvgUUID&#8221;.<\/li>\n<li><strong>LAST WARNING: FROM HERE ON OUT THIS DELETES ALL OF THE\u00c2\u00a0DATA ON THE HFS+ LOGICAL VOLUME<\/strong>\u00c2\u00a0(but it\u00c2\u00a0doesn&#8217;t delete the recovery partition).<br \/>\nRun <code>diskutil cs delete FOO-BAR-BIZ-BAZ<\/code>, where FOO-BAR-BIZ-BAZ was your lvgUUID. This deletes the logical volume group. diskutil\u00c2\u00a0will print things about erasing the physical partitions that made up the logical volumes, which in my case were \/dev\/disk0s2 (a 931GB partition on the\u00c2\u00a0internal hard disk) and \/dev\/disk1s2 (a 113GB partition on the internal SSD).\u00c2\u00a0Pay attention to the\u00c2\u00a0names of the\u00c2\u00a0devices that it just liberated on your system, since you&#8217;ll use\u00c2\u00a0those device names\u00c2\u00a0in the next step.<br \/>\nAt this point you have two\u00c2\u00a0empty HFS+ partitions that are not a Fusion drive anymore, so you&#8217;ll want to rebuild the LVG from those two physical partitions.<\/li>\n<li>Run this: <code>diskutil cs create 'Macintosh HD' \/dev\/disk0s2 \/dev\/disk1s2<\/code> and adjust the \/dev\/.. stuff to include the\u00c2\u00a0partitions\u00c2\u00a0that diskutil said it erased &amp; mounted in the prior step.<br \/>\nOn my Mac Mini\u00c2\u00a0it took about a minute to finish.<br \/>\nAt this point if you run <code>diskutil cs list<\/code> you should see just a\u00c2\u00a0Logical Volume Group and as many\u00c2\u00a0Physical Volumes as you added (which is two in my case, disk0s2 and disk1s2), without any Logical Volumes yet.<\/li>\n<li>Quit Terminal.app and run Disk Utility from the main &#8220;OS X Utilities&#8221;\u00c2\u00a0app.<br \/>\nDisk Utility should show &#8220;Fusion Drive&#8221; without any partitions in it, which is expected since we just created the Logical Volume Group without any Logical Volumes in it.<\/li>\n<li>Select the Fusion Drive and run First Aid on it.<br \/>\nFirst Aid will immediately create a Logical Volume and format it, leaving one big\u00c2\u00a0partition of type&#8221;OS X\u00c2\u00a0Extended (Journaled)&#8221;\u00c2\u00a0named &#8220;Untitled&#8221;.<\/li>\n<\/ol>\n<p>Now you&#8217;re free to do whatever you want with this empty disk. In my case, I erased it and created a new partition named &#8220;Untitled&#8221;\u00c2\u00a0of type\u00c2\u00a0&#8220;OS X\u00c2\u00a0Extended (Journaled, Encrypted)&#8221; since I want full-disk encryption.<\/p>\n<p>(I tried to call it &#8220;Macintosh HD&#8221; during the erase step, but Disk Utility failed to erase the disk and complained that name was invalid, so I just left it as &#8220;Untitled&#8221;, erased the disk, and then renamed it by selecting the Untitled volume in the left-hand-side\u00c2\u00a0list of devices, then clicking on the right-hand-side pane where the name\u00c2\u00a0Untitled was shown and editing it there.)<\/p>\n<p>After this, I quit out of Disk Utility, and ran the &#8220;Reinstall Install OS X&#8221; app. That does a network install which first required me to log in with my\u00c2\u00a0Apple ID and then downloaded the install files.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My Mac Mini w\/ Fusion Drive (that&#8217;s a hard disk and an SSD pretending to be a single volume for better performance) froze and wouldn&#8217;t boot. Nothing would make it boot normally again. Recovery mode was OK but couldn&#8217;t erase the boot volume nor mount it via Disk Utility (I just got &#8220;Unable to delete &hellip; <a href=\"http:\/\/www.pervasivecode.com\/blog\/2016\/05\/23\/fixing-a-mac-fusion-drive-that-disk-utility-cant-erase\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fixing a Mac Fusion Drive that Disk Utility can&#8217;t erase&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-362","post","type-post","status-publish","format-standard","hentry","category-mac"],"_links":{"self":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts\/362"}],"collection":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/comments?post=362"}],"version-history":[{"count":8,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts\/362\/revisions"}],"predecessor-version":[{"id":371,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts\/362\/revisions\/371"}],"wp:attachment":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/media?parent=362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/categories?post=362"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/tags?post=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}