Automount Shared Folders on Lubuntu

Discussions about using Linux guests in VirtualBox.
Post Reply
pmwaters
Posts: 11
Joined: 10. Mar 2013, 15:12

Automount Shared Folders on Lubuntu

Post by pmwaters »

I'm having trouble finding a working solution to automount shared folders in Lubuntu. Anyone know how to do this?

Shared folder directory is /media/sharedfolders

Thanks!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Automount Shared Folders on Lubuntu

Post by Perryg »

It depends on how you created the shared folder. If you selected automount then there is nothing that needs to be done except adding the guests user name to the guests vboxsf group.
If however you mean a persistent shared folder then you create the share without automount and add the commands to create the share to the /etc/rc.local file.
pmwaters
Posts: 11
Joined: 10. Mar 2013, 15:12

Re: Automount Shared Folders on Lubuntu

Post by pmwaters »

Edit: didn't see the automount option in Virtualbox Guest Additions. Then just added:
sudo adduser <username> vboxsf

All good - thanks!
---

Thanks for the reply. I didn't realize there was an automount option in Lubuntu. Where is that located typically? I can't find any info in Google, but this option sounds much easier and user friendly.

I added Guest Additions, added the shared folder from the host, and made Permanent. Then in the guest OS I opened Terminal and did this:
sudo mkdir /media/sharedfolder
sudo mount -t vboxsf SHARED /media/sharedfolder

Thanks again
Post Reply