segunda-feira, 20 de agosto de 2012

Ubuntu Linux: How to Mount an NFS Share using NFS Client

You need to install nfs-command package as follows (open terminal and type the following command):

$ sudo apt-get update
$ sudo apt-get install nfs-common

Task: See The List Of All Shared Directories

$ showmount -e NFS server-Ip-address
$ showmount -e <X.X.X.X> (your NFS share IP)

Task: Mount Shared Directory
Now mount your NFS directory as follows:

$ sudo mkdir /nfs
$ sudo mount -o soft,intr,rsize=8192,wsize=8192 <NFS_IP>:</folder_path> /nfs
$ df -h

How do I Access My Files Using NFS?
Just go to the mount point i.e. /nfs directory with the cd command:

$ cd /nfs
$ ls
$ gedit <file_name.ext>

How do I Remove Mounted NFS Directory (unmount NFS)?
Type the following command:

$ cd
$ sudo umount /nfs
$ df -H

Nenhum comentário:

Postar um comentário