0

This question already has an answer here:

So I have a Windows folder, let's say F:\UShare . I want to use/mount that folder inside my VirtualBox Ubuntu installation.

It is still unclear to me what I have to do, even after reading this.

marked as duplicate by David Foerster, Ravan, Eric Carvalho, hg8, Fabby Jan 1 '16 at 19:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

If I understand correctly - your Windows OS is the host and Ubuntu is the guest VM.

If you're using VirtualBox with GUI - just click on a VM and go to it's Settings. In there you'll find the Shared Folders tab - and click the plus sign to add F:\UShare into the guest.

This link might help: https://www.virtualbox.org/manual/ch04.html#sharedfolders

Of course the same can be done using CLI, and if you're not sure on how to do that, please look in here: https://www.virtualbox.org/manual/ch08.html

To manually mount the folder open a terminal and use mount -t ntfs-3g /dev/sda? /media (in which I assumed that your windows hard drive is NTFS formatted - and you should replace the ? in which ever sda is correct in your computer)

  • I did that with the plus sign in the settings, but it shows up nowhere in Virtualbox Ubuntu. Yes, Windows ist host, Ubuntu is guest. I have to somehow manually mount the Windows Folder in Ubuntu to make it appear inside of Ubuntu. – Grumpy ol' Bear Dec 29 '15 at 17:15
  • which vbox version is that? and which ubuntu? – somethingorange Dec 30 '15 at 7:58
0

I had many problems getting this to work.

Then, I discovered Vagrant. Depending on what you are trying to accomplish with your guest VM, you might do well to use Vagrant. Vagrant provisions VirtualBoxes according to a formula. You search for an appropriate Vagrant file for your purpose (like Drupal, Wordpress, Joomla, etc.) and then type "vagrant up" and it all just happens for you. [Of course, there's that bit of learning curve to figure out how Vagrant works and modifying the Vagrantfile, but it's pretty magical to pull a Vagrant file off Github and use it with no mods and, boom, you have an entire Virtualbox in very short order.)

The other option is to use Samba to serve files from your Windows host to Linux guest, or vice versa. I use a Samba server on my Linux host to share files with my Windows guest and it seems to work much better than the shared directories. My shared directories got corrupted when things reset or rebooted unexpectedly and that corruption seems to happen less with Samba.

Not the answer you're looking for? Browse other questions tagged or ask your own question.