4

I'm running Mac OS X 10.6.8. And I'm curious to see if there are any advanced options for ejectable volumes. Such as hiding a partition, password protecting, and so forth.

Now, I'm not asking for software that does this. I'm asking if OS X offers any of these solutions. Or if OS X doesn't, can things like this be done through Terminal?

If you have any answers, or know of any online tutorials, please post them here. :)

3
  • I know that hiding volumes is possible, and possibly other things that you mentioned. You can try reading the man page of umount which is the terminal utility for ejecting drives
    – Alexander
    Aug 27, 2011 at 16:51
  • does your question "electable volumes" imply only volumes (partitions) of your internal hdd or also external volumes ?!
    – v2r
    Feb 27, 2012 at 9:21
  • Sorry, supposed to be 'ejectable' Anyway, it's been awhile. I've found how to password protect, but I'm not sure how to make volumes not automount. I'm on Lion now also. Feb 28, 2012 at 4:11

1 Answer 1

2

To Disable Automount

Getting the UUID

The first thing you will need is the volume's UUID (universal unique identifier) number, which can be found by opening Disk Utility, selecting the volume of interest, and then pressing Command+I or clicking the blue information button in the Disk Utility toolbar. In the window that appears, locate and copy the UUID, which is a string of alphanumeric characters separated by dashes.

Making changes to fstab

With the UUID, you can now create an fstab entry for the volume that prevents it from mounting:

  1. Open Terminal.

  2. Edit the fstab file by running the following command (supply your password when prompted):

     sudo pico /etc/fstab
    
  3. Create a new line at the end of the file that looks like the following (note: replace "NUMBER" with the full UUID string you copied from Disk Utility):

     UUID=NUMBER none hfs rw,noauto
    

Save the file by pressing Control+O, followed by Control+X to quit the editor.

Perform these steps for each volume you wish to prevent automatically mounting, then restart the system, and they should no longer automatically mount. If you need to mount the volumes, then you can open Disk Utility and select them followed by clicking the Mount button in the toolbar, and they should become available in the Finder.

You must log in to answer this question.

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