Mount Stop Daemon is a command-line utility for Mac OS X that prevents
volumes from being automatically mounted. Any and all new volumes will not
be automatically mounted while mountstopd
is running.
There are no command-line options to worry about. Run mountstopd
before
connecting a volume to your Mac and it won't be automatically mounted. If
you want the drive to be mounted, you'll need to do it yourself using the
mount
command. See the mount(8) manual page for more information.
This is useful if you want to specify particular non-default options when mounting a drive, such as mounting read-only.
The following instructions have been supplied by the author:
? cc main.c -o mountstopd -framework Foundation \
-framework DiskArbitration
The source code and compilation instructions were obtained from the following answer post on SuperUser:
- http://superuser.com/a/336474/108485
16th September, 2011 - Daniel Beck
All StackOverflow site posts are published under the CC-Wiki license.
This documentation written by Greg Waterhouse (Calrion), also licensed under CC-Wiki.
Published as a GitHub Gist: https://gist.github.com/1446123