{"id":32479,"date":"2021-05-16T20:17:46","date_gmt":"2021-05-17T00:17:46","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=32479"},"modified":"2021-06-30T16:34:26","modified_gmt":"2021-06-30T20:34:26","slug":"big-sur-really-needs-real-free-space","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2021\/05\/16\/big-sur-really-needs-real-free-space\/","title":{"rendered":"Big Sur Really Needs Real Free Space"},"content":{"rendered":"<p><a href=\"https:\/\/eclecticlight.co\/2021\/04\/28\/that-macos-update-has-caused-havoc-what-do-i-do-next\/\">Howard Oakley<\/a>:<\/p>\n<blockquote cite=\"https:\/\/eclecticlight.co\/2021\/04\/28\/that-macos-update-has-caused-havoc-what-do-i-do-next\/\"><p>Many of us have just installed the largest macOS update ever released by Apple (as far as I can tell), and there&rsquo;s a few Macs which haven&rsquo;t fared well.<\/p><\/blockquote>\n<p>My iMac died while making a copy of the macOS 11.3 installer, before I actually installed it. The spinning beachball showed up, and the Mac became completely unresponsive except for being able to move the cursor. I couldn&rsquo;t even <code>ssh<\/code> in. After a few minutes, the display went black. I eventually had to power it off and start it up again, but it got stuck halfway through the boot progress bar, the one that shows the desktop picture. I assume the CPU use was high because the fan got very loud. Eventually it seemed to kernel panic and stopped. Several <a href=\"https:\/\/apple.stackexchange.com\/questions\/147375\/macbook-pro-kernel-panic-at-boot\">more attempts<\/a> at booting all failed in the same way.<\/p>\n<p>Safe Mode, resetting the PRAM, Apple Diagnostics&mdash;none of the <a href=\"https:\/\/support.apple.com\/en-us\/HT200553\">normal stuff<\/a> helped. I was able to boot from macOS Recovery as well as a clone. What if this were an M1 Mac that couldn&rsquo;t boot from a clone? Would I be able to easily sync my files to another Mac while booted from Recovery? Of course, <code>git<\/code> is not available, so I couldn&rsquo;t push my work in progress. It turns out that <code>rsync<\/code> is not available in Recovery, either, although the slower <code>scp<\/code> is. Unfortunately, despite the network activity, the Mac will fall asleep after about 15 minutes of copying, and <code>scp<\/code>&mdash;unlike <code>rsync<\/code>&mdash;cannot resume a copy.<\/p>\n<p>I wanted to see what caused the problem but couldn&rsquo;t find any kernel panic log files. Could that be because the SSD was full? No, Finder showed 37 GB free. I thought I remembered having more like 100 GB free, but 37 GB should be plenty to save a log file. Since Safe Mode and a different user account didn&rsquo;t work, there must be something wrong with the system, despite the Signed System Volume. However, even with the 37 GB, macOS couldn&rsquo;t be installed because the installer said there wasn&rsquo;t enough free space. That sounded suspicious, but I offloaded another 20 GB or so of files and tried again. It still claimed not to have enough free space. It still wouldn&rsquo;t boot.<\/p>\n<p>Well, we already know that with APFS the free space that Finder shows is a lie. Maybe the SSD really is full, and the files that I just deleted are being retained by an APFS snapshot. Unfortunately, <code>tmutil<\/code> is not available in Recovery. Is there <a href=\"https:\/\/tredje.se\/dev\/trouble\/post\/apfs-deleting-timemachine-snapshots-without-tmutil\">another way<\/a> to see and delete snapshots? It turns out that <code>diskutil<\/code> can also do this. You can&rsquo;t read the man page because <code>man<\/code> is not available in Recovery. But it does show some usage information if you invoke it without any arguments, or as <code>diskutil apfs<\/code> to see the APFS commands.<\/p>\n<p>Here are the steps that I used:<\/p>\n<ol>\n<li>Even though Disk Utility showed my SSD&rsquo;s Data volume as mounted, it was not actually available to the <code>diskutil<\/code> snapshot commands in Terminal. I had to mount it using <code>diskutil apfs unlockVolume<\/code>.<\/li>\n<li>To find the APFS Volume DiskIdentifier, use <code>diskutil apfs list<\/code>.<\/li>\n<li>To see the snapshots, use <code>diskutil apfs listSnapshots [volume identifier]<\/code>. This will also show you the disk number.<\/li>\n<li>To delete a snapshot, use <code>diskutil apfs deleteSnapshot [disk number] -uuid [snapshot identifier]<\/code><\/li>\n<\/ol>\n<p>After deleting a bunch of snapshots, enough <em>real<\/em> free space was created that I was able to boot the iMac normally. Unfortunately, the problem has repeated twice with macOS 11.3 over the last few weeks. The same fix always works. Most recently, Finder was showing 250 GB of free space, yet apparently the disk was full. I&rsquo;ve now set a reminder to periodically delete old Time Machine snapshots, since macOS is not doing this automatically when it runs out of space, and I can&rsquo;t trust how much space is shown as available.<\/p>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2021\/03\/10\/the-role-of-bootable-duplicates-in-a-modern-backup-strategy\/\">The Role of Bootable Duplicates in a Modern Backup Strategy<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2021\/02\/08\/check-free-space-before-updating-to-big-sur\/\">Check Free Space Before Updating to Big Sur<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2020\/07\/14\/apfs-snapshots-of-the-big-sur-system-volume\/\">APFS Snapshots of the Big Sur System Volume<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2019\/04\/11\/quantum-computing-and-apfs-free-and-used-space\/\">Quantum Computing and APFS: Free and Used Space<\/a><\/li>\n<\/ul>\n\n<p id=\"big-sur-really-needs-real-free-space-update-2021-06-29\">Update (2021-06-29): <a href=\"https:\/\/twitter.com\/BigZaphod\/status\/1407488596240744450\">Sean Heber<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/BigZaphod\/status\/1407488596240744450\">\n<p>Well I got the computer to boot. Careful examination of those boot errors suggested it was out of space. Incidentally I had checked free space in Finder before rebooting it when it had first started acting odd. Finder reported like 100gb free so I had ruled that out.<\/p>\n<p>After my reboot attempt, however, it would just hang at the apple logo screen. After wasting an hour waiting on it I rebooted in verbose mode and saw all the errors. Then I rebooted into recovery mode and used Terminal where &ldquo;df&rdquo; reported no free space whatsoever.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Howard Oakley: Many of us have just installed the largest macOS update ever released by Apple (as far as I can tell), and there&rsquo;s a few Macs which haven&rsquo;t fared well. My iMac died while making a copy of the macOS 11.3 installer, before I actually installed it. The spinning beachball showed up, and the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2021-05-17T00:17:50Z","apple_news_api_id":"85fc1aeb-a33f-4db7-b251-2e81fbf7df0c","apple_news_api_modified_at":"2021-06-30T20:34:30Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAABg==","apple_news_api_share_url":"https:\/\/apple.news\/Ahfwa66M_TbeyUS6B-_ffDA","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[1395,131,30,1891,2088,174,216,1227],"class_list":["post-32479","post","type-post","status-publish","format-standard","hentry","category-technology","tag-apple-file-system-apfs","tag-bug","tag-mac","tag-macos-11-0","tag-macos-recovery","tag-storage","tag-timemachine","tag-top-posts"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/32479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=32479"}],"version-history":[{"count":6,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/32479\/revisions"}],"predecessor-version":[{"id":32964,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/32479\/revisions\/32964"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=32479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=32479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=32479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}