

Therefore, even though rc.local runs as root, I had no Desktop in my home directory to mount as the shared folder (I have always placed my main shared folder on my user's desktop) and so there really was no directory to mount into.

It took me a fair while to determine that the problem, which was reported as "/sbin/mount.vboxsf: mounting failed with the error: No such device." (after I redirected the output from the mount in rc.local to a tmp file for debugging), was because rc.local gets run before my home directory has been decrypted. I could mount them just fine in a terminal once everything had started up though, using the exact same command as was in rc.local.

However, I just upgraded to Ubuntu 11.10 and chose to try out the encrypted home dir option and all of a sudden my shared folders wouldn't work on startup, mounting them in rc.local as I always have. I have been using VirtualBox for a long time now and have had no problems with shared folders in linux or windows.
