public
Last active

Example /etc/fstab on Mac OS X 10.6 to disable auto-mounting of specific volumes

  • Download Gist
fstab
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# 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

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

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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.