Shared folder Mounting failed : No Such Device

Discussions related to using VirtualBox on Windows hosts.

Shared folder Mounting failed : No Such Device

Postby neilghosh » 24. Aug 2010, 20:42

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
Neil
neilghosh
 
Posts: 42
Joined: 24. Aug 2010, 18:05
Location: Hyderabad
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Shared folder Mounting failed : No Such Device

Postby Sasquatch » 24. Aug 2010, 20:49

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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Shared folder Mounting failed : No Such Device

Postby neilghosh » 25. Aug 2010, 11:54

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
Attachments
terminal.jpg
terminal.jpg (31.04 KiB) Viewed 24179 times
shared folder.jpg
shared folder.jpg (28.41 KiB) Viewed 24181 times
Neil
neilghosh
 
Posts: 42
Joined: 24. Aug 2010, 18:05
Location: Hyderabad
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Shared folder Mounting failed : No Such Device

Postby Martin » 25. Aug 2010, 13:30

Did you try another name than "share"?
Martin
Volunteer
 
Posts: 806
Joined: 30. May 2007, 18:05
Primary OS: Fedora 18
VBox Version: PUEL
Guest OSses: XP, Win7, Linux, OS/2

Re: Shared folder Mounting failed : No Such Device

Postby Pyruzan » 25. Aug 2010, 14:30

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?
Pyruzan
 
Posts: 3
Joined: 25. Aug 2010, 14:07
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: ubuntu studio, kubuntu, fedora, mandriva

Re: Shared folder Mounting failed : No Such Device

Postby neilghosh » 25. Aug 2010, 20:21

Martin wrote:Did you try another name than "share"?


Yes Martin , I tried with "dev" and other names , same error .
Neil
neilghosh
 
Posts: 42
Joined: 24. Aug 2010, 18:05
Location: Hyderabad
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Shared folder Mounting failed : No Such Device

Postby neilghosh » 25. Aug 2010, 20:22

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
Neil
neilghosh
 
Posts: 42
Joined: 24. Aug 2010, 18:05
Location: Hyderabad
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Shared folder Mounting failed : No Such Device

Postby Pyruzan » 25. Aug 2010, 22:18

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   Expand viewCollapse view
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: .
Last edited by Pyruzan on 26. Aug 2010, 12:47, edited 2 times in total.
Pyruzan
 
Posts: 3
Joined: 25. Aug 2010, 14:07
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: ubuntu studio, kubuntu, fedora, mandriva

Re: Shared folder Mounting failed : No Such Device

Postby Pyruzan » 26. Aug 2010, 12:35

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   Expand viewCollapse view
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   Expand viewCollapse view
uname -r

then this:
Code: Select all   Expand viewCollapse view
sudo apt-get install linux-headers-`uname -r`

and if needed (probably not):
Code: Select all   Expand viewCollapse view
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
Pyruzan
 
Posts: 3
Joined: 25. Aug 2010, 14:07
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: ubuntu studio, kubuntu, fedora, mandriva

Re: Shared folder Mounting failed : No Such Device

Postby neilghosh » 26. Aug 2010, 18:58

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 !
Neil
neilghosh
 
Posts: 42
Joined: 24. Aug 2010, 18:05
Location: Hyderabad
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Shared folder Mounting failed : No Such Device

Postby Sasquatch » 28. Aug 2010, 00:04

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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Shared folder Mounting failed : No Such Device

Postby marciogreison » 18. Nov 2010, 01:58

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!
marciogreison
 
Posts: 1
Joined: 18. Nov 2010, 01:45
Primary OS: Debian Lenny
VBox Version: OSE Debian
Guest OSses: Windows7

Re: Shared folder Mounting failed : No Such Device

Postby peab » 18. Nov 2010, 15:15

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.
peab
 
Posts: 2
Joined: 12. Nov 2010, 09:40
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: mint/isadora


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Martin, Supuhstar and 57 guests