Access Virtual Box Shared Folder on Linux Guest – How TO

By Pratik Shivarkar | Labels: , , , ,

You might have used shared folder on Windows client, which is quite easy.
The procedure is bit different in Linux, Lets see how -


Install Virtual Box Guest Additions, If you don’t know how see Here
Create a Shared Folder
Device > Shared Folder ( in Menu )
or Click Blue folder button in lower right corner of Vbox Window
[ I shared folder named “Shared” for example ]

Mount the Shared folder now.
Use following commands.
Ubuntu users
sudo mount.vboxsf Shared ~/Shared -o rw,exec,uid=1000,gid=1000,dev
Fedora users
su –c “mount.vboxsf Shared ~/Shared -o rw,exec,uid=1000,gid=1000,dev”
Your folder will get mounted.
Access the folder now.

To make folders mount after reboot.
Open /etc/fstab
You will need root access to edit the file
sudo gedit /etc/fstab
Once the file is opened, add this line in end.
foldername /folder/mount/path vboxsf rw,exec,uid=1000,gid=1000,dev 0 0
Change the foldername and /folder/mount/path to respective one.
foldername is Share name
/folder/mount/path is path to folder where you want to mount the folder
For example, I use
Shared /home/pratik/Shared vboxsf rw,exec,uid=1000,gid=1000,dev 0 0
Save the file and reboot the machine

Reblog this post [with Zemanta]

blog comments powered by Disqus

.

Your Ad Here