LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   NFS entries in /etc/fstab fail to mount on bootup in Mandriva 2009 (https://www.linuxquestions.org/questions/mandriva-30/nfs-entries-in-etc-fstab-fail-to-mount-on-bootup-in-mandriva-2009-a-675852/)

dickgregory 10-12-2008 11:02 AM

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 :
UUID=06786758-d020-41aa-9005-b4cc72cd6957 / ext3 relatime 1 1
# Entry for /dev/sda8 :
UUID=9c88e1f6-bb8c-402d-9649-345db1233410 /home ext3 relatime 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda6 :
UUID=7734d16e-807a-4067-8e11-e5c0711c70ab /usr ext3 relatime 1 2
# Entry for /dev/sda7 :
UUID=46d7e142-ca73-4b1e-afd6-1cffccf21b3d /var ext3 relatime 1 2
# Entry for /dev/sda5 :
UUID=4c43ce5c-be5a-430c-ba3e-205afc051819 swap swap defaults 0 0
192.168.3.11:/home/files /files nfs rsize=8192,wsize=8192,nosuid 0 0
192.168.3.11:/var/www /www nfs rsize=8192,wsize=8192,nosuid 0 0

Can someone point me to what I need to know to get this to work?

Thank you

jkerr82508 10-14-2008 10:21 AM

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

dickgregory 10-14-2008 06:36 PM

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.

jkerr82508 10-14-2008 07:11 PM

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

jschiwal 10-14-2008 07:48 PM

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.

courtrrb 10-16-2008 08:14 AM

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.