Quote Originally Posted by borjamf View Post
Check this:

- First, you have to bind the real directory on your server with the pseudo directory that you'll export to the client. For example:
Directory on the server: /home/music
Directory to export: /export/music
Binding the directories: mount bind -t /home/music /export/music

-
Edit the /etc/exports file. Here is where you write the directory to share with the client.
Code:
/export ipclient(rw,fsid=0,no_subtree_check,sync)
              /export/music ipclient(rw,no_subtree_check,sync,nohide)
- Edit the /etc/fstab file and add this line, so you do not have to bind the directories every time when you reboot:
Code:
 /home/music /export/music   none    bind  0  0
- Now, go to the Client, edit the /etc/default/nfs-common (https://help.ubuntu.com/community/NFSv4Howto).

- On the client, mount -t nfs4 IPSERVER:/music /directory/example/client

CHECK if you have the directory /directory/example/client created.
bstrizzy@nova:~$ sudo mount bind -t /home/music /export/music
mount: unknown filesystem type '/home/music'
bstrizzy@nova:~$ sudo mount bind -t /home/bstrizzy/music /export/music
mount: unknown filesystem type '/home/bstrizzy/music'

whyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy