LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Give more mount time in /etc/fstab for an nfs mount (https://www.linuxquestions.org/questions/linux-newbie-8/give-more-mount-time-in-etc-fstab-for-an-nfs-mount-662470/)

zambega 08-13-2008 09:05 AM

Give more mount time in /etc/fstab for an nfs mount
 
I am having trouble mounting an nfs file system on a Digital unix system.
I can mount it by hand after the system is up but it won't mount when coming up. It used to work but for some reason it stopped. I want to give the nfs mount more time and I believe there is a way to set it up in the /etc/fstab file. I think there is a time paramiter I can add in fstab but I don't know what it is or how to do it.

garyg007 08-13-2008 02:28 PM

Read the man page for "nfs"
The quote is an excerpt from it:
Quote:

bg/fg Determines how the mount(8) command behaves if an attempt to mount an export fails. The fg option causes mount(8) to exit with an error status if any part of the mount request times out or fails outright. This is called a "foreground" mount, and is the default behavior if neither the fg nor bg mount option is specified. If the bg option is specified, a timeout or failure causes the mount(8) command to fork a child which continues to attempt to
mount the export. The parent immediately returns with a zero exit code. This is known as a "background" mount. If the local mount point directory is missing, the mount(8) command acts as if the mount request timed out. This permits nested NFS mounts specified in /etc/fstab to proceed in any order during system initialization, even if some NFS servers are not yet available. Alternatively these issues can be addressed using an automounter (refer to automount(8) for details).
There is a lot more there; it would be wise to read it.

In case you'r not familiar with how to access the man page, the command is
Code:

hostname:~ # man nfs


All times are GMT -5. The time now is 11:44 AM.