How to mount shared Folder in VirtualBox and Ubuntu Linux

1. Install Guest Additions
Open VirtualBox and Start your Virtual Machine.
Click to"Devices" and "Install guest additions"
VirtualBox will a mount a CD with guest additions on your Desktop.

cd /media/cdrom

if you have 32-Bit Linux use
sudo ./VBoxLinuxAdditions-x86.run

if you have 64-Bit Linux use
sudo ./VBoxLinuxAdditions-amd64.run
After you successful installed guest additions reboot your virtual machine.

2. Create Shared Folder
Click to "Devices" and "Shared Folder" on your virtual machine window.
Click to "add Button" and fill in the both fields "Folder Path" and "Folder Name"
for examle

Folder Path = D:\sharedFolder
Folder Name = sharedFolder

"Folder Path" ist the path on your Host Machine and "Folder Name" the name of your shared folder in your guest varitual machine.
Click "OK"

3. Mount the Folder in your virtual machine.
sudo mkdir /media/sharedFolder
sudo mount -t vboxsf sharedFolder /media/sharedFolder

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Use <pre> all your html php come here </pre> for your code
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <b> <pre> <h1> <h2> <h3> <h4> <h5> <h6> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <div> <style><img> <br> <blockquote>
  • Lines and paragraphs break automatically.
  • You may insert videos with [video:URL]

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.

CafeWebmaster.com(CW) is a free online community for webdevelopers and beginners. Anybody can share their code, articles, tips, tutorials, code-examples or other webdesign related material on the site. Newbies can submit their questions and reply to existing questions. CW does not guarantee or warrant reliability of code, data and information published on the site. Use the site on your own risk. The site takes no responsibility of direct or indirect loss or any kind of harm to its users. The site also doesn't take responsibility of infected files or source code with any kind of infection or viruses, worms, spywares, malwares, trojan horses. CW reserves the right to edit, move, or delete any of content for any reason.