Prevent automounting volumes in OS X

f you have multiple hard drives connected to your Mac, or maybe you have multiple partitions on a single hard drive, by default, OS-X will mount all those volumes at boot time.

In case you don’t want this to happen, and instead mount one only on-demand, when needed, maybe with Disk Utility, here is what you need to do.

Start by opening the Disk Utility app in your /Applications/Utilities folder. Select the drive or partition you don’t want to have auto mounted and click the info button. Now copy the Universal Unique Identifier string and open the terminal, edit or create the /etc/fstab file and insert the following statement, replacing the UUID with yours of course:

3 Replies to “Prevent automounting volumes in OS X”

  1. Thank you for your suggestion, but I carried out the commands as per article (with my TM vol UUID), and simply exited Terminal. Restarted and the Toshiba vols still all mount.

    sudo nano /etc/fstab

    UUID=F92B9E9D-349F-3B57-810C-B241F93F2700 none hfs rw,noauto

    I’m not familiar with Terminal, and didn’t see any way to “Save” the edited file, perhaps that was why nothing changed?

    Do I now need to UNdo what I did?

    1. CM, when you execute the first line (the line with “nano” in it (you should hit enter after typing that)), you will be brought into the nano text editor (inside the terminal program). At the bottom of that window you can see commands like “^G Get Help” and “^X Exit”. If you hit control+X, it will then prompt if you want to save the file to which you should type Y and hit enter.

      As far as needing to undo anything, if you type that first line (with nano) and it brings up a blank document, then you didn’t actually do anything the first time and there is nothing to undo.

    2. Saving in nano/pico is done using Contol+X, then [Y]es

      If you jut quit terminal the file will not have been saved

Leave a Reply