OK…more info on this one…although since it’s now in /tmp/ at this point and no longer visible unless I go looking for it…and it’s not taking up but a few GB of drive space.
Yep…tried Disk Utility and fsck from the command line after doing su root…all is fine.
Disk Utility does not show it as mounted under All Devices.
Went to /tmp in Finder and drilled down to the .dmg file…right clicked and selected Mount and it mounted and opens just fine…so apparently the image itself isn’t damaged. Unmounted. Went back to terminal, su to admin, su to root, tried to delete the .dmg file from where it’s buried in the package. Operation not permitted even though I answered Y to the question override rw-r–r-- root/wheel restricted for InstallESD.dmg? Y
ls -la in /tmp shows this
drwxr-xr-x 3 root wheel 96 Dec 12 2020 Install macOS Mojave.app
As root…followed tjluoma’s suggestions for chgflgs, chmod, and rm…result operation not permitted.
Tried those same commands on the SharedSupport directory above InstallESD.dmg…failed since directory not empty so didn’t try the Contents directory above that either.
Tried emptying trash with the option key…no luck.
Tried Commander 1 running as admin user…no luck.
Can’t try TDM since I don’t have the right set of cables and adapters to connect TB2 to my iMac.
So…there’s clearly something broke either with the .dmg, the package, or the flag/permission/something else entirely.
I’m happy to just ignore it since it’s not bothering me any more…but OTOH if I’ve roused anybody’s curiosity enough I’m more than happy to keep trying more suggestions…but initializing the volume and starting over is more work than I’m really interested in since everything appears to be just fine except I can’t delete the file.
I didn’t mention before that they laptop doesn’t have the original Apple SSD in it…it was replaced long ago by an OWC 1 TB one…although that’s not likely anything to do with the issue.