Linux – How to Linux mount an NFS directory, and the filesystems mounted inside it

automountfilesystemslinuxmountnfs

I have an NFS server with a directory which contains a dozen other local filesystems. I'd like to mount the top-level directory on the server, and have the Linux client automatically mount the right filesystems inside that directory, so that the client sees the same directory structure that exists on the server.

I believe what I was asking about was a "recursive mount" type of thing where multiple filesystems could be mounted in a nested fashion on a client. Perhaps this is only an NFSv4 feature. The "nohide" option seems to trick the client into thinking all filesystems are a single mount-point, which is not what I was looking for, but perhaps it's good enough.

Best Answer

You may want to look into the nohide NFS export option to recursively mount filesystem hierarchies. This is assuming the NFS exports are from a Linux system (versus a filer or NAS) and that you're interested in mounting its mounts to your client.

Also see: http://www.digspace.org/linux/7-linux-nfs-nohide