我正在尝试在启动时挂载 Windows 共享。我已关注这描述。它可以正常运行,sudo mount -a
但在重新启动/启动时什么也没有发生。
我的fstab
样子
//erik-bkup/delad /media/test cifs username=myname,password=mypassword,domain=mydomain,iocharset=utf8,sec=ntlmssp 0 0
在我的journalctl - log
我有以下错误信息
systemd[1]: Failed to start /etc/rc.local Compatibility.
systemd[1]: Failed to mount /media/test.
发现使用此命令我收到了日志文件rc.local
sudo systemctl status rc-local
它给了我以下错误日志
rc-local.service - /etc/rc.local Compatibility
Loaded: loaded (/lib/systemd/system/rc-local.service; static; vendor preset: enabled)
Drop-In: /lib/systemd/system/rc-local.service.d
└─debian.conf
Active: failed (Result: exit-code) since mån 2017-06-26 18:01:11 CEST; 2h 10min ago
Process: 961 ExecStart=/etc/rc.local start (code=exited, status=1/FAILURE)
jun 26 18:01:11 kontor systemd[1]: Starting /etc/rc.local Compatibility...
jun 26 18:01:11 kontor rc.local[961]: mount error: could not resolve address for erik-bkup: Unknown error
jun 26 18:01:11 kontor systemd[1]: rc-local.service: Control process exited, code=exited status=1
jun 26 18:01:11 kontor systemd[1]: Failed to start /etc/rc.local Compatibility.
jun 26 18:01:11 kontor systemd[1]: rc-local.service: Unit entered failed state.
jun 26 18:01:11 kontor systemd[1]: rc-local.service: Failed with result 'exit-code'.
~
想知道我是否走在正确的道路上,这rc.local
可能是我的共享文件夹无法自动挂载的问题