Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

nfs

Status
Not open for further replies.

dcomit

Technical User
Jun 20, 2001
115
GB
Red Hat Enterprise Linux 5

I’ve used the following to mount nfs shares:

mount -t nfs target:/temp/folder1 /opt/folder1
mount -o vers=3 win1:/archive /opt/archive

Works fine but I need to get them to mount automatically after a reboot. I’m told I need to make entries in /etc/auto.master and /etc/auto.misc but would like to know the syntax.

Thanks,
Dave
 
You want to put something like this in your /etc/fstab file - not auto.master or auto.misc:

Code:
target:/temp/folder1    /opt/folder1   nfs   defaults
win1:/archive           /opt/archive   nfs   vers=3

These should then be mounted automatically on reboot... this is assuming you want them mounted all the time. If you want them to timeout and "unmount" while not in use, then you will want to research using auto.master, etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top