{"id":38494,"date":"2023-02-16T16:30:04","date_gmt":"2023-02-16T21:30:04","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=38494"},"modified":"2023-02-21T16:00:03","modified_gmt":"2023-02-21T21:00:03","slug":"ejecting-external-disks-with-macos-13","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2023\/02\/16\/ejecting-external-disks-with-macos-13\/","title":{"rendered":"Ejecting External Disks With macOS 13"},"content":{"rendered":"<p><a href=\"https:\/\/eclecticlight.co\/2021\/09\/02\/what-to-do-when-a-volume-cant-be-ejected-or-unmounted\/\">Howard Oakley<\/a>:<\/p>\n<blockquote cite=\"https:\/\/eclecticlight.co\/2021\/09\/02\/what-to-do-when-a-volume-cant-be-ejected-or-unmounted\/\"><p>Among the rough edges in macOS is that infuriating message you may see when you try to eject or unmount a volume: it failed because the volume is in use.<\/p><p>[&#8230;]<\/p><p>In Disk Utility, the answer seems to be to try again, several times if necessary. It&rsquo;s unusual for this not to work at all, although it may take a couple of attempts.<\/p><p>[&#8230;]<\/p><p>My personal favourite of them all is Sloth, from <a href=\"https:\/\/github.com\/sveinbjornt\/Sloth\">here<\/a>. Although it&rsquo;s not notarized, it does everything that I&rsquo;d want in terms of matching lsof or fuser&rsquo;s features. Most importantly, if you click its padlock at the lower right and authenticate, it will show all processes running as root.<\/p><\/blockquote>\n<p>This has been happening a lot for me since Catalina. Typically, I don&rsquo;t get an error message at all&mdash;it just doesn&rsquo;t eject.<\/p>\n<p>The bigger problem is that sometimes Finder <em>does<\/em> show that it ejected, but then when I switch off the drive I get a warning saying that I ejected a drive that was still in use.<\/p>\n\n<p><a href=\"http:\/\/plasmasturm.org\/log\/apfs-timemachine-killall-mds\/\">Aristotle Pagaltzis<\/a>:<\/p>\n<blockquote cite=\"http:\/\/plasmasturm.org\/log\/apfs-timemachine-killall-mds\/\">\n<p>Ever since upgrading to a recent Mac that came with the disk formatted with AFPS, a perennial irritation has been Time Machine. I use a USB hard drive for backups, which of course needs unplugging when I want to take the machine with me somewhere. There are long stretches of time when I don&rsquo;t even think about this because it works just fine. And then there are the other stretches of time when this has been impossible: clicking the eject button in Finder does nothing for a few ponderous moments and then shows a force eject dialog.<\/p>\n<p>[&#8230;]<\/p>\n<p>Unfortunately when this happens, there is no help for it: even closing all applications does not stop the mystery program from using it. So what is the program which is using the disk? The Spotlight indexer, it turns out.<\/p>\n<\/blockquote>\n<p>There doesn&rsquo;t seem to be a way to get Spotlight to stop, other than to kill the <code>mds<\/code> process and then try to unmount the drive before it respawns. I&rsquo;m not keen on doing that, though, because I don&rsquo;t want to corrupt the index file. It&rsquo;s not that I want to be able to search my Time Machine backup&mdash;I wish I could disable indexing on that volume entirely&mdash;but that, with a damaged index file, indexing may keep running continuously.<\/p>\n\n<p><a href=\"https:\/\/toot.community\/@betalogue\/109774729846782193\">Pierre Igot<\/a>:<\/p>\n<blockquote cite=\"https:\/\/toot.community\/@betalogue\/109774729846782193\">\n<p>None of its volumes is currently mounted.<\/p>\n<p>None of its files is currently open anywhere.<\/p>\n<p>Yet somehow the disk is &ldquo;in use&rdquo; and cannot be safely ejected.<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/toot.community\/@davidbures@mstdn.social\/109774832698750131\">David Bure&#x161;<\/a>:<\/p>\n<blockquote cite=\"https:\/\/toot.community\/@davidbures@mstdn.social\/109774832698750131\"><p>I don&rsquo;t know what it is with the recent releases of macOS and disks, but it&rsquo;s been a complete disaster.<\/p><p>macOS would not unlock one of my encrypted drives. Just that single one. I even had to write a script to automatically unlock it when it got mounted, because it was juch a pain in the ass. And then one day, it fixed itself and never happened again.<\/p><p>Now, one of my drives just refuses to get mounted, which completely freezes the entire OS.<\/p><\/blockquote>\n<p>I have seen these behaviors, too.<\/p>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/12\/27\/ventura-issues\/\">Ventura Issues<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/12\/01\/long-app-hangs-due-to-spotlight\/\">Long App Hangs Due to Spotlight<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2022\/07\/18\/invasive-spotlight-indexing\/\">Invasive Spotlight Indexing<\/a><\/li>\n<\/ul>\n\n<p id=\"ejecting-external-disks-with-macos-13-update-2023-02-21\">Update (2023-02-21): <a href=\"https:\/\/venera.social\/display\/85a863ed-5063-ef55-661b-83c019731495\">Drew<\/a>:<\/p>\n<blockquote cite=\"https:\/\/venera.social\/display\/85a863ed-5063-ef55-661b-83c019731495\">\n<p>The culprit is always QuickLook for me.<\/p>\n<p>If you run a <code>lsof \/Volumes\/MY_DRIVE<\/code> you should see a bunch of QuickLook processes.<\/p>\n<p>Issuing a <code>killall -KILL QuickLookUIService<\/code> should allow it to immediately be ejected.<\/p>\n<\/blockquote>\n<p>This just happened to me shortly after reading this post. The Quick Look process in question was for a file I had previewed about 12 hours earlier.<\/p>","protected":false},"excerpt":{"rendered":"<p>Howard Oakley: Among the rough edges in macOS is that infuriating message you may see when you try to eject or unmount a volume: it failed because the volume is in use.[&#8230;]In Disk Utility, the answer seems to be to try again, several times if necessary. It&rsquo;s unusual for this not to work at all, [&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":"2023-02-16T21:30:08Z","apple_news_api_id":"e33c1b56-d4b8-46f3-ac4a-4945a5714d2d","apple_news_api_modified_at":"2023-02-21T21:00:10Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAQ==","apple_news_api_share_url":"https:\/\/apple.news\/A4zwbVtS4RvOsSklFpXFNLQ","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,538,30,1666,2223,1103,1042,174,216],"class_list":["post-38494","post","type-post","status-publish","format-standard","hentry","category-technology","tag-apple-file-system-apfs","tag-bug","tag-diskutility","tag-mac","tag-macos-10-15","tag-macos-13-ventura","tag-quick-look","tag-spotlight","tag-storage","tag-timemachine"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/38494","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=38494"}],"version-history":[{"count":3,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/38494\/revisions"}],"predecessor-version":[{"id":38552,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/38494\/revisions\/38552"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=38494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=38494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=38494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}