Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Prevent disk auto-mount while logged in Storage Devices
While there are numerous well-documented ways to prevent a hard disk or USB drive from mounting at boot-time, I found only one way (working in 10.6) to prevent newly-connected disks from auto-mounting while logged in.

It is possible to turn off the responsible process:
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.diskarbitrationd.plist
This has negative repercussions on general ejecting and mounting. Turning diskarbitrationd back on with load instead of unload doesn't solve all problems, either.

So I looked far and wide for a simple GUI tool performing this function; all I found were expensive forensics-toolkits for law enforcement which offer this function on the side.

Then I stumbled upon this gem: github.com/aburgh/Disk-Arbitrator/. Works for systems 10.5 and up, source available, binaries available (in 'Downloads'), all problems solved!

[crarko adds: I tested this, and it works as described. Nice utility, with good documentation.]
    •    
  • Currently 2.31 / 5
  You rated: 2 / 5 (26 votes cast)
 
[16,613 views]  

Prevent disk auto-mount while logged in | 3 comments | Create New Account
Click here to return to the 'Prevent disk auto-mount while logged in' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Prevent disk auto-mount while logged in
Authored by: iangoldby on Jul 27, '10 09:10:10AM

It's nice to know about Disk Arbitrator, and many will prefer a GUI interface, but did the original submitter try the fstab way to prevent a disk automatically mounting?

This works for me (Mac OS X 10.6.4), both at boot time and when I plug in a USB disk while I am logged in.



[ Reply to This | # ]
Prevent disk auto-mount while logged in
Authored by: tobyvoss on Jul 29, '10 02:02:35AM
The fstab way only works if you already know the disk's UUID or label. I want to prevent/readonly-mount ANY arbitrary new disk.
E.g. when someone gives me data on a USB-stick, I don't want Spotlight to write an index to that volume, nor Finder to create .DS_Store files, nor any (meta-)data at all to be altered on that volume, thank you very much.

[ Reply to This | # ]
Prevent disk auto-mount while logged in
Authored by: Anonymous on Jul 27, '10 12:56:33PM

There's a GUI for Disk Arbitrator up on github. It offers a bit more functionality than simply disabling Disk Arbitration and it lives in the menu bar, so it doesn't take up too much space.

http://github.com/aburgh/Disk-Arbitrator/downloads



[ Reply to This | # ]