Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##
- ## Server
- ##
- sudo aptitude install nfs-kernel-server nfs-common portmap
- dan@filestore:~$ cat /etc/exports
- # /etc/exports: the access control list for filesystems which may be exported
- # to NFS clients. See exports(5).
- #
- # Example for NFSv2 and NFSv3:
- # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
- #
- # Example for NFSv4:
- # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
- # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
- #
- /mnt 192.168.1.4(rw,sync,no_subtree_check)
- /mnt/test 192.168.1.4(rw,sync,no_subtree_check)
- dan@filestore:~$ sudo /etc/init.d/nfs-kernel-server restart
- dan@filestore:~$ sudo showmount -e
- Export list for filestore:
- /mnt 192.168.1.10
- /mnt/share 192.168.1.4
- ##
- ## Client
- ##
- sudo aptitude install nfs-common portmap
- dan@office:/mnt$ showmount -e 192.168.1.10
- Export list for 192.168.1.10:
- /mnt 192.168.1.10
- dan@office:/mnt$ mkdir /mnt/share
- dan@office:/mnt$ sudo mount 192.168.1.10:/mnt /mnt/share/
- dan@office:/mnt$ cd share/
- dan@office:/mnt/share$ ls
- ntfs profiles share usb
- dan@office:/mnt$ sudo mount 192.168.1.10:/mnt/test /mnt/test
- dan@office:/mnt$ cd test/
- dan@office:/mnt/test$ ls
- a file
Add Comment
Please, Sign In to add comment