I'm trying to get a windows share to mount at startup. I have followed this description. It works fine to run a sudo mount -a
But at restart / boot nothing happens.
My fstab
looks like this
//erik-bkup/delad /media/test cifs username=myname,password=mypassword,domain=mydomain,iocharset=utf8,sec=ntlmssp 0 0
In my journalctl - log
I have the following error message
systemd[1]: Failed to start /etc/rc.local Compatibility.
systemd[1]: Failed to mount /media/test.
Found that using this command I received the log file for rc.local
sudo systemctl status rc-local
And it gives me the following error log
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'.
~
Wondering if I'm on the right path here, if rc.local
might be the problem why my shared folder is not automounts
0 Answers