Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm exporting the directory: /a/b/c/ Now, when i mount this share from the client, at /mnt/c, in order to access /a/b/c/ on the server i need to access /mnt/c/a/b/c Is there a way to make /mnt/c show the content of /a/b/c on the server without traversing the entire path? (I'm using NFS4 on Gentoo)

The exports file on the server contains:

/a/b/c/ 10.0.0.100(ro,subtree_check)

The client mounts using:

mount -t nfs4 10.0.0.99:/ /mnt/c/
share|improve this question

migrated from stackoverflow.com Feb 25 '12 at 2:33

This question came from our site for professional and enthusiast programmers.

    
Afaik it is not possible without having another export entry but i might be wrong. –  fyr Feb 6 '12 at 7:27
    
Could you please post the files /etc/exports (you have on the NFS server) and /etc/fstab, or /etc/auto.* (you have on the NFS clients)? –  Mapio Feb 6 '12 at 7:28
add comment

1 Answer

up vote 0 down vote accepted

Found the solution, Instead of mount at the root, i have to mount at the specific directory like so:

mount -t nfs4 10.0.0.99:/a/b/c /mnt/c/
share|improve this answer
add comment

Your Answer

 
discard

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