Page 1 of 2

Mount failure of a Share folder in Ubuntu 10.10

Posted: 23. Nov 2010, 19:58
by ordipb
Hello,

I use VirtualBox 3.2.10 on Windows 7 host. The guest runs Ubuntu 10.10, with guest add-ons successfully installed.

In the virtual machine, I defined a Share folder pointing to a directory of the Host.

I would mount this Share.

For this, I do : mount -t vboxsf Share /mnt/Share
the name of the Share is Share and the mouting point Share has been created with rights for all (chmod 777).

The mount fails : /sbin/mount.vboxsf : mounting failde with the error : Protocol error.

How to solve this problem ?

Thank you in advance for your help.

Re: Mount failure of a Share folder in Ubuntu 10.10

Posted: 23. Nov 2010, 20:12
by Perryg
What is Share assigned to in the Host? What are you trying to share? This is selected using the shared folder section of VirtualBox.
Does the mount point exist on the guest /mnt/Share?

Re: Mount failure of a Share folder in Ubuntu 10.10

Posted: 23. Nov 2010, 20:24
by ordipb
Yes, Perryg, the Share exists in the Host. In VirtualBox Settings, it is well defined in the shared folder section of VirtualBox : name (Share) and location of the directory in the Host.

I want to share this directory Share (which exists in the Host).

As I said in my firt post, the mount point exists on the guest : it is /mnt/Share.

Now, what produces this mount failure ?

Have a good evening.

Re: Mount failure of a Share folder in Ubuntu 10.10

Posted: 23. Nov 2010, 21:07
by Perryg
I asked to make sure that you did indeed check. You would be surprised how many do not and this saves me time.
Next you say the guest additions are installed. Are you sure they are installed properly? 99% of the time when people have problems they are not.
The next thing and probably the most important is with your mount statement did you use sudo?

Code: Select all

sudo mount -t vboxsf Share /mnt/Share

Re: Mount failure of a Share folder in Ubuntu 10.10

Posted: 24. Nov 2010, 00:04
by ordipb
Don't worry, Perryg, I understand perfectly you need to verify all that.

Yes, I am sure that guest additions are properly installed. As a proof of this : I can copy a text of the Ubuntu console and past it in Windows software (it's that I did below about root).

Yes, I performed the mount command being root (sudo su). Look at this command and result of it :
root@claude-VirtualBox:/mnt# mount -t vboxsf PartageVirtualBox /mnt/PartageVirtualBox
/sbin/mount.vboxsf: mounting failed with the error: Protocol error
root@claude-VirtualBox:/mnt#

In my previous posts, I named the share as Share, but it's true name is PartageVirtualBox, as you see above.

Thnak you,Perryg, for your help.

Re: Mount failure of a Share folder in Ubuntu 10.10

Posted: 24. Nov 2010, 00:29
by Perryg
OK yet another question so I can see if I can isolate the problem.
Did/do you have dkms installed on the guest before you installed the guest additions?
There have been issues reported with ver 3.2.10 if dkms was not installed where some portions were not installed correctly. Mostly it has been associated with X but it might be something to look at.

Re: Mount failure of a Share folder in Ubuntu 10.10

Posted: 24. Nov 2010, 07:39
by ordipb
Good morning Perryg,

No, dkms is not installed in the Guest. I verificated with the package manager Synaptic.
So, It was not installed before I installed the guest additions.

Thank you again for your help.

Re: Mount failure of a Share folder in Ubuntu 10.10

Posted: 24. Nov 2010, 16:04
by Perryg
You can install dkms and then install the guest additions again. Reboot and see if it helps.

Re: Mount failure of a Share folder in Ubuntu 10.10

Posted: 24. Nov 2010, 17:22
by ordipb
Hello Perryg,

I try to install dkms (with Synaptic) , but I have the message : "virtualbox-ose-dkms is in conflict with virtualbox-ose-guest-dkms, but 3.2.8-dfsg-2ubuntu1 must be installed".

There is no package available for 3.2.8-dfsg-2ubuntu1. There are many for dfsg, but, in the list of these packages, there is not dfsg itself.

What have I to do ? Have I to desinstall the guest additions previously ? If yes, can you say me how to do to desinstall them ?

Thank you.

Re: Mount failure of a Share folder in Ubuntu 10.10

Posted: 24. Nov 2010, 17:28
by Perryg
Those packages are for the OSE version of VirtualBox from Ubuntu. The actual package you need is just dkms.
In a terminal type:

Code: Select all

sudo apt-get install dkms 
Should install the proper package.

Question; when you installed the guest additions, can you tell me how you are doing this? Did you click the devices tab at the top left of the window or did you use the synaptic package manager?

Re: Mount failure of a Share folder in Ubuntu 10.10

Posted: 24. Nov 2010, 17:35
by ordipb
To install the guest additions, I click the devices tab at the top left of the window (I don't use Synaptic for this.

Is it the good procedure ?

Re: Mount failure of a Share folder in Ubuntu 10.10

Posted: 24. Nov 2010, 17:41
by ordipb
I install successfully dkms with apt-get. OK.

I wait for your answer about the procedure (by the devices tab, or by Synaptic), before reinstalling the guest additions.

Thank you in advance.

Re: Mount failure of a Share folder in Ubuntu 10.10

Posted: 24. Nov 2010, 17:47
by Perryg
The proper way (since you are using the PUEL version) is to click the devices tab. My concern was that if you were actually installing the OSE version this would cause the problem you are seeing as they do not match your installed version of VirtualBox.

So at this point reinstall the guest additions, watch the screen closely for a success of all installed packages and then reboot the guest before you try the mount again.

Re: Mount failure of a Share folder in Ubuntu 10.10

Posted: 24. Nov 2010, 19:19
by ordipb
I installed the guest additions by Devices > To install the guest additions, without problem.
I rebooted the guest.
I mounted the share, and, this time, the mount was good.

The problem is solved. Thank you very much for your help.

You say that I use the PUEL version. How do you know this ? (I though I use the OSE version).
My version of VirtualBox is 3.2.10 r66523 for Windows.
Is it a PUEL version ?

Have a good evening.

Re: Mount failure of a Share folder in Ubuntu 10.10

Posted: 24. Nov 2010, 19:27
by Perryg
If you were using the OSE version you would have had to compile it yourself. On Windows that is real chore. Plus you state it is PUEL in you profile.