Linux
即使使用 _netdev,CIFS/SAMBA 掛載仍會在網路準備好之前嘗試
標題給出了一個很好的概要。在這種情況下,我在樹莓派 2 上執行 debian 衍生產品 (osmc)。並且正在嘗試安裝共享。無論我調整什麼設置,它都可以從命令行安裝 100%,或者只是使用
mount -a
完全相同的/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.
關於這個有什麼想法嗎?
假設您正在執行最新版本的 osmc,請改用以下選項:
x-systemd.automount,noauto
這會導致創建一個 systemd 自動掛載單元。有關更多詳細資訊,請參見systemd.automount。