How do you disable auto-mounting of ALL new/unknown drives on OS X? This article describes how to disable automount on a specific drive:
But then you have to know the drive UUID. And to find out the UUID you would have to mount the drive, and the second you do that OS X auto-mounts the drive as read+write and starts writing lots of hidden files to the drive (
.metadata_never_index) before you can say "cake". This is particularly bad if the connected drive is a faulty drive you are going to to rescue work on, then you obviously don't want the Operating System to write to the drive at all.
So what do you do to get complete control of the mounting process?