Shared folder rc.local mout not working
Posted: 31. Aug 2016, 06:16
I am trying to automatically mount my shared folder at boot. Host is Windows 10, guest is Debian 8.5. I can mount it no problem manually, but if I add the mount string to rc.local as advised in the how to thread (viewtopic.php?f=29&t=15868) it does not work.
#systemctl status rc-local.service
rc-local.service - /etc/rc.local Compatibility
Loaded: loaded (/lib/systemd/system/rc-local.service; static)
Active: failed (Result: exit-code) since Tue 2016-08-30 23:43:33 EDT; 7min ago
Process: 436 ExecStart=/etc/rc.local start (code=exited, status=1/FAILURE)
Aug 30 23:43:33 kingdra rc.local[436]: /sbin/mount.vboxsf: mounting failed with the error: No such device
Aug 30 23:43:33 kingdra systemd[1]: rc-local.service: control process exited, code=exited status=1
Aug 30 23:43:33 kingdra systemd[1]: Failed to start /etc/rc.local Compatibility.
Aug 30 23:43:33 kingdra systemd[1]: Unit rc-local.service entered failed state.
#sudo /etc/init.d/rc.local start
Runs without error and mounts the folder.
The how to thread mentioned above states
Thanks in advance for any input!
#systemctl status rc-local.service
rc-local.service - /etc/rc.local Compatibility
Loaded: loaded (/lib/systemd/system/rc-local.service; static)
Active: failed (Result: exit-code) since Tue 2016-08-30 23:43:33 EDT; 7min ago
Process: 436 ExecStart=/etc/rc.local start (code=exited, status=1/FAILURE)
Aug 30 23:43:33 kingdra rc.local[436]: /sbin/mount.vboxsf: mounting failed with the error: No such device
Aug 30 23:43:33 kingdra systemd[1]: rc-local.service: control process exited, code=exited status=1
Aug 30 23:43:33 kingdra systemd[1]: Failed to start /etc/rc.local Compatibility.
Aug 30 23:43:33 kingdra systemd[1]: Unit rc-local.service entered failed state.
#sudo /etc/init.d/rc.local start
Runs without error and mounts the folder.
The how to thread mentioned above states
What causes it to not always work? Is there any way around this?The Shared Folders service should mount them automatically, but that doesn't always happen.
Thanks in advance for any input!