Problem to mount shared name

Discussions about using Linux guests in VirtualBox.
HuaMin
Posts: 239
Joined: 17. Jan 2012, 07:01
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Oracle linux

Problem to mount shared name

Post by HuaMin »

Hi,
On the Windows Host I have one shared name called "dwnld", but what to adapt, due to the problem below, when mounting it, within Red-hat guest?

[root@CentOS65x64 ~]# mount -t vboxsf dwnld mountpoint
/sbin/mount.vboxsf: mounting failed with the error: No such file or directory
[root@CentOS65x64 ~]#
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Problem to mount shared name

Post by mpack »

Moved to Linux guests.

Surely "mountpoint" should be replaced by the name of a parent folder?

You should also read the information on shared folders given in the user manual.
HuaMin
Posts: 239
Joined: 17. Jan 2012, 07:01
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Oracle linux

Re: Problem to mount shared name

Post by HuaMin »

Many thanks.
Yes, "mountpoint" is one existing folder.
But I still get this

[root@CentOS65x64 /]# mount -t vboxsf dwnld mountpoint
/sbin/mount.vboxsf: mounting failed with the error: No such device
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Problem to mount shared name

Post by loukingjr »

'mountpoint' should be replaced by the name/location of the folder where you want the shared folder mounted.
Last edited by loukingjr on 14. Oct 2015, 06:33, edited 1 time in total.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
HuaMin
Posts: 239
Joined: 17. Jan 2012, 07:01
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Oracle linux

Re: Problem to mount shared name

Post by HuaMin »

Thanks.
Isn't "mountpoint" one existing folder on Red hat?
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Problem to mount shared name

Post by loukingjr »

Not that I'm aware of. But I've never used Red Hat.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
HuaMin
Posts: 239
Joined: 17. Jan 2012, 07:01
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Oracle linux

Re: Problem to mount shared name

Post by HuaMin »

what to adjust, due to the above problem shown?
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Problem to mount shared name

Post by loukingjr »

if you create a folder in your guest home directory, let's call it "test", I believe the command you would want to run as root would be…

Code: Select all

mount -t vboxsf dwnld /home/user/test
replace the word user with your user name.
I use Auto-mount for shared folders. I'm allergic to CLI commands, but I think that would be correct
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Problem to mount shared name

Post by socratis »

Wouldn't you know... This is actually an excerpt from the user manual, Ch. 4.3.1 Manual mounting describing the proper procedure:
mount -t vboxsf [-o OPTIONS] sharename mountpoint
Replace sharename (use lowercase) with the share name specified with VBoxManage or the GUI, and mountpoint with the path where you want the share to be mounted on the guest (e.g. /mnt/share). The usual mount rules apply, that is, create this directory first if it does not exist yet.
For more information on the 'mount' command and its options, from the terminal do:
man mount
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
HuaMin
Posts: 239
Joined: 17. Jan 2012, 07:01
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Oracle linux

Re: Problem to mount shared name

Post by HuaMin »

Sorry Loukingjr, I am getting this

Code: Select all

[root@CentOS65x64 bin]# cd /home/
[root@CentOS65x64 home]# mkdir share0
[root@CentOS65x64 home]# mount -t vboxsf dwnld /home/share0
/sbin/mount.vboxsf: mounting failed with the error: No such device
[root@CentOS65x64 home]# 
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Problem to mount shared name

Post by loukingjr »

That could be because you didn't do what I said.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
HuaMin
Posts: 239
Joined: 17. Jan 2012, 07:01
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Oracle linux

Re: Problem to mount shared name

Post by HuaMin »

What is missing? I am to share this path

Code: Select all

/home/share0
that is within Red hat
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Problem to mount shared name

Post by loukingjr »

I'm not really sure what you are doing. socratis posted the link for you to manually mount shared folders and this is the link where shared folders are covered. right above the link he posted.
https://www.virtualbox.org/manual/ch04. ... redfolders

I have one question though, did you actually add the dwnld folder that is on your host to the Shared Folder settings for the guest?
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
HuaMin
Posts: 239
Joined: 17. Jan 2012, 07:01
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Oracle linux

Re: Problem to mount shared name

Post by HuaMin »

Yes, I already shared the path from Host to Guest OS.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Problem to mount shared name

Post by loukingjr »

well, then you could just check Auto-mount and the folder will be in /media each time you boot. then you won't have to mount it manually.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Post Reply