Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to make a white list of disks to mount? I have multiple systems on multiple drives and I would prefer not to mount everything all the time. I can unmount it afterwards, but that is not just as elegant.

I would imagine some magic in com.apple.boot.plist or something.

share|improve this question
up vote 2 down vote accepted
+50

The recommended method I found indicates you should use entries like the following in your /etc/fstab file to prevent mounting:

UUID=FAB060E9-79F7-33FF-BE85-E1D3ABD3EDEA  none     hfs    rw,noauto

As I understand it, entries for known discs will be treated preferentially by their fstab entry over any automount/other behaviors.

Also, according to the linked information, you should be able to use the following to determine disk/partition UUIDs:

diskutil info /path/to/disk

On hindsight, this isn't really a "whitelist" operation so much as a "blacklist" operation, but it is the only solution I can think of.

share|improve this answer
    
Awesome finding, I actually did not believe it is possible. Thanks, awarding the bounty as soon as it's ready. – Mikulas Dite Jun 20 '12 at 7:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .