I've completed 90% of this walkthrough:
https://help.ubuntu.com/community/VirtualBox/SharedFolders#Getting_VBoxLinuxAdditions.iso
... and I'm currently in the " Prepare Guest " section. Where this is giving me problems:
sudo mount -t vboxsf -o uid=1000,gid=1000 $sharename /mnt/$sharename \
the " -t " option is giving me issues as per this error message when running the full set of commands:
mkdir invalid option --t
Try ' mkdir --help ' for more information.
So! If I've already configured the share on the host ... and I'm attempting to mount a local dir on the GUEST system for the HOST to view
... What should I be doing differently here?
Setting up shared folder can be done from Virtual Box as it was further elaborated in answers to these question:
However because it is so much easier to set up (and they safer in addition) I usually share folders to and from a virtual machine using basic network shares from the Nautilus right click "Sharing Options" menu. These can be set up anytime and will immediately be accessible from the "Browse Network" entry in Nautilus.
After right click on a directory from your HOME for Sharing Options we may be asked to download samba packages - do so. Then we tick the Share this folder box and give the needed permissions for this share to enable sharing over the network.
We may have to restart our session for changes to take effect. After having defined our shared directory we can browse it using Nautilus Browse Network where our share appears in the
Windows Network/WORKGROUP/
directory.Fo ease of use I have set my network adapter to bridged in the Virtual Box Manager.