Friday, 6 February 2015

Unable to mount NFS share on client using autofs topic






Hi,
I have a debian wheezy distribution running on a pocket server (cubox-i) on my home network.
I export the NFS shares in /etc/exports on the server:

Code:


/media/myShare  192.168.1.*(rw,all_squash,sync,no_subtree_check)

I can mount it on my ubuntu laptop (client side) and I can access the files:

Code:


mount 192.168.1.2:/media/myShare /mnt/

However, I try to automount it using autofs but it doesn't work (I don't see any information in /var/log/syslog)
Here is the content of my /etc/auto.master file :

Code:


# Mount Cubox NFS shares
/mnt/nfs    /etc/auto.nfs    --timeout=30


Here is the content of my /etc/auto.nfs file :

Code:


# NFS shares rules
myShare  -fstype=auto    192.168.1.2:/media/myShare


Do you have any idea about why it doesn't work?
Or any help to debug it? Where should I look?
Thanks!
Djib'






No comments:

Post a Comment