Shared folder problem
Shared folder problem
I have the latest version of VirtualBox with Windos 7 as host and Ubuntu as quest.
I follow the documentation to try to add a shared folder ShareDocs but instead of this folder getting into the folder I specify I get my Ubuntu folders "Andrew" and in that "Desktop". I have checked the steps in setting up the share via VM setting and in the Ubuntu terminal type:
sudo mount -t vboxsf ShareDocs /home/andrew/share
Any advice will be appreciated.
Thanks Andrew
I follow the documentation to try to add a shared folder ShareDocs but instead of this folder getting into the folder I specify I get my Ubuntu folders "Andrew" and in that "Desktop". I have checked the steps in setting up the share via VM setting and in the Ubuntu terminal type:
sudo mount -t vboxsf ShareDocs /home/andrew/share
Any advice will be appreciated.
Thanks Andrew
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: Shared folder problem
Not a "Windows Hosts" question. Moving topic to "Linux Guests".
Please provide a VM log file. With the VM fully shut down, right click it in GUI. Select "Show Log" and save "VBox.log" (ONLY) to a zip file. Attach the zip here.
Please provide a VM log file. With the VM fully shut down, right click it in GUI. Select "Show Log" and save "VBox.log" (ONLY) to a zip file. Attach the zip here.
Re: Shared folder problem
I hope this is the right one.
Sorry for posting in he wrong place.
Regards Andrew
Sorry for posting in he wrong place.
Regards Andrew
- Attachments
-
- Ubuntu (64)-2017-03-12-14-23-26.zip
- (26.91 KiB) Downloaded 124 times
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Shared folder problem
Code: Select all
00:02:30.760304 Host path 'C:\Users\user\Documents\Ubuntu_share', map name 'Ubuntu_share', writable, automount=false, create_symlinks=false, missing=false
00:02:30.760311 SharedFolders host service: Adding host mapping failed with rc=VERR_ALREADY_EXISTS
00:02:30.787972 ERROR [COM]: aRC=E_FAIL (0x80004005) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={Could not create a shared folder 'Ubuntu_share' mapped to 'C:\Users\user\Documents\Ubuntu_share' (VERR_ALREADY_EXISTS)}, preserve=false aResultDetail=0
00:02:30.788269 Console: VM runtime error: fatal=false, errorID=BrokenSharedFolder message="Broken shared folder!"
Second, you tried to mount a share that was already mounted, so to say and that usually will not work.
If I might suggest I would remove the auto-mount part and see if manually mounting will work. If so then we can get to how to make that permanent.
Code: Select all
sudo mount -t vboxsf -o rw,uid=<your uid>,gid=<your gid> <share name> <mount point>
Re: Shared folder problem
Thanks I will try that. I am new to Linux where do I find my uid ?
Thanks Andrew
Thanks Andrew
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Shared folder problem
type id in a terminal.
Re: Shared folder problem
Found the ID etc and tried what you proposed.
I had some false starts so stopped the VM and started it again but the effect was the same "andrew" was in share etc. I attach the log
Regards Andrew
I had some false starts so stopped the VM and started it again but the effect was the same "andrew" was in share etc. I attach the log
Regards Andrew
- Attachments
-
- Ubuntu (64)-2017-03-12-15-37-42.zip
- (25.74 KiB) Downloaded 20 times
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Shared folder problem
Post the text shown from running id in the terminal
Post the exact text you are using to create this share in the guest.
Are you certain the mount point actually exists and of so what is it ( remember it is case sensitive ).
Also when you type the command do you receive any errors and if so what?
I also saw that you tried a share with Documents and the one with ShareDocs. Are you planning on having two shared folders or is this just to correct something?
Post the exact text you are using to create this share in the guest.
Are you certain the mount point actually exists and of so what is it ( remember it is case sensitive ).
Also when you type the command do you receive any errors and if so what?
I also saw that you tried a share with Documents and the one with ShareDocs. Are you planning on having two shared folders or is this just to correct something?
Re: Shared folder problem
Thanks for your help. I attach 3 jpegs which show what I did. The Share 3 show andrew now in the share folder and the result of doing an id. It aslo show a typo when I first tied it.
I also have a 32 bit Ubuntu and so I also tried it there with the same result.
Regards Andrew
I also have a 32 bit Ubuntu and so I also tried it there with the same result.
Regards Andrew
- Attachments
-
- Share 2.png (101.67 KiB) Viewed 12684 times
-
- Share 1.png (19.4 KiB) Viewed 12684 times
Re: Shared folder problem
and the last one. Yes the Documents ShareDocs was a mistake
Thanks Andrew
Thanks Andrew
- Attachments
-
- share 3.png (43.99 KiB) Viewed 12683 times
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Shared folder problem
What does the following do when typed in the terminal.
Of course that is assuming that "/home/andrew/share" actually exists. It looks like id does from your screen shot.
Note: you can probably just copy and paste the command in the guests terminal to avoid errors.
Code: Select all
sudo mount -t vboxsf -o rw,uid=1000,gid=1000 share /home/andrew/share
Note: you can probably just copy and paste the command in the guests terminal to avoid errors.
Re: Shared folder problem
Sorry but /home/andrew/share exist I posted the properties of it above. The Widows file ShareDocs also exists. I think your proposed test will fail as share is not a file on my Windows system. However, I will try it.
Re: Shared folder problem
Running your test it gives /sbin/mount.vboxsf: mounting failed with the error: Protocol error.
Doing it with ShareDocs which is the windows file I am trying to gives no errors but as initially stated it now contains a folder "andrew (path /home/andrew/share) and it contains a file Desktop (path /home/andrew/share/andrew) it is empty!
Regards Andrew
Doing it with ShareDocs which is the windows file I am trying to gives no errors but as initially stated it now contains a folder "andrew (path /home/andrew/share) and it contains a file Desktop (path /home/andrew/share/andrew) it is empty!
Regards Andrew
Re: Shared folder problem
Sorry it is working! The file I created in Windows was empty. It looks like VMbox created the flie andrew and Desktop. When I added my own files I could see them.
Sorry for wasting your time.
Andrew
Sorry for wasting your time.
Andrew
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Shared folder problem
OK so now to make it permanent you add that statement I gave you to the /etc/rc.local file. You must do so in an elevated editor ( as sudo ) and put the statement above the exit 0 line. Then when you reboot it will be there.
If you look at the screen shot you provided the share name is share and that is what you must use.
One other thing that may have been tripping you up is as I said Linux is case sensitive. I see that you did not adhere to that in a few of your replies.
If you look at the screen shot you provided the share name is share and that is what you must use.
One other thing that may have been tripping you up is as I said Linux is case sensitive. I see that you did not adhere to that in a few of your replies.