[4.0.10] problem with sharing folder in Linux guest

Discussions about using Linux guests in VirtualBox.
Post Reply
athspk
Posts: 4
Joined: 5. Jul 2011, 01:11
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: WindowsXP, Lubuntu

[4.0.10] problem with sharing folder in Linux guest

Post by athspk »

Hello :-)
After reading the guide and the posts in the forum,
i installed Additions, shared folder(sudo mount -t vboxsf vbshare ~/shared), and moved stuff between host-guest successfully.

The problem appeared after i shutted down and restarted Lubuntu(guest). There was nothing inside the ~/shared Folder.
At first i thought it was because of the restart, but when i tried to mount again with the command above... i got the following error:

Code: Select all

athspk@athspk-VBox:~$ sudo mount -t vboxsf vbshare ~/shared
/sbin/mount.vboxsf: mounting failed with the error: Invalid argument
I need your advice please.
Thanks in advance :-)

HOST: Win7
Folder Path: C:\vbshare

GUEST: Lubuntu 11.04
Folder Path: ~/shared

The options i used when i created the folder from the User Interface were:
+Read only
+Auto Mount
+Make permanent
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: [4.0.10] problem with sharing folder in Linux guest

Post by Perryg »

If you enabled the auto-mount then you can not mount the share manually. It will be located in /media/sf_<share name>
Also it is required that you add your guest user name to the guest vboxsf group.

If you intend to mount this manually you need to delete the share and do it again while the guest is shut off, but do not tell it to auto-mount.
All of this is explained in chapter 4.3 Shared folders of your VirtualBox users manual.
athspk
Posts: 4
Joined: 5. Jul 2011, 01:11
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: WindowsXP, Lubuntu

Re: [4.0.10] problem with sharing folder in Linux guest

Post by athspk »

Thank you perryg :-)
Post Reply