Skip to content

Instantly share code, notes, and snippets.

@threebytesfull
Created May 12, 2011 11:05
Show Gist options
  • Save threebytesfull/968327 to your computer and use it in GitHub Desktop.
Save threebytesfull/968327 to your computer and use it in GitHub Desktop.
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
@MikeiLL
Copy link

MikeiLL commented Jun 29, 2022

I can't seem to COPY the UUID from the File Info, so this helped:

diskutil info -all |grep -e "Device Node" -e "Proto" -e "UUID"

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