When my nfs server is running, it would be nice to mount this share. I use Ubuntu 5.10 as one mounting the nfs share. In fact, I have access to few Ubuntu based servers, so my experience is mainly base on Ubuntu distribution.
Firts of all, to mount on Ubuntu you need root privilages. Asummig you have them, mounting is childish.
Actual mounting can be made in two ways:
- Manually - as root you mount using mount command:
mount -t nfs 188.8.131.52:/home/me/mynfs /home/menew/mounted_nfs
- -t nfs - we mount nfs
- 184.108.40.206:/home/me/mynfs - IP and sheared folder
- /home/menew/mounted_nfs - where this share should be installed on our local file system
- Using /etc/fstab
Add one line to /etc/fstab describing your nfs volume e.g.: 220.127.116.11:/home/mwolski/mynfs /home/menew/mounted_nfs nfs noauto,rw,users,owner 0 0
Thanks to this to mount you as a normal user can execute
To unmount nfs partition, you invoke umount /home/menew/mounted_nfs just like normal other partition.
Used options in fstab
- noauto - the nfs is mounted only explicitly,insead of being mount at bootup
- users - normal user can mount this volume
- owner - only owner of local directory (/home/menew/mounted_nfs) can mount
- rw - mount is read/write