Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

How can I disable the auto mount of usb/firewire devices or basically any external disk in MacOSX?

My motivation for this is that in Windows there have been possible attacks via USB trojans that would copy to the internal hard drive just after the auto mount. I thought that disabling auto mount of external devices is a good counter measure. But I'm be open to solutions that protect from such a threat using other methods.

Edit

I assume that a solution to my problem would have to look like the following:

  1. Auto mount disabled for all devices.
  2. Opt-in of auto mount for my private devices.
share|improve this question
    
Here is a Quora answer describing the procedure. –  Alex Feb 5 '12 at 12:49
    
@Alex Thanks for the link. Unfortunately, this is not sufficient. You need the specific UUID of the external device that you want to disable auto mount for. The solution I need would have to do the opposite: 1) Auto mount disabled for all devices. 2) Opt-in of auto mount for my private devices. –  gentmatt Feb 5 '12 at 12:58

2 Answers 2

up vote 4 down vote accepted

You should be able to use Disk Arbitrator to do most of what you want. Certainly requirement 1 is met and you should be able to achieve most of 2 with it too.

share|improve this answer

As far as I know, such attacks rely on the auto-run feature, not the auto-mount feature, meaning that even manually mounting a disk will trigger the auto-run program.

However, OS X doesn't support auto-run at all, so even if a volume auto-mounts and it does have a trojan on it, the trojan will not start automatically.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.