Cannot mount NFS shares using the Finder

Hello all!
I have a directory structure on a OpenSuse NFS Server which I like to browse/read using my MAC OSX 10.5.6. It works like a joy when I am mounting the NFS share on the command line using "sudo":

sudo mount -o resvport nfshost:/full/path/NFS/share /My/mount/point

However, this is kind of unconvenient as I need to start Terminal and sudo always asks me for the root password. I would appreciate to mount the NFS share just as I mount afp shares using the Finder. But the NFS share is neither searchable using the Finder nor does it show up in the list of host in the side bar of the Finder.
Does anyone has an idea how to solve that? Thx for your information!

Alu iMac 24" 4GB and several other stuff, Mac OS X (10.5.6)

Posted on Feb 23, 2009 10:10 AM

Reply
10 replies

Feb 23, 2009 10:38 AM in response to varjak paw

Yep,
I have already found that but unfortunately it does somehow not apply. Ignoring that this dialog has changed since 10.1, I followed the steps and broke at point 3. Here I get an error telling that username and/or password was wrong. I have no idea how to treat this as this is about NFS ...
However, as username/password is blamed, I guess Finder did at least found the nfs host.

Feb 25, 2009 5:32 AM in response to Thomas Halenbeck

NFS mounts don't generally appear under 'Shared' in finder, just SMB and AFP. Those protocols announce their availability, NFS makes no announcement, it only responds to a direct query.

If you mount NFS via Finder, use commnad-K to bring up the Go To Server dialog and specify a URL in the form:

nfs://servername.com/path/to/share

... if the name of the server is not resolvable in DNS, specify the IP address (NFS knows nothing of zeroconf / bonjour). It's important that you specify the path as it is shared from the server (in /etc/exports on your Linux box). While it's technically possible to query an NFS server to ask what's exported, NFS servers don't have to offer a response so, Finder doesn't ask.

NOTE: By default, Mac OS X only supports up to to version 3 of the NFS protocol. If your Linux box is exporting the directories by NFSv4, you need to configure it to export them via NFSv3. Also, make sure that none of your shared directories contain the ':' character in their name.

Feb 25, 2009 11:41 AM in response to J D McIninch

Hi JD, thx for your comments on that!
If I try to mount the NFS share using the "Go to Server ..." dialog, I get an error message about wrong username/password. This is basicly the content of the document Dave brought into discussion. I have no idea what username/password is ment and where to set it.
Concerning DNS, the ":" and path/share name, everything is supposed to be right. As mentioned, I have no trouble connecting via a proper mount command in Terminal.

Feb 26, 2009 3:37 PM in response to Thomas Halenbeck

The problem is most likely that your NFS server requires that connections come from reserved ports but you can't connect that way from the Finder GUI.

Your example:

sudo mount -o resvport nfshost:/full/path/NFS/share /My/mount/point

shows that you need to use "-o resvport" and that you need to do the mount as root. (This is because the networking stack requires you to be root to get a reserved port.) When you try to mount it via the Finder, you can't specify any mount options like "-o resvport" and even if you could the mount would fail because the Finder isn't running as root.

My first suggestion would be to change the configuration of your server to not require clients to use reserved ports for the NFS protocol. Unfortunately, Linux chooses to call that option "insecure" even though requiring the use of reserved ports (using "secure") doesn't actually make NFS more secure.

Alternatively, you could configure the mount to be performed by something that does do the mount as root - e.g. automount/autofs. You can do this by configuring the mount on Directory Utility's "Mounts" section... you'll want to add "resvport" to the "Advanced mount options" field.

HTH
--macko

Mar 6, 2009 11:42 AM in response to Thomas Halenbeck

Yep, I got it working now.
Unfortunatly a reconfiguration on NFS-Server side failed. I need to know to much about NFS configuration which will cost me to much time.
The Directory Utility worked fine. A NFS mount even survives a reboot of the Mac which is fine as I do not need to mess around with DU once my NFS share is known.
The configuration worked exactly as documented in the URL provided above.
Thx a lot for your help!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Cannot mount NFS shares using the Finder

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.