You are here: Foswiki>TIG Web>FileSystemsAndBackups>MacNFS (revision 38)EditAttach

Mounting NFS volumes under Mac OS

Prerequisites

Your Mac must have a wired or registered wireless network address (generally, it must start with 128.30). If using wireless, register your device as described at Changes to Stata Center Wireless Service?.

From outside the lab, indirect connections (for example, using scp or sftp to a lab machine that has NFS access) are most reliable, but some have reported success connecting to the CSAIL VPN? before mounting NFS volumes, and unmounting them before disconnecting the VPN.

First, determine the volume name, server name, and group name you want to have access as.

  1. Connect to a CSAIL Debian system that automounts the volume.
  2. Access the volume, for example ls -l /csail/userdir
  3. Identify the group name that has access to the directories you work on.
  4. Also retrieve its group ID:
    arthurp@borg-login-1:/csail/userdir$ getent group our-groupname
    our-groupname:*csail*:65534:[...]
  5. Examine the output of mount to find the server name that matches your volume name (the part after "/csail/"). For example, in...
    arthurp@borg-login-1:~$ mount
    [...]
    servername.csail.mit.edu:/export/userdir on /csail/userdir type nfs [...]
    ...the Apple-style NFS URL is nfs://servername.csail.mit.edu/export/userdir

Next, create a local group on your Mac

Run the following from Terminal. Replace $GROUPNAME and $GID appropriately from what you found above.
sudo dscl . list groups gid | fgrep $GID
If any lines are returned, STOP. Otherwise, continue:
sudo dscl . create groups/$GROUPNAME gid $GID
sudo dscl . append groups/$GROUPNAME GroupMembership $USER
Then, log out and log in again for the changes to take effect.

Creating a NFS connection and desktop shortcut.

FOR MAC OS 10.5 "LEOPARD" ONLY:
  1. Open /Applications/Utilities/Directory Utility.app (by double-clicking it in Finder):
    dirutilty2.png
  2. Click the Lock to allow changes, then click Show Advanced Settings button:
    dirutilty4.png
  3. Select Mounts icon at the top of the window, then click the + in the bottom left hand corner of the screen to add a NFS mount:
    dirutilty5.png

FOR MAC OS 10.6 "SNOW LEOPARD" ONLY:
  1. Open /Applications/Utilities/Disk Utility.app (by double-clicking it in Finder)
  2. Click File -> NFS Mounts...

EITHER WAY...
  • For Remote NFS URL: field, enter the "Apple-style NFS URL" from the first section.
  • For Mount Location, enter /Volumes/$VOLUMENAME, replacing $VOLUMENAME with the value from the first section.
  • Click the Advanced Mount Parameters triangle. Enter resvport into the now visible field.
  • Click Verify:
    dirutilty6.png
  • Click OK
  • In the Finder, under the GO menu, select Go To Folder...
  • type /Volumes/ in the text field and click Go. You should see your nfs Volume mount dir in in the Volumes dir.

(Optional)
To create a desktop shortcut on your desktop select the dir and begin dragging it to your desktop. Before releasing the dir to your desktop hold down the Option and Command keys on your keyboard. The icon should now have a small arrow in the left bottom corner and the mouse button can be released dropping the new shortcut on the desktop.

Edit | Attach | Print version | History: r40 | r39 < r38 < r37 < r36 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: 16 Jul 2011, ArthurProkosch
 

MIT Computer Science and Artificial Intelligence Laboratory

 

  • About CSAIL
  • Research
  • News + Events
  • Resources
  • People

This site is powered by Foswiki MIT: Massachusetts Institute of Technology