To mount an NFS filesystem in two different directories on the same system, you will need to follow these steps:
apt-get install nfs-common
showmount
command on the NFS server to list the available exports:showmount -e <server>
Replace <server>
with the IP address or hostname of the NFS server.
mkdir /mnt/nfs1 mkdir /mnt/nfs2
mount
command to mount the NFS filesystem on both mount points. For example:mount <server>:<export> /mnt/nfs1 mount <server>:<export> /mnt/nfs2
Replace <server>
and <export>
with the appropriate values for your NFS server and export.
The NFS filesystem will now be mounted in both /mnt/nfs1
and /mnt/nfs2
. You can access the files in the NFS filesystem by navigating to either of these directories.
When you are finished using the NFS filesystem, you can unmount it by running the umount
command on each of the mount points:
umount /mnt/nfs1 umount /mnt/nfs2