Hi all,
Apologies if this is not an OMV issue and rather a generic Linux issue but I am a relative Linux noob - so not really sure....
I have OMV 6.0.5-3 running on a Raspberry PI4 and I can access the SMB shares just fine from Windows and my Kodi software running on FireTV sticks etc.
I am trying to automount some of the SMB shares from another RPI4 but it refuses to work.
I added the mount entries to my etc/fstab file and If I execute sudo mount -a from the console that works fine.
However, upon reboot, it will not automount the shares, and I get dmesg output like:
[ 15.531618] CIFS: Attempting to mount //192.168.2.9/Downloads
[ 15.531772] CIFS: VFS: Error connecting to socket. Aborting operation.
[ 15.531792] CIFS: VFS: cifs_mount failed w/return code = -101
[ 15.533194] CIFS: Attempting to mount //192.168.2.9/Movies
[ 15.533336] CIFS: VFS: Error connecting to socket. Aborting operation.
[ 15.533351] CIFS: VFS: cifs_mount failed w/return code = -101
I have tried various combinations of entries in the fstab file e.g.
//192.168.2.9/Downloads /home/pi/RPI/Downloads cifs credentials=/home/pi/.smbcreds,uid=1000,gid=1000,_netdev 0 0
OR
//192.168.2.9/Downloads /home/pi/RPI/Downloads cifs credentials=/home/pi/.smbcreds,uid=1000,gid=1000,_netdev,x-systemd.after=network-online.target 0 0
OR
//192.168.2.9/Downloads /home/pi/RPI/Downloads cifs auto,x-systemd.automount,credentials=/home/pi/.smbcreds,vers=3.1.1,uid=1000,gid=1000 0 0
All of the above fails to automount on reboot and yet mount -a for all of the above works fine.
With the final choice above (auto,,x-systemd.automount) type entry I get systemctl status output as :
PI8G systemd[1]: Mounting /home/pi/RPI/Downloads...
PI8G mount[904]: mount error(101): Network is unreachable
PI8G mount[904]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (>
PI8G systemd[1]: home-pi-RPI-Downloads.mount: Mount process exited, code=exited, status=32/n/a
PI8G systemd[1]: home-pi-RPI-Downloads.mount: Failed with result 'exit-code'.
PI8G systemd[1]: Failed to mount /home/pi/RPI/Downloads.
PI8G systemd[1]: home-pi-RPI-Downloads.mount: Start request repeated too quickly.
PI8G systemd[1]: home-pi-RPI-Downloads.mount: Failed with result 'exit-code'.
PI8G systemd[1]: Failed to mount /home/pi/RPI/Downloads.
With others, the systemctl status output is generally
PI8G systemd[1]: Mounting /home/pi/RPI/Downloads...
PI8G mount[904]: mount error(101): Network is unreachable
PI8G mount[904]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (>
PI8G systemd[1]: home-pi-RPI-Downloads.mount: Mount process exited, code=exited, status=32/n/a
PI8G systemd[1]: home-pi-RPI-Downloads.mount: Failed with result 'exit-code'.
Can anyone please advise where I am going wrong - or should I post this on a generic Linux or RPI forum?
Thanks in advance for any help.