Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 have a large number of NFS shares on a private server of mine, and they all exists fairly deep in the directory tree, ie:

Share list:
/data/files/external/share_a
/data/files/external/share_b
/data/files/external/share_c

I have to access these shares periodically, and always via command-line, ie:

mount -t nfs 192.168.1.5:/data/files/external/share_a /mnt/network/share_a

Is there a way to shorten the paths as far as the NFS client sees them. I'm thinking of making a directory on the server called "shares", which contains symlinks to the roots of the folders, then sharing the symlinks instead of the folders.

eg:

Share List:
/shares/share_a
/shares/share_b
/shares/share_c

Symlink details:
/shares/share_a ==> /data/files/external/share_a
/shares/share_b ==> /data/files/external/share_b
/shares/share_c ==> /data/files/external/share_c

Will this sort of thing work?

Thank you!

share|improve this question
up vote 1 down vote accepted

On the server, use

mount --bind

to "link" in what you want.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .