Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to share a directory over NFS:

  • Client: Windows 7 Ultimate x64
  • Server: Arch Linux x64

I have a directory called /data/authorized. I'd like to symlink other directories that are not in /data/authorized into /data/authorized. I tried doing so with both relative and absolute symlinks, but on the Windows client, the symlinks just don't show up. When I do this with a Linux client, the symlinks show up, but point to local directories, necessitating the use of relative symlinks.

share|improve this question
up vote 2 down vote accepted

You can't do that with symlinks, but on Linux you might be able to use bind mounts. They essentially allow to attach part of the filesystem elsewhere. However, I'm not entirely sure how NFS interacts with them – I know they work, but you may need to add a exports entry for each.

mount --bind /srv/something /data/authorized/something

(In fstab, use fstype none and option bind.)

That being said, Samba is often a better option for Windows clients. As far as I know, Windows can't do Unicode over NFS and doesn't support proper authentication either (as in Kerberos or even the simplest user/password), both of which – and more – are supported by Samba and Windows SMB.

share|improve this answer
A little unwieldy, but it gets the job done. I can probably automate the process with a few scripts to make it more manageable. – srunni Jan 1 '12 at 23:26
You can automate the process with /etc/fstab, mostly. Bind mounts are the usual way for doing complicated NFS exports. – grawity Jan 2 '12 at 6:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.