Advertisements

Tuesday, August 8, 2017

How to mount a share folder in Linux using Vbox

In this section I'm going to show how to mount a share folder using windows (host) and Linx Mint (Guest).

Here are the steps.

1.- Install the guess tools.
go to Devices -> Install Guest Additions and double-click the CD that pops up on your desktop

2.- Make an empty directory you want to mount to

mkdir ~/NewShareFolder

3.- Now to perform the mount itself

sudo mount -t vboxsf ShareWin /ShareWin

4.- Crear el link a desktop using

ln -s /media/sf_share ~/Desktop/share

then add the group vboxsf to user eddocg

By doing this, you are granting permission to enter to /media/sf_share folder

sudo usermod -a -G vboxsf eddocg

Next time you logout or restart the VM you will be able to use the shared folder

Note: I'm assuming before doing all of this you setup the share folder in vbox itself. (add this in the future)

If it doesnt work we have to add the user to the group vboxsf

usermod -a -G vboxsf eddocg

then go to menu->Administration-> user and group
 
 
And that’s it. But if you want a permanent share, it’s even easier. When adding a permanent share, be sure to tick the “auto-mount” box – this means you won’t have to enter a mounting command every time you start up Linux again. Once you reboot, you’ll find the share mounted at /media/sf_sharename. Of course, that’s not terribly handy, so why not make a symlink to it (a shortcut)?
In this example I’m going to assume, again, that my share’s name is My_Dropbox, and I want to create a shortcut to it from the Desktop:
ln -s /media/sf_My_Dropbox ~/Desktop/Dropbox The nice thing about permanent shares is that they’re, well, permanent, so you’ll never have to go through this procedure again unless you’re mounting another share.
And that’s it, now the writing on your hard drive is easily accessible from inside your virtual machine.
 

No comments:

Post a Comment