I facing difficulties to mount a remote directory on my Debian machine: I tired to use both NFS and CIFS (Samba). For both methods, I am able to mount the directory and it functions adequately for 5-30min but then fails.
ls on the mount point of the local machine I get:
- when mounted with CIFS
ls: reading directory .: Resource temporarily unavailable
- when mounted with NFS
ls: cannot access /mnt/NAS: Stale file handle
Here is my
192.168.1.11:/NAS/music /mnt/NAS nfs defaults 0 0
//192.168.1.11/NAS/music /mnt/NAS cifs username=pi,password=samba 0 0
(I, of course, only mount one line or the other)
For both lines, I am able to mount automatically and manually and access the local mount of the remote directory for a few minutes. But it fails shortly after.
The network structure has the remote machine wired to the router while the local machine is on wifi.
Can you help me fix this ?