Page 1 of 1

Shared folder Mounting failed : No Such Device

Posted: 24. Aug 2010, 20:42
by neilghosh
Hi,

I am running Ubuntu 10.04 on the latest Virtual Box.
I have installed VBoxAdditions and created a shared folder D:\dev as the name "dev" in settings

But while mounting inside linux terminal I get following error
please help

Created a folder /home/neil/d

sudo mount.vboxsf dev /home/neil/d

mounting failed with the error : No Such Device

Thanks
Neil

Re: Shared folder Mounting failed : No Such Device

Posted: 24. Aug 2010, 20:49
by Sasquatch
Please follow my Howto: Use Shared Folders and see if it helps. Use the same names and commands in my examples to make it easier to troubleshoot this in case it doesn't work.

Re: Shared folder Mounting failed : No Such Device

Posted: 25. Aug 2010, 11:54
by neilghosh
Thanks for reply But still does not work :(
I had followed the same procedure already .
Please find the screenshots .I already installed GA many times .(is there any way to confirm ?)
Please help

Re: Shared folder Mounting failed : No Such Device

Posted: 25. Aug 2010, 13:30
by Martin
Did you try another name than "share"?

Re: Shared folder Mounting failed : No Such Device

Posted: 25. Aug 2010, 14:30
by Pyruzan
You should first install guest additions in order to use the shared folders.

And that's most of the time my problem; getting guest additions to install completely and correctly under some distros such as Fedora or Ubuntu Studio. And of course I have done everything said in "HOWTO: Install Linux Guest Additions" step by step, but I get this message in the log file: " Makefile:23: *** Error: unable to find the sources of your current linux kernel. Specify KERN_DIR=<directory> and run Make again.. Stop."

Any idea how to fix the problem?

Re: Shared folder Mounting failed : No Such Device

Posted: 25. Aug 2010, 20:21
by neilghosh
Martin wrote:Did you try another name than "share"?
Yes Martin , I tried with "dev" and other names , same error .

Re: Shared folder Mounting failed : No Such Device

Posted: 25. Aug 2010, 20:22
by neilghosh
Pyruzan wrote:You should first install guest additions in order to use the shared folders.

And that's most of the time my problem; getting guest additions to install completely and correctly under some distros such as Fedora or Ubuntu Studio. And of course I have done everything said in "HOWTO: Install Linux Guest Additions" step by step, but I get this message in the log file: " Makefile:23: *** Error: unable to find the sources of your current linux kernel. Specify KERN_DIR=<directory> and run Make again.. Stop."

Any idea how to fix the problem?
Whenever I install guest additions it replaces the same . SO I think it is installed properly

Re: Shared folder Mounting failed : No Such Device

Posted: 25. Aug 2010, 22:18
by Pyruzan
neilghosh wrote:Whenever I install guest additions it replaces the same . SO I think it is installed properly
What is the output when you run VitualBox GAs in Termianl?

If you got this like me: "Building VirtualBox Guest Additions kernel modules ...fail!" then it doesn't matter how many times you repeat that, neither the visuals and full screen mode nor the shared folders work.

But if that part goes right then there should be no problem.

I myself create two folders on the guest desktop named "Pyruzan" and "Downloads", then I will go to settings of the VM and select my desired 2 shared folders from host and name them "Pyruzan" and "Downloads". Then simply paste these two lines in Terminal and enter:

Code: Select all

sudo mount -t vboxsf -o uid=1000,gid=1000 Pyruzan /home/pyruzan/Desktop/Pyruzan &&
sudo mount -t vboxsf -o uid=1000,gid=1000 Downloads /home/pyruzan/Desktop/Downloads
Piece of cake, but as I said before my problem is to get GAs installed correctly :cry: .

Re: Shared folder Mounting failed : No Such Device

Posted: 26. Aug 2010, 12:35
by Pyruzan
And finally, I figured out what the problem is.

All these difficulties come up just because this howto: "HOWTO: Install Linux Guest Additions + Xorg config" tells you to go the long painful way instead of easy simple one!

The problem is in the following line:

Code: Select all

sudo apt-get install build-essential linux-headers-generic
where the latest kernel headers that you receive probably don't match with the version of your current kernel, hence VB GAs' kernel modules can't be installed correctly.
Yeah, I know, it says first update your distro, but many users don't have such a bandwidth to download about 200MB of packages in a couple of minutes!

Here is the easy simple way without the need of updating your whole ubuntu:
first run this command to get your current kernel version:

Code: Select all

uname -r
then this:

Code: Select all

sudo apt-get install linux-headers-`uname -r`
and if needed (probably not):

Code: Select all

sudo apt-get install build-essential
That's it, you're all good to go with installing VB GAs without any problem.

And by the way, VirtualBox Rocks, it's the best out there and also FREE!!! :D

Re: Shared folder Mounting failed : No Such Device

Posted: 26. Aug 2010, 18:58
by neilghosh
I had to create a new Hard DIsk with new Ubuntu installation because I has some urgent work.
Anyway thanks for your response .Will keep these in mind when I face the issue next time.

Anyway Love Oracle Virtual Box !

Re: Shared folder Mounting failed : No Such Device

Posted: 28. Aug 2010, 00:04
by Sasquatch
This is just a FYI, but in the screenshot you posted, I clearly see that the mount point 'host' is already mounted or at least changed in one way or another. It wasn't a normal empty folder any longer.

Re: Shared folder Mounting failed : No Such Device

Posted: 18. Nov 2010, 01:58
by marciogreison
Hello, I am using as host the seventh and windows as guest Debian lenny, and also had this same problem to access a share, but after examining the problem a little more and with your help, I managed to solve by downloading the headers kernel "linux-headers-*" and reinstalling the "guest additions", now the command: mount-s ... vboxsf worked ..

thanks!

Re: Shared folder Mounting failed : No Such Device

Posted: 18. Nov 2010, 15:15
by peab
I had a similar problem while installing the guest linux distribution package virtualbox-guest-additions (Ubuntu) followed by the installation from the iso corresponding to the Windows host vbox. The linux package creates some modules under /lib/modules/kernel/updates that prevent the vboxsf.ko to be modprobed.

Removing all virtualbox-* packages from the guest and installing guest-additions following http://www.virtualbox.org/manual/ch04.html#id463025 solved the problem.