so i did:
$ showmount -e 192.168.0.53 (#that's my NAS-Server IP-Adress)So the shared folders are in a nfs folder newly created and they are all empty. I wanted to share already existing folders.
/i-data/9e799388/nfs/photo *
/i-data/9e799388/nfs/music *
/i-data/9e799388/nfs/admin *
/i-data/9e799388/nfs/public *
so i did:
$ ssh admin@192.168.0.53moved to:
$ cd /etc/idata/9e799388There are all the folders where data is stored on the NAS and the newly created nfs-folder with my nfs-shares.
$ lsI want to share the folders admin, music, photo and pulic.
admin lost+found nfs photo sysvol
aquota.user music opt public video
So via ssh i open:
$ export TERM=xterm
$ sudo nano /etc/exports
/i-data/9e799388/nfs/photo *Just cut the /nfs, save the file wth strg+o and exit with strg+x.
/i-data/9e799388/nfs/music *
/i-data/9e799388/nfs/admin *
/i-data/9e799388/nfs/public *
Then do:
$ sudo exportfs -raExit the ssh-session and do again:
$ showmount -e 192.168.0.53
/i-data/9e799388/photo *
/i-data/9e799388/music *
/i-data/9e799388/admin *
/i-data/9e799388/public *
After that all the stored files show up after do something like:
$ sudo mount -t nfs 192.168.0.53:/i-data/9e799388/photo /folder/where/you/want/to/mount