How to use autofs to mount a NFS share
I can not run the automatic mount for the following case:
- I have a mini NFS server where I store files mainly for back up purposes, I put in the /etc/fstab the mount configuration and everything worked fine. But if I'm not in my network (it is a notebook) the boot takes an eternity due the attempts to find the server. - removed from /etc/fstab and started to mount and dismount manually when needed. This also works. - I want to do something more automatic, searching I found the autofs that if it worked would be the solution to my problems. I read the man pages and saw how to do the setup. But it does not work. My /etc/autofs/auto.master: Code:
cat auto.master Code:
cat auto.cubie Code:
systemctl status autofs.service Code:
ping cubietruck Thanks in advance. |
you do not need to put : before the name of the server.
/media/NFS -fstype=nfs,rw,nosuid,nodev :cubietruck:/media/hd/FS-01/ would be nice to check the logs, probably you will find a related message |
The first field specified in /etc/autofs.master should look like this
Code:
/media /etc/autofs/auto.cubie --timeout=60 Code:
NFS -fstype=nfs,rw,nosuid,nodev cubietruck:/media/hd/FS-01/ |
Quote:
pan64 - thank you! |
All times are GMT -5. The time now is 07:23 AM. |