Create a gist now

Instantly share code, notes, and snippets.

Example /etc/fstab on Mac OS X 10.6 to disable auto-mounting of specific volumes
# You can find the volume UUID in Disk Utility. Select the volume on the left
# and then File->Get Info. See "Universal Unique Identifier".
#
# Options used below:
# ro for readonly (can be omitted)
# noauto to prevent auto-mount
# noatime to skip writing last access times (performance thing, optional)
#
# Remember to set the filesystem type (hfs, ntfs, etc) too
##########
# Seagate ST9500420AS
# Macintosh HD
UUID=91234EA2-5C14-351B-570B-0919F11E0123 none hfs ro,noauto,noatime
# BOOTCAMP
UUID=6206E408-0AE6-4037-203A-8BF0B9143210 none ntfs ro,noauto,noatime
##########
# SSD
# LionSSD
UUID=5B3F9F9D-51A1-3852-3F5E-65CF1D043210 none hfs ro,noauto,noatime
@threebytesfull
Owner

You need to edit /etc/fstab as root, of course.

@benfdc
benfdc commented Aug 22, 2012

OS X 10.5 and later includes a special utility, vifs, for editing fstab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment