"none" name device in mount shared folder

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
oscaroxy
Posts: 35
Joined: 24. Sep 2015, 22:43

"none" name device in mount shared folder

Post by oscaroxy »

Hi, I installed CentOS 7 on Virtualbox on Yosemite.

I've problem with shared folder, in fact when add a folder (see first attach) it's right, but when I go into Guest (Gest = Guest in attach sorry) and digit mount I see "none" for the name of device (see second attach).
So I don't mount the shared folder... If I go into /media/sf_www I see all my files and folders shared, but I can't mount it.

If I create another shared folder from gui then I see another "none" /media/sf_ ...

WHY?

thanks
Attachments
It's ok
It's ok
Schermata-2015-09-24-alle-22.29.41.jpg (102.22 KiB) Viewed 3694 times
don't work fine, none isn't a name for device
don't work fine, none isn't a name for device
Schermata-2015-09-24-alle-22.30.31.jpg (111.54 KiB) Viewed 3694 times
Last edited by oscaroxy on 25. Sep 2015, 08:30, edited 2 times in total.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: "none" name device in mount shared folder

Post by loukingjr »

oscaroxy wrote:So I don't mount the shared folder... If I go into /media/sf_www I see all my files and folders shared, but I can't mount it.
If you can see /media/sf_www and it has your files and folders in it, you don't need to mount it. It's already mounted.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
oscaroxy
Posts: 35
Joined: 24. Sep 2015, 22:43

Re: "none" name device in mount shared folder

Post by oscaroxy »

yes, you have right, but I would to mount into another folder, like
/var/www/html/... for apache

(EDIT)... maybe, I've thought, I use the symbolic link for my purpose but I would to know if this is a bug or decided or what's it?

thansk for reply
Martin
Volunteer
Posts: 2561
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: "none" name device in mount shared folder

Post by Martin »

Don't use automount. Then you can just define a manual mount where you want.
But keep in mind that the shared folder may not have/implement some advanced file access / locking methods which could be needed if you want to use this folder by an application like a web server.
oscaroxy
Posts: 35
Joined: 24. Sep 2015, 22:43

Re: "none" name device in mount shared folder

Post by oscaroxy »

maybe I'm missing something ...

I can't mount manually, I've "none" in share folder to /media... that is:

Code: Select all

none on /media/sf_www type vboxsf (rw,nodev,relatime)
in old CentOS (6.5) I said:

Code: Select all

www on /media/sf_www type vboxsf (gid=498,rw)
from this I could do:

Code: Select all

www                     /var/www/vhosts/        vboxsf  fmode=770,dmode=770,uid=webuser,gid=webuser,iocharset=utf8   0 0
into /etc/fstab and all was ok.
Where do I mistake?
oscaroxy
Posts: 35
Joined: 24. Sep 2015, 22:43

Re: "none" name device in mount shared folder

Post by oscaroxy »

a... for web server ... yes, I would to use shared folder for apache ...

by symbolic link

Code: Select all

ln -s /media/sf_www/ /var/www/vhosts
this is accesses from root but not user-apache ...
oscaroxy
Posts: 35
Joined: 24. Sep 2015, 22:43

Re: "none" name device in mount shared folder

Post by oscaroxy »

about me the key is in "none", that is the shared folder's name...

thanks
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: "none" name device in mount shared folder

Post by loukingjr »

FWIW, shared folders may not be able to do what you want. You should set up a true network share.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
oscaroxy
Posts: 35
Joined: 24. Sep 2015, 22:43

Re: "none" name device in mount shared folder

Post by oscaroxy »

but with CentOS 6.5 work fine, it work what I want...
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: "none" name device in mount shared folder

Post by loukingjr »

If you are saying that CentOS 6.5 is still running fine then perhaps something changed in CentOS 7?

You should attach the VBox.log (zipped) here.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
oscaroxy
Posts: 35
Joined: 24. Sep 2015, 22:43

Re: "none" name device in mount shared folder

Post by oscaroxy »

I attached VBox.log and into file I see a row:

Code: Select all

00:12:15.784226 VMMDev: Guest Log: 00:00:00.081894 automount VBoxServiceAutoMountWorker: Shared folder "www" was mounted to "/media/sf_www"
so the name is correct "www", but after in mount I see:

Code: Select all

none on /media/sf_www type vboxsf (rw,nodev,relatime)
why?
How do I do for bypass the problem?
I would to share folder for web server (apache)
Attachments
VBox.log.zip
(25.74 KiB) Downloaded 5 times
oscaroxy
Posts: 35
Joined: 24. Sep 2015, 22:43

Re: "none" name device in mount shared folder

Post by oscaroxy »

I resolved, I removed the automount from host virtualbox and after I mount the shared folder by "/etc/rc.local".
(in guest centos commad line I can't mount manually because I see only "none")
see:
http://www.softeoscar.it/2015/09/virtua ... re-folder/
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: "none" name device in mount shared folder

Post by loukingjr »

Glad you found a fix. Hopefully anyone that has the same problem speaks Italian. :)
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
oscaroxy
Posts: 35
Joined: 24. Sep 2015, 22:43

Re: "none" name device in mount shared folder

Post by oscaroxy »

I'll translate this soon...

Now, I've another problem, when I update a file (page.php) from host then when I run the page in browser I receive an error (SyntaxError: illegal character... it's like I write bad the encoding). If I update the same file from guest by "vi" then the file (page.php) is right, that is into browser work fine without error.

I mount the folder so:

Code: Select all

mount -t vboxsf workspace_salcef /var/www/workspace_salcef/ -o fmode=770,dmode=770,uid=webuser,gid=webuser,iocharset=utf8
in /etc/rc.local

and mount -l is:

Code: Select all

none on /var/www/workspace_salcef type vboxsf (rw,nodev,relatime)
Why?????

thanks

ps eclipse is (see attach):
Attachments
Schermata 2015-10-05 alle 17.02.58 copia.jpg
Schermata 2015-10-05 alle 17.02.58 copia.jpg (105.28 KiB) Viewed 3633 times
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: "none" name device in mount shared folder

Post by socratis »

It's not good etiquette to cross-post...
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.
Post Reply