[SOLVED] NFS is not mounting automatically @boot time
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
But when I tried to mount it only using 'mount <mount_point> ' ie. mount /mnt, its throwing me the following error.
portmap: server localhost not responding, timed out
RPC: failed to contact portmap (errno -5).
sorry ... i do not know it in depth .... But I could solve this issue [ i.e. not able to add nfs details in /etc/fstab]. My entry in /etc/fstab is as follows:
I have mounted device after staring portmap as follows [ Entered this commands manually in the command prompt]
#portmap &
#mount /mnt </mnt is the mount point as in /etc/fstab>
Its working fine . But my problem exists still. I do not want to enter this commands manually in the command prompt.
I want to start all applications in the boot time itself.
Where can I add this command? It must run after reading /etc/fstab. Can I make an rc.local file and update it with the mount command?
I hope rc.local will work. But I could not see that file in my root filesystem? Is it a system generated file?
Please guide me with a good way to achieve this. Any other way there to make this command entry?
sorry ... i do not know it in depth .... But I could solve this issue [ i.e. not able to add nfs details in /etc/fstab]. My entry in /etc/fstab is as follows:
I have mounted device after staring portmap as follows [ Entered this commands manually in the command prompt]
#portmap &
#mount /mnt </mnt is the mount point as in /etc/fstab>
Its working fine . But my problem exists still. I do not want to enter this commands manually in the command prompt.
I want to start all applications in the boot time itself.
Where can I add this command? It must run after reading /etc/fstab. Can I make an rc.local file and update it with the mount command?
I hope rc.local will work. But I could not see that file in my root filesystem? Is it a system generated file?
Please guide me with a good way to achieve this. Any other way there to make this command entry?
Thanks in advance & Regards
SJR
Hi
I could add this mount command in the newly created /etc/rc.d/rc.local file and run it manually by
/etc/rc.d/rc.local start
How to run this file automatically in the boot time itself ??
Happy to say that i solved NFS mounting problem in system boot up . Thank you all for your valuable suggestions.
It was a simple network problem. When I tried to mount NFS in /etc/init.d/rcs, network was not initialized properly. I have changed the position of network bringup to top (ifconfig eth0 <ip_addr> netmask <net_mask> up) in /etc/rc.d/rcS and gave some delay to establish network. At last i did NFS mounting using mount command.
mount -t nfs -o nolock <distant_machine> <my_mnt_pint> . It works fine.
But I wasted my time to look into fstab file to implement it . It is so easy to implement in rcS file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.