0

I've tried this:

Having the UUID for the volume (seen on disk utilities) to hide during the mount process, from an admin account edit the /etc/fstab file:

sudo pico /etc/fstab/

Add a line with the UUID for your volume and the mounting point information, for example:

UUID=EXAMPLE-5558-3BB3-9FA9-EXAaaaaAMPLE none hfs rw,noauto

Save the file.

But it does not work. Any ideas?

1
  • Even if you're choosing not to mount something, shouldn't it have a mount point of some sort, instead of "none"? Also, your entry is missing the pass/dump "0 0" values at the end of the fstab entry line. I don't know if it makes a difference, but I think I've heard of "poorly formed" fstab lines being ignored.
    – killermist
    Aug 1, 2012 at 16:19

4 Answers 4

2

Late entry ... But I've had issues with fstab entries failing when using UUID on Lion 10.7.2 ... Seems odd but using labels in the entries works fine.

For instance the following would simply be ingnored ...

UUID=EXAMPLE-5558-3BB3-9FA9-EXAaaaaAMPLE none hfs rw,noauto

But this would work ...

LABEL=EXAMPLE\040\LABEL none hfs ro,noauto,nouser 0 0
0

If commenting out the mounting line in fstab doesn't work, it may be another domain or boot-script written custom for your environment that is a second stage mount. You could possibly setup a boot script to unmount anything using that UUID on boot?

3
  • I've made an automator app that unmounts the desired disk, that seems to work. (It would be cleaner not having the disk mounted un then unmounted every time though). Thank you.
    – juezyparte
    May 3, 2012 at 10:43
  • @juezyparte app or bash script? :P
    – BloodyIron
    May 3, 2012 at 13:41
  • App, I have to say that does the job but reports an error (still works it's a false error message)
    – juezyparte
    May 18, 2012 at 19:41
0

You need to add R/W privileges to /private/etc/autofs.conf and edit that I believe.

1
  • When "walking" on terminal I'm not confident about "touching" here and there... ¿Would you please tell me how?
    – juezyparte
    May 3, 2012 at 10:44
0

Here's a little launch daemon that does the job on Lion - blocks auto mount of volumes with specified labels: https://github.com/nanoant/mountblockd

It requires Xcode/developer tools to be installed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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