virtualbox shared folders
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4126
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
To create shared folders in a Linux type guest, first enable shared folders, using the menu option, you select it, find the folder you want shared, then enable it for always be shared.

Then you need to explicitly enable it. As root, do the following:

:: Code ::
mount -t vboxsf [-o OPTIONS] sharename mountpoint

Of course replace the sharename and mountpoint with the real stuff.

Let's say your user name is fred. You want to share your whole home directory, called fred.

First, add that item to the virtualbox shared folders option, and say to remember it, and call it fred, to make it easy to remember.

Now let's assume you want to mount it in your virtualbox guest home directory.

Whatever your guest user name is, let's say frank, you make a directory: /home/frank/fred-shared
It could be called anything of course.

Then, you make the mount like this:
:: Code ::
mount -t vboxsf fred /home/frank/fred-shared


And that's it, you'll have immediate access to that shared data.
Back to top
Display posts from previous:   

All times are GMT - 8 Hours