Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 80953  / 1 Year ago, tue, january 10, 2023, 9:23:37

I want to have a directory which is accessible on both Windows 7 installed on Ubuntu host, and the Ubuntu as well.



So I have installed the Virtualbox additions on both Windows and Ubuntu.



Then in Ubuntu:



sudo mkdir /media/win7share
sudo mount -t vboxsf win7share /media/win7share


I get:



/sbin/mount.vboxsf: mounting failed with the error: No such device



  • What do I need to type in Shared folders in Virtualbox Manager settings?

  • What do I need to set up on Windows?


More From » virtualbox

 Answers
1

Host: Ubuntu



Choose the folder that is to be shared (the same way as below - open VM settings on Your host and choose). Lets say it is (folder on Your host which You want to see from Win7 guest):



/home/misery


This tutorial covers the answer. After adding Your Ubuntu folder to shared start or reboot Your Win7 VM You should search Your local area network (in Win7 guest; wait until it has searched it - the green progress bar). After that network disk should appear.



enter image description here



On my PC it was found with no further steps. In case of problems please refer to the tutorial.



Host: Win7, Guest OS: Ubuntu



First go to Your virtual machines settings:



enter image description here



Add the folder You wish to share and name it (it will automatically name it). Here the Win7 path to my folder is C:Misery and the name is Misery



Then mark Auto mount option to mount it always when starting Your VM.



enter image description here



And basically that's it. Now start Your virtual machine. This tutorial explains the rest, in short You need to create the folder that will be Your mounting point (on the guest). Let's say it will be GMisery on Your ubuntu. So Create it in Your user directory. So now we have existing empty folder on guest OS:



/home/misery/GMisery


Next open Your terminal and write:



sudo mount -t vboxsf -o uid=1000,gid=1000 Misery /home/misery/GMisery


Now it should work. At least id does on my PC :] If no error occured, logout and login again and it should be done.



Please read attached tutorial also.



And in general it is a good idea to install on your host VB extension pack. However it has no influence on the topic discussed here.


[#40455] Wednesday, January 11, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ithriv

Total Points: 46
Total Questions: 115
Total Answers: 96

Location: Malaysia
Member since Wed, May 11, 2022
2 Years ago
ithriv questions
Tue, Mar 14, 23, 14:31, 1 Year ago
Wed, Oct 5, 22, 02:59, 2 Years ago
Fri, Mar 11, 22, 10:12, 2 Years ago
Thu, May 11, 23, 10:55, 1 Year ago
Sun, Sep 26, 21, 06:47, 3 Years ago
;