auto-mounting of shared folders?

Discussions about using Linux guests in VirtualBox.
Post Reply
otis
Posts: 6
Joined: 4. Sep 2007, 00:04

auto-mounting of shared folders?

Post 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
siyuan
Posts: 1
Joined: 28. Sep 2007, 11:48

Post 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.
nabamer.

Post by nabamer. »

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

Xavier (Calimo)
dave_c
Posts: 6
Joined: 31. Oct 2008, 11:13

Post 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 .
Post Reply