Automount from fstab Failing On Boot Due To Network Not Available

Hi
I have a Ubuntu server running as my NAS with 5 drives of media, these are shared with Samba.
My Vero4K has a USB network card and it is hard wired to my network along with the server.
The problem I have is that the automount doesn’t work during the Vero4K booting up. I set the wait for network option in OSMC/Kodi, but this doesn’t seem to help anymore.
I’ve put an excerpt of a log of one of the drives trying to automount at start up.
Once OSMC is running I can ssh into the Vero and run
sudo mount -a
and all drives mount fine.
What can I do to fix this?
Thanks

Jun 24 14:46:13 osmc ntpd[2915]: Soliciting pool server 85.199.214.100
Jun 24 14:46:13 osmc ntpd[2915]: Soliciting pool server 81.21.65.168
Jun 24 14:46:14 osmc ntpd[2915]: Soliciting pool server 103.219.22.112
Jun 24 14:46:14 osmc ntpd[2915]: Soliciting pool server 139.162.219.252
Jun 24 14:46:14 osmc ntpd[2915]: Soliciting pool server 195.171.43.10
Jun 24 14:46:14 osmc kernel: r8152 1-2:1.0 eth1: Rx status -71
Jun 24 14:46:14 osmc kernel: r8152 1-2:1.0 eth1: Rx status -71
Jun 24 14:46:14 osmc kernel: r8152 1-2:1.0 eth1: Rx status -71
Jun 24 14:46:14 osmc kernel: r8152 1-2:1.0 eth1: Rx status -71
Jun 24 14:46:14 osmc kernel: r8152 1-2:1.0 eth1: Rx status -71
Jun 24 14:46:14 osmc kernel: r8152 1-2:1.0 eth1: Rx status -71
Jun 24 14:46:14 osmc kernel: r8152 1-2:1.0 eth1: Rx status -71
Jun 24 14:46:14 osmc kernel: r8152 1-2:1.0 eth1: Rx status -71
Jun 24 14:46:14 osmc kernel: r8152 1-2:1.0 eth1: Rx status -71
Jun 24 14:46:14 osmc kernel: r8152 1-2:1.0 eth1: Rx status -71
Jun 24 14:46:14 osmc kernel: r8152 1-2:1.0 eth1: Stop submitting intr, status -71
Jun 24 14:46:14 osmc avahi-daemon[2329]: Interface eth1.IPv4 no longer relevant for mDNS.
Jun 24 14:46:14 osmc avahi-daemon[2329]: Leaving mDNS multicast group on interface eth1.IPv4 with address 10.0.0.232.
Jun 24 14:46:14 osmc connmand[2357]: (null) {RX} 58 packets 10134 bytes
Jun 24 14:46:14 osmc connmand[2357]: (null) {TX} 45 packets 6029 bytes
Jun 24 14:46:14 osmc connmand[2357]: (null) {update} flags 36866 <DOWN>
Jun 24 14:46:14 osmc kernel: usb 1-2: USB disconnect, device number 6
Jun 24 14:46:14 osmc avahi-daemon[2329]: Withdrawing address record for 10.0.0.232 on eth1.
Jun 24 14:46:14 osmc connmand[2357]: eth1 {newlink} index 4 address 00:E0:4C:32:E7:9C mtu 1500
Jun 24 14:46:14 osmc connmand[2357]: eth1 {newlink} index 4 operstate 2 <DOWN>
Jun 24 14:46:14 osmc connmand[2357]: Removing default gateway route failed (No such device)
Jun 24 14:46:14 osmc connmand[2357]: Deleting host route failed (No such device)
Jun 24 14:46:14 osmc connmand[2357]: Removing default gateway route failed (No such device)
Jun 24 14:46:14 osmc connmand[2357]: (null) {del} address 10.0.0.232/24 label eth1
Jun 24 14:46:14 osmc connmand[2357]: eth1 {dellink} index 4 operstate 2 <DOWN>
Jun 24 14:46:14 osmc connmand[2357]: (null) {RX} 58 packets 10134 bytes
Jun 24 14:46:14 osmc connmand[2357]: (null) {TX} 45 packets 6029 bytes
Jun 24 14:46:14 osmc connmand[2357]: (null) {remove} index 4
Jun 24 14:46:14 osmc connmand[2357]: Remove interface (null) [ ethernet ]
Jun 24 14:46:15 osmc ntpd[2915]: Soliciting pool server 178.215.228.24
Jun 24 14:46:15 osmc ntpd[2915]: Soliciting pool server 217.114.59.3
Jun 24 14:46:15 osmc ntpd[2915]: error resolving pool 3.debian.pool.ntp.org: Name or service not known (-2)
Jun 24 14:46:15 osmc ntpd[2915]: error resolving pool 0.debian.pool.ntp.org: Name or service not known (-2)
Jun 24 14:46:15 osmc kernel: usb 1-2: new high-speed USB device number 7 using xhci-hcd
Jun 24 14:46:15 osmc kernel: usb 1-2: New USB device found, idVendor=0bda, idProduct=8153
Jun 24 14:46:15 osmc kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=6
Jun 24 14:46:15 osmc kernel: usb 1-2: Product: USB 10/100/1000 LAN
Jun 24 14:46:15 osmc kernel: usb 1-2: Manufacturer: Realtek
Jun 24 14:46:15 osmc kernel: usb 1-2: SerialNumber: 000001000000
Jun 24 14:46:15 osmc kernel: usb 1-2: Unsupported device
Jun 24 14:46:15 osmc kernel: usb 1-2: Unsupported device
Jun 24 14:46:15 osmc kernel: usb 1-2: reset high-speed USB device number 7 using xhci-hcd
Jun 24 14:46:15 osmc systemd[1]: mnt-FJData1.automount: Got automount request for /mnt/FJData1, triggered by 2925 (JobWorker)
Jun 24 14:46:15 osmc systemd[1]: Mounting /mnt/FJData1...
Jun 24 14:46:15 osmc kernel: Key type cifs.spnego registered
Jun 24 14:46:15 osmc kernel: Key type cifs.idmap registered
Jun 24 14:46:15 osmc mount[2948]: mount error(101): Network is unreachable
Jun 24 14:46:15 osmc mount[2948]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Jun 24 14:46:15 osmc systemd[1]: mnt-FJData1.mount: Mount process exited, code=exited, status=32/n/a
Jun 24 14:46:15 osmc systemd[1]: mnt-FJData1.mount: Failed with result 'exit-code'.
Jun 24 14:46:15 osmc systemd[1]: Failed to mount /mnt/FJData1.
Jun 24 14:46:15 osmc kernel: CIFS VFS: Error connecting to socket. Aborting operation.
Jun 24 14:46:15 osmc kernel: CIFS VFS: cifs_mount failed w/return code = -101
Jun 24 14:46:15 osmc systemd[1]: mnt-FJData1.automount: Got automount request for /mnt/FJData1, triggered by 2925 (JobWorker)
Jun 24 14:46:15 osmc systemd[1]: Mounting /mnt/FJData1...
Jun 24 14:46:15 osmc mount[2955]: mount error(101): Network is unreachable
Jun 24 14:46:15 osmc mount[2955]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Jun 24 14:46:15 osmc kernel: CIFS VFS: Error connecting to socket. Aborting operation.
Jun 24 14:46:15 osmc kernel: CIFS VFS: cifs_mount failed w/return code = -101
Jun 24 14:46:15 osmc kernel: r8152 1-2:1.0 eth1: v2.15.0 (2021/04/15)
Jun 24 14:46:15 osmc kernel: r8152 1-2:1.0 eth1: This product is covered by one or more of the following patents:
                                             US6,570,884, US6,115,776, and US6,327,625.
Jun 24 14:46:15 osmc systemd[1]: mnt-FJData1.mount: Mount process exited, code=exited, status=32/n/a
Jun 24 14:46:15 osmc systemd[1]: mnt-FJData1.mount: Failed with result 'exit-code'.
Jun 24 14:46:15 osmc systemd[1]: Failed to mount /mnt/FJData1.
Jun 24 14:46:15 osmc connmand[2357]: eth1 {create} index 5 type 1 <ETHER>
Jun 24 14:46:15 osmc connmand[2357]: eth1 {update} flags 4098 <DOWN>
Jun 24 14:46:15 osmc connmand[2357]: eth1 {newlink} index 5 address 00:E0:4C:32:E7:9C mtu 1500
Jun 24 14:46:15 osmc connmand[2357]: eth1 {newlink} index 5 operstate 2 <DOWN>
Jun 24 14:46:15 osmc connmand[2357]: Adding interface eth1 [ ethernet ]
Jun 24 14:46:15 osmc systemd[1]: mnt-FJData1.automount: Got automount request for /mnt/FJData1, triggered by 2925 (JobWorker)
Jun 24 14:46:15 osmc connmand[2357]: eth1 {update} flags 36931 <UP,RUNNING>
Jun 24 14:46:15 osmc connmand[2357]: eth1 {newlink} index 5 address 00:E0:4C:32:E7:9C mtu 1500
Jun 24 14:46:15 osmc connmand[2357]: eth1 {newlink} index 5 operstate 0 <UNKNOWN>
Jun 24 14:46:15 osmc connmand[2357]: eth1 {update} flags 36867 <UP>
Jun 24 14:46:15 osmc connmand[2357]: eth1 {newlink} index 5 address 00:E0:4C:32:E7:9C mtu 1500
Jun 24 14:46:15 osmc connmand[2357]: eth1 {newlink} index 5 operstate 2 <DOWN>
Jun 24 14:46:15 osmc kernel: IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
Jun 24 14:46:15 osmc systemd-udevd[2739]: Using default interface naming scheme 'v240'.
Jun 24 14:46:15 osmc systemd[1]: Mounting /mnt/FJData1...
Jun 24 14:46:15 osmc mount[2958]: mount error(101): Network is unreachable
Jun 24 14:46:15 osmc mount[2958]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Jun 24 14:46:15 osmc systemd[1]: mnt-FJData1.mount: Mount process exited, code=exited, status=32/n/a
Jun 24 14:46:15 osmc systemd[1]: mnt-FJData1.mount: Failed with result 'exit-code'.
Jun 24 14:46:15 osmc kernel: CIFS VFS: Error connecting to socket. Aborting operation.
Jun 24 14:46:15 osmc kernel: CIFS VFS: cifs_mount failed w/return code = -101
Jun 24 14:46:15 osmc systemd[1]: Failed to mount /mnt/FJData1.
Jun 24 14:46:15 osmc systemd[1]: mnt-FJData1.automount: Got automount request for /mnt/FJData1, triggered by 2925 (JobWorker)
Jun 24 14:46:15 osmc systemd[1]: Mounting /mnt/FJData1...
Jun 24 14:46:15 osmc kernel: CIFS VFS: Error connecting to socket. Aborting operation.
Jun 24 14:46:15 osmc kernel: CIFS VFS: cifs_mount failed w/return code = -101
Jun 24 14:46:15 osmc mount[2962]: mount error(101): Network is unreachable
Jun 24 14:46:15 osmc mount[2962]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Jun 24 14:46:15 osmc systemd[1]: mnt-FJData1.mount: Mount process exited, code=exited, status=32/n/a
Jun 24 14:46:15 osmc systemd[1]: mnt-FJData1.mount: Failed with result 'exit-code'.
Jun 24 14:46:15 osmc systemd[1]: Failed to mount /mnt/FJData1.
Jun 24 14:46:15 osmc systemd[1]: mnt-FJData2.automount: Got automount request for /mnt/FJData2, triggered by 2923 (JobWorker)
Jun 24 14:46:15 osmc systemd[1]: Mounting /mnt/FJData2...
Jun 24 14:46:15 osmc kernel: usb 1-1: new low-speed USB device number 8 using xhci-hcd
Jun 24 14:46:15 osmc systemd[1]: mnt-FJData1.automount: Got automount request for /mnt/FJData1, triggered by 2925 (JobWorker)
Jun 24 14:46:15 osmc systemd[1]: Mounting /mnt/FJData1...
Jun 24 14:46:15 osmc kernel: CIFS VFS: Error connecting to socket. Aborting operation.
Jun 24 14:46:15 osmc mount[2965]: mount error(101): Network is unreachable
Jun 24 14:46:15 osmc mount[2965]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Jun 24 14:46:16 osmc systemd[1]: mnt-FJData2.mount: Mount process exited, code=exited, status=32/n/a
Jun 24 14:46:16 osmc systemd[1]: mnt-FJData2.mount: Failed with result 'exit-code'.
Jun 24 14:46:16 osmc kernel: CIFS VFS: cifs_mount failed w/return code = -101
Jun 24 14:46:16 osmc systemd[1]: Failed to mount /mnt/FJData2.
Jun 24 14:46:16 osmc systemd[1]: mnt-FJData2.automount: Got automount request for /mnt/FJData2, triggered by 2923 (JobWorker)
Jun 24 14:46:16 osmc mount[2968]: mount error(101): Network is unreachable
Jun 24 14:46:16 osmc mount[2968]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Jun 24 14:46:16 osmc systemd[1]: Mounting /mnt/FJData2...
Jun 24 14:46:16 osmc systemd[1]: mnt-FJData1.mount: Mount process exited, code=exited, status=32/n/a
Jun 24 14:46:16 osmc systemd[1]: mnt-FJData1.mount: Failed with result 'exit-code'.
Jun 24 14:46:16 osmc systemd[1]: Failed to mount /mnt/FJData1.
Jun 24 14:46:16 osmc systemd[1]: mnt-FJData1.automount: Got automount request for /mnt/FJData1, triggered by 2925 (JobWorker)
Jun 24 14:46:16 osmc systemd[1]: mnt-FJData1.mount: Start request repeated too quickly.
Jun 24 14:46:16 osmc systemd[1]: mnt-FJData1.mount: Failed with result 'exit-code'.
Jun 24 14:46:16 osmc systemd[1]: Failed to mount /mnt/FJData1.
Jun 24 14:46:16 osmc systemd[1]: mnt-FJData1.automount: Failed with result 'mount-start-limit-hit'.
Jun 24 14:46:16 osmc mount[2972]: mount error(101): Network is unreachable
Jun 24 14:46:16 osmc mount[2972]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

I can also see in the logs that the ethernet seems to come up after the automount attempts

Jun 24 14:46:18 osmc connmand[2357]: eth1 {add} route fe80:: gw :: scope 0 <UNIVERSE>
Jun 24 14:46:18 osmc connmand[2357]: eth1 {update} flags 102467 <UP,RUNNING,LOWER_UP>
Jun 24 14:46:18 osmc connmand[2357]: eth1 {newlink} index 5 address 00:E0:4C:32:E7:9C mtu 1500
Jun 24 14:46:18 osmc connmand[2357]: eth1 {newlink} index 5 operstate 6 <UP>
Jun 24 14:46:18 osmc kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Jun 24 14:46:18 osmc kernel: r8152 1-2:1.0 eth1: carrier on
Jun 24 14:46:18 osmc connmand[2357]: ipconfig state 3 ipconfig method 1
Jun 24 14:46:18 osmc connmand[2357]: eth1 {del} route fe80:: gw :: scope 0 <UNIVERSE>
Jun 24 14:46:24 osmc avahi-daemon[2329]: Joining mDNS multicast group on interface eth1.IPv4 with address 10.0.0.232.
Jun 24 14:46:24 osmc avahi-daemon[2329]: New relevant interface eth1.IPv4 for mDNS.
Jun 24 14:46:24 osmc avahi-daemon[2329]: Registering new address record for 10.0.0.232 on eth1.IPv4.
Jun 24 14:46:24 osmc connmand[2357]: Setting domainname to localdomain
Jun 24 14:46:24 osmc connmand[2357]: eth1 {add} address 10.0.0.232/24 label eth1 family 2
Jun 24 14:46:24 osmc connmand[2357]: eth1 {add} route 10.0.0.0 gw 0.0.0.0 scope 253 <LINK>
Jun 24 14:46:24 osmc connmand[2357]: eth1 {add} route 10.0.0.1 gw 0.0.0.0 scope 253 <LINK>
Jun 24 14:46:24 osmc connmand[2357]: eth1 {add} route 0.0.0.0 gw 10.0.0.1 scope 0 <UNIVERSE>
Jun 24 14:46:24 osmc connmand[2357]: eth1 {add} route 82.165.8.211 gw 10.0.0.1 scope 0 <UNIVERSE>
Jun 24 14:46:26 osmc ntpd[2915]: Listen normally on 5 eth1 10.0.0.232:123
Jun 24 14:46:26 osmc ntpd[2915]: new interface(s) found: waking up resolver

Do you have “Wait for Network” activated in MyOSMC → Network?
Alternatively I recommend the usage of autofs.

1 Like

Hi, thanks foir the reply. Yes I have Wait for Network activated (I will double check in a bit).
I’ve never used autofs, but I assume the configuration would be similar to fstab?

Yes very similar

1 Like

Thanks, I think this could solve my issues, as I’m sure it’s also dropped the mounts after they were working in the past and I don’t believe anything rebooted. I’ll look into it

I’ve switched to autofs and it appears to be working very well now, thanks for this suggestion. I knew this forum would come up with a good answer :smiley: