Hi and a very good afternoon to all of you!
I hope that everyone is doing well in this strange days?!
I cannot get a NFS mount on my Raspberry Pi2B to run, although I read and tried many things.
I think (most of) my configurations are set up correctly and it just fails on one little thing.
So here is what I have tried so far and how it turns out...
Code:
pi@Pi2B:~ $ showmount -e 192.168.0.10
Export list for 192.168.0.10:
/metadata.db
/homes
/Backup
So here I can see, that /Backup has been exported the right way on the server side (a QNAP TS-420 NAS)?
On my NFS Server (the NAS) is says:
Code:
[~] # cat /etc/exports
"/share/MD0_DATA/Backup" 192.168.0.13(rw,async,no_subtree_check,insecure,no_root_squash)
Where
192.168.0.13 is the static IP address of my Pi.
That should be fine too in my opinion, right?
The next thing I did was to install
autofs and added a
auto.nfs file on the Pi:
Code:
pi@Pi2B:/etc $ cat /etc/auto.nfs
Pi2B -fstype=nfs,rw,retry=0 192.168.0.10:/Backup
Moreover, I created an entry in the auto.master config-file:
Code:
pi@Pi2B:/etc $ cat /etc/auto.master
+dir:/etc/auto.master.d
+auto.master
/mnt/backup/ /etc/auto.nfs
This should, as far as I understood the theory, make a mount point located at
with a subdirectory called Pi2B.
To sum it up there should be a directory named
since in auto.master it says 'create a mount point at /mnt/backup'.
Tha path 'Pi2B' in the auto.nfs file should be appended here, right?
I read this at
https://wiki.archlinux.org/index.php/Autofs
and
https://help.ubuntu.com/community/Autofs
After that, I restarted autofs with
sudo service autofs restart
and checked, if the directory got mounted successfully...
Code:
ls /mnt/backup/Pi2B
Unfortunately, the directory Pi2B was not found at all
and the parent directory /mnt/backup was completely empty?!
I checked the logs with
Code:
pi@Pi2B:/mnt/backup $ sudo cat /var/log/syslog | grep -i automount
Jul 11 11:49:41 Pi2B systemd[1]: Starting Automounts filesystems on demand...
Jul 11 11:49:41 Pi2B systemd[1]: Started Automounts filesystems on demand.
and did not find anything crucial I think?
mount says the following
Code:
pi@Pi2B:/mnt/backup $ mount
/etc/auto.nfs on /mnt/backup type autofs (rw,relatime,fd=6,pgrp=1412,timeout=300,minproto=5,maxproto=5,indirect)
pi@Pi2B:/mnt/backup $
I don't know what to do next?!
Am I missing something?
Could it be that the directory permissions are wrong on the server?
Do I have to setup my mounting points on the client with su rights? Who should be the owner of the client's directories?
Any help is highly appreciated!
Many thanks in advance!
Mike