NFS entries in /etc/fstab fail to mount on bootup in Mandriva 2009
I did a clean install this morning. I have 2 nfs shared folders on my server box. I copied the fstab entries from a Mandriva 2008 box. When I boot up, they are not mounted. When I do "mount -a", they mount ok.
This is my wife's computer. She is techie illiterate, and just uses the computer for stuff like web browsing. I have her set up with a directory on the server that I have trained her to save her stuff to. I do not want her to have to go through CLI process every time. Here is my fstab Code:
# Entry for /dev/sda1 : Thank you |
I haven't experienced this myself, but I suppose that it's possible that the system is trying to mount the shares before the network connection is fully established. A couple of work-arounds that may be worth trying:
1. Add the nopinit boot option in menu.lst (this will slow down the boot process a little) or 2. Add the noauto option to the fstab entries, and put the mount commands in /etc/rc.d/rc.local Jim |
Thanks Jim
It appears that you were right that it was trying to mount before networking was fully started. I inserted "sleep 1" as the first line in the start section of the netfs script, and now it comes up normally. My computer is not really fast (1.8GHz) so I'm suprised some faster folks haven't run into this. |
Now that you've mentioned "sleep", I think I recall seeing a report somewhere from someone who did have the same problem and "sleep" was the solution that they used.
Jim |
There is also the _netdev mount option which defers mounting network shares until the network is ready.
If you also use "noauto", then then need to be mounted later. The command "sudo mount -a -o _netdev" will mount all of the shares with the _netdev option. If you also use the "user" option and the directory being shared is owned by a particular user, there could be a line in the users .profile (or .bash_profile or .bash_login) script to mount the share. You might want to do this if you want to keep /home/<username>/Documents or some similar share mounted when a user logs in. There are often several ways of doing things. |
I ran into this back with 2008.0 thats when I made the switch to auto-mount. Because the system wouldn't mount the other systems until needed
Setting up auto-mount is really easy and prevented a lot of problems. When my wife system would shut down my system locked up. By changing to auto-mount my system no longer locks up because of the nfs share went missing. If you need a quick tutorial I can help. |
All times are GMT -5. The time now is 10:45 PM. |