dosdude1 / macos-catalina-patcher

macOS Catalina Patcher (http://dosdude1.com/catalina)
GNU General Public License v3.0
424 stars 60 forks source link

Building bootable installer or ISO, fails with "hdiutil: couldn't unmount "disk{x}" - Resource busy" #145

Open ahendin opened 3 years ago

ahendin commented 3 years ago

Attempts to build a patched installer using the version downloaded from Apple via the link at https://support.apple.com/en-us/HT201372 or a fresh copy downloaded via the Patcher tool fail shortly after "Patching BaseSystem.dmg..." with error "hdiutil: couldn't unmount "disk{x}" - Resource busy", whether bootable installer (flash drive) or ISO is selected as the destination.

"x" increments with each run, indicating that the mounted base system image is not ejected on failure.

Build environment: Early-2015 MacBook Pro running macOS 10.15.7.

Sample log:

Mounting BaseSystem.dmg...

/dev/disk5 GUID_partition_scheme
/dev/disk5s1 Apple_HFS /private/tmp/basesystem

Patching BaseSystem.dmg...

hdiutil: couldn't unmount "disk5" - Resource busy <<<

ahendin commented 3 years ago

I subsequently tried the "Install to this Machine" option, on the destination mid-2009 MacBook Pro (5,5). Same failure: hdiutil: couldn't unmount "disk1" - Resource busy.

I hope this error can be traced and resolved. Thanks, Collin! I'm running High Sierra on this machine already, thanks to your High Sierra patcher. Would love to try Catalina on it, too.

Zpunky commented 3 years ago

@ahendin, I was having the same exact issue. I even tried older installers that I'd backed up. Then I remembered I had Sophos antivirus running. I removed it, rebooted, and the patcher worked without a hitch, multiple times with both July 2020 and Feb 2021 downloads of the Catalina installer. Also note: Your installed graphics card must be refi (refi) enabled to get to the boot screen. I had to re-install my original Nvidia GeForce GT 120 graphics card for the USB boot and install. On first boot post-install, the screen was gray. I powered off, removed the GT 120, hooked up my MSI RX 560, and booted into the Catalina log-in screen. System: 2009 Mac Pro flashed to 2010 firmware, Crucial CT250MX500SSD1 (SSD), MSI Radeon RX 560, 2 x 3.33 GHz 6-Core Intel Xeon, 48GB RAM.