External drive mount points on OS X

From Library
Jump to navigation Jump to search

Get drive UUID with:

# diskutil info /Volumes/DRIVENAME | grep UUID

Open /etc/fstab:

# sudo vifs

Set mount point by adding a line to fstab such as:

UUID=A199D396-E42D-2948-BD87-702542B87921 /path/to/existing/mount/directory hfs rw 1 0

Finally, set drive to auto-mount regardless of login status (optional?):

# sudo defaults write /Library/Preferences/SystemConfiguration/autodiskmount AutomountDisksWithoutUserLogin -bool true