Tuesday, 27 December 2011

mount NFS Filesystem

NFS shares are mounted at boot time by  /etc/init.d/netfs
NFS shares can be mounted manually with the mount command:
mkdir /mnt/server1
mount -t nfs server1:/var/ftp/public /mnt/server1

/etc/fstab allows you to specify network directories to be mounted at boot time.Sample fstab entry that defines a shared filesystem /var/ftp/public on server1 to be mounted locally on /mnt/server1 :

server1:/var/ftp/public /mnt/server1 nfs defaults 0 0

many other NFS specific options can be used with  mount or in /etc/fstab entry.

No comments:

Post a Comment

Tweets by @sriramperumalla