VirtualBox 6.0.14: shared folder doesn't appear in "/media"
In VirtualBox 6.0.14 with an Ubuntu Linux guest (Guest Additions installed ...), this shared folder does not show up in /media as advertised. (The only thing that's there is /media/cdrom.)
Why doesn't my share show up?
01 Answer
Well, I answered my own question with a little searching here in StackExchange: the virtualbox guest additions kernel modules were not installed. And the VB documentation really didn't point that out. So, here's what solved the problem:
- On the Devices menu of the running virtual machine, click "Insert Guest Additions CD Image."
- If necessary,
sudo mkdir /mnt/cdromto make a mount-point. (You can of course use any directory as a mount-point ...) sudo mount /dev/cdrom /mnt/cdromto mount the CD there.cd /mnt/cdromto go inside.sudo ./VBoxLinuxAdditions.run- ... wait for it to do its thing ... it will compile and install the modules, but they won't be loaded yet.
sudo reboot
Now, mount | grep vboxsf will show that there now is a mounted filesystem. (This is because I specified "auto-mount" as you see in the original post. If you don't do that, you'll have to fiddle with /etc/fstab, which I won't go into here ...)
You might find, however, that you get Permission Denied when you try to look inside! Now's a good time to remember that you must be a member of the vboxsf group. (ls -l /mnt/* will show the group-name and permissions mask.) Here's what to do:
sudo usermod -a -G vboxsf yourusername (Note: with a capital -G!) Then, log off and log back on again so that the changes take effect. Confirm this with the groups command, which will now list this group as one that you belong to. (Of course, you can use fuzzy GUI tools to manage the user's group memberships if you prefer.)
More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"