Benches macOS

10

Cannot mount NFS shares using the Finder

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

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!

10 replies

Sign in or join Beachball Help to reply.

  1. 0

    varjak paw

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I'm not finding anything further regarding mounting NFS shares via the Finder, but here's another way using Directory Utility that might be of interest:

    http://nedos.net/2007/11/10/nfs-in-mac-os-105-leopard/

  2. 0

    Thomas Halenbeck

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    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.

  3. 0

    varjak paw

    Imported from the Apple Support Forums via the Wayback Machine 🔗

  4. 0

    J D McIninch

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    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.

  5. 0

    Thomas Halenbeck

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    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.

  6. 0

    Mike Mackovitch

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    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

  7. 0

    Thomas Halenbeck

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Dave, Mike thanks for your hints!

    I have not had the time the last days and wont have time to test the next couple of days. But your hints sound pretty helpfull to me and I definetly will test it asap.

    As soon as I have a result, I am gonna update this thread. Thx again!

  8. 0

    Thomas Halenbeck

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    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!

  9. 0

    Thomas Halenbeck

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    No NFS experts out there? 😟

    Does anybody at all see his NFS shares in Finder?

    Any info is appreciated.

  10. 0

    Thomas Halenbeck

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Uops, sorry. Accidently I marked the wrong URL from Dave as the solution.

    It is the following which got it going:

    -->
    http://nedos.net/2007/11/10/nfs-in-mac-os-105-leopard/