即使使用 _netdev,在网络准备就绪之前仍会尝试 CIFS/SAMBA 挂载

即使使用 _netdev,在网络准备就绪之前仍会尝试 CIFS/SAMBA 挂载

标题给出了一个很好的概要。在这种情况下,我正在 raspberry pi 2 上运行 debian 衍生产品 (osmc)。并尝试安装共享。它从命令行或仅使用mount -a完全相同的命令安装 100% 成功/etc/fstab,但在启动时它不会出现,无论我调整什么设置。

中的条目/etc/fstab是:

//192.168.10.100/music  /mnt/musicshare cifs    guest,_netdev   0       0

我已经检查过dmesg并且它清楚地显示在网络启动之前尝试进行挂载:

[    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.

对这个有什么想法吗?

答案1

假设您正在运行最新版本的 osmc,请使用以下选项:

x-systemd.automount,noauto

这将创建一个 systemd 自动挂载单元。请参阅systemd 自动挂载更多细节。

相关内容