nfs client does not mount server-shares automatically on boot
DebianThis forum is for the discussion of Debian Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
After loging-in as a user I can mount nfs by just running command 'sudo mount -a' on the terminal.
I suspect that the script 'mountall.sh' is executed before the network is up. And there is no link for starting this script in any of the '/etc/rc?.d' directories. So I cannot make out at what stage this script is executed. But it is executed during boot, for sure. I say this because after reversing the changes, there is no error but the nfs shares are not mounted automatically.
/etc/init.d/mountall.sh is called from /etc/rcS.d/S35mountall.sh. As the files in rcS.d I believe fire off before networking is setup in rc3.d (I believe... correct me if I am wrong), it is not surprising that NFS mounts fail at this time.
You may have to do a link in /etc/rc3.d to fire off mountall.sh again once networking has finished setting up.