CIFS/SAMBA Mount still attempts before network is ready even with _netdev
The title gives a pretty good synopsis. I am running a debian derivative (osmc) on a raspberry pi 2 in this case. and am trying to mount a share. It mounts 100% a ok from the command line or just using mount -a
with the exact same /etc/fstab
but on boot it does not come up, no matter what settings I tweak.
The entry in /etc/fstab
is:
//192.168.10.100/music /mnt/musicshare cifs guest,_netdev 0 0
I've checked dmesg
and it shows the mount clearly trying to occur before the network is up:
[ 6.039309] input: lircd as /devices/virtual/input/input4
[ 6.511610] CIFS VFS: Error connecting to socket. Aborting operation.
[ 6.512123] CIFS VFS: cifs_mount failed w/return code = -101
[ 6.763291] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 6.763690] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 7.188820] systemd-journald[105]: Received request to flush runtime journal from PID 1
[ 8.486622] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8.496643] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[ 8.527928] 8021q: 802.1Q VLAN Support v1.8
[ 12.458908] Console: switching to colour dummy device 80x30
[ 36.929687] Transfer to device 4 endpoint 0x3 frame 729 failed - FIQ reported NYET. Data may have been lost.
[ 37.309752] Transfer to device 4 endpoint 0x3 frame 1109 failed - FIQ reported NYET. Data may have been lost.
Any ideas on this one?
Solution 1:
Assuming you have an up-to-date version of osmc running, use the following options instead:
x-systemd.automount,noauto
This results in a systemd automount unit being created. See systemd.automount for more details.