auto-mounting of shared folders?

Discussions about using Linux guests in VirtualBox.

auto-mounting of shared folders?

Postby otis » 18. Sep 2007, 16:50

does someone know a way how to automount the shared folders on linux guest startup with writepermissions for my useraccount?
I'm too lazy every bootup mount it manually...
thx a lot
Posts: 6
Joined: 4. Sep 2007, 00:04

Postby siyuan » 28. Sep 2007, 12:01

I got automounting working in Ubuntu 7.04, well sort of.

Edit /etc/auto.master, add your mount point, eg
Code: Select all   Expand viewCollapse view
/mnt/vboxsf   /etc/auto.vboxsf   --ghost

Create a file called /etc/auto.vboxsf and add share folder entries, eg
Code: Select all   Expand viewCollapse view
#foldername mount options                         host share name
hostshare   -fstype=vboxsf,rw,uid=1000,gid=1000   :share

Start /etc/init.d/autofs and you should now have share folders appear in /mnt/vboxsf

I still have one weird problem though, I can't change file permissions at all. Reading and writing as a user works fine.
Posts: 1
Joined: 28. Sep 2007, 11:48

Postby nabamer. » 24. Oct 2008, 14:11

Thanks, this worked fine!
I just had to apt-get install autofs (in Ubuntu 8.04)

Xavier (Calimo)

Postby dave_c » 31. Oct 2008, 11:23

I just create a link to application in /usr/share/autostart ,and put "mount -f vboxfs sharename mount-point" in the command line .
Posts: 6
Joined: 31. Oct 2008, 11:13

Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 7 guests