This tutorial shows you how to share folders in VirtualBox on a Linux Mint/Ubuntu based operating system. From auto-mount to manual mount, umount, tips and tricks.
Code used during this tutorial:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
Share folder: ============= Add user to group: sudo gpasswd -a liviu vboxsf Mount host dir "share-1" to guest dir "~/Share/share-1" of type "vboxsf": sudo mount -t vboxsf share-1 ~/Share/share-1 sudo mount -t vboxsf -o gid=111 share-1 ~/Share/share-1 sudo mount -t vboxsf -o umask=0022,gid=111,uid=1000 share-1 ~/Share/share-1 Mount on start: sudo vi /etc/fstab share-1 /home/liviu/Share/share-1 vboxsf defaults 0 0 share-1 /home/liviu/Share/share-1 vboxsf umask=0022,gid=111,uid=1000 0 0 # Later update share-1 /home/liviu/Share/share-1 vboxsf defaults,_netdev,umask=0022,gid=111,uid=1000 0 0 sudo vi /etc/modules vboxsf |
Useful links:
http://askubuntu.com/questions/365346/virtualbox-shared-folder-mount-from-fstab-fails-works-once-bootup-is-complete