mount -t nfs <IP Address>:/<Share
Directory> /mnt/
What all this means:
-t : Is used to tell the system that this is
just an ordinary mount command. You use this when you do not have the drive
information located in /etc/fstab
nfs : Tells the type of share you are trying
to mount.
<IP Address>:/ : IP address of the drive
you are trying to mount.
<share directory> : The Share within the
Volume of the hard drive that you want to mount.
/mnt :
The location to which you want your share to be mounted.
Temporary Mount
Temporary Mount
example:
mount -t nfs 192.168.1.108:/data /mnt/data
permanent Mount
Open /etc/fstab
vim /etc/fstab
Ipaddress:/sharename mount_point filesystem type defaults 0 0
example:
192.168.1.108:/data /mnt nfs defaults 0 0
save and exit
wq:
mount -a
permanent Mount
Open /etc/fstab
vim /etc/fstab
Ipaddress:/sharename mount_point filesystem type defaults 0 0
example:
192.168.1.108:/data /mnt nfs defaults 0 0
save and exit
wq:
mount -a
Troubleshooting
NFS
showmount
-e <IPaddress>
showmount
-e 192.168.1.108
The
-e stands for "exports" or a list of shares exported by NFS.
No comments:
Post a Comment