MacOS – Prevent disk image automount when clicking Finder sidebar

automountdmgmacos

I have been playing around with the ViewView Options in Finder and I must have touched something crtitcal because now whenever I click on a folder in Finder it automounts a disk image located on my external hard drive. The image is located in /Volumes/elements/App/myapp.dmg.

If I unplug the external hard drive, everything is back to normal. But when the external hard drive is connected, it happens again.

I could remove the file, but I want to find a better solution.

Edit: It does not matter if I move the dmg to another location (i.e: I move it to /Users/charasoverride/app.dmg), it gets automounted as well.

Update: It does not happen for every folder but it does for sidebar items. (Favourites, Devices, etc.)

Best Answer

I would suggest trying two things. As a disclaimer, I have no idea what could be causing this because it makes no sense. These are just some basic Finder troubleshooting steps:

Suggestion 1:

  1. Open Terminal from /Applications/Utilities

  2. Run the command killall Finder

  3. Log out of your user account and log back in

  4. Try again

Suggestion 2:

  1. Open Finder

  2. Navigate to ~/Library/Preferences

  3. Move the files com.apple.finder.plist and com.apple.finder.plist.lockfile to the Desktop

  4. Log out of your user account and log back in

  5. Try again

If neither of these suggestions work, I don't know what else you could try. Other StackExchangers?