To mount a shared folder during boot, add the following entry to /etc/fstab:
sharename mountpoint vboxsf defaults 0 0
Well it does works; but some times during boot up, or especially after kernel update, this feature fails with loading up of the maintenance mode. The only solution is to disable it and reboot.
I usually keep on running into this problem. Please inform, if theres a work around!
As for the rest of your issue, the solution is to remove it from the "/etc/fstab" entry and add it to the "rc.local". This has happened due to the delayed start of the VirtualBox related services due to Ubuntu changes.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
1. Please be kind to clarify rc.local. I understand that the links I shared give many options to resolve it ...!
2. Well the problem came to me in Debian, Opensuse (in randomly) and definitely Ubuntu never mounted it.
3. As I recall: I think that Devuan, Centos and Fedora, perhaps didnt give this problem.
makh wrote:I understand that the links I shared give many options to resolve it
I'm not a Linux guru, so let's see if someone else with more experience can verify it, but the idea is that you create/edit the file "/etc/rc.local" for your OS. For example, in my Ubuntu 16.04, the default "/etc/rc.local" looks like this:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
exit 0
If I want to mount "sharename" into "mountpoint", I need to modify that file to look something like this:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.mount -t vboxsf sharename mountpoint
exit 0
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.