Page 1 of 1

auto-mounting of shared folders?

Posted: 18. Sep 2007, 16:50
by otis
Hello,
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

Posted: 28. Sep 2007, 12:01
by siyuan
I got automounting working in Ubuntu 7.04, well sort of.

Edit /etc/auto.master, add your mount point, eg

Code: Select all

/mnt/vboxsf   /etc/auto.vboxsf   --ghost
Create a file called /etc/auto.vboxsf and add share folder entries, eg

Code: Select all

#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.

Posted: 24. Oct 2008, 14:11
by nabamer.
Thanks, this worked fine!
I just had to apt-get install autofs (in Ubuntu 8.04)

Xavier (Calimo)

Posted: 31. Oct 2008, 11:23
by dave_c
I just create a link to application in /usr/share/autostart ,and put "mount -f vboxfs sharename mount-point" in the command line .