Page 1 of 1

"none" name device in mount shared folder

Posted: 24. Sep 2015, 22:55
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

Re: "none" name device in mount shared folder

Posted: 25. Sep 2015, 01:38
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.

Re: "none" name device in mount shared folder

Posted: 25. Sep 2015, 08:27
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

Re: "none" name device in mount shared folder

Posted: 25. Sep 2015, 10:18
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.

Re: "none" name device in mount shared folder

Posted: 25. Sep 2015, 11:21
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?

Re: "none" name device in mount shared folder

Posted: 25. Sep 2015, 11:25
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 ...

Re: "none" name device in mount shared folder

Posted: 25. Sep 2015, 11:33
by oscaroxy
about me the key is in "none", that is the shared folder's name...

thanks

Re: "none" name device in mount shared folder

Posted: 25. Sep 2015, 12:18
by loukingjr
FWIW, shared folders may not be able to do what you want. You should set up a true network share.

Re: "none" name device in mount shared folder

Posted: 25. Sep 2015, 12:30
by oscaroxy
but with CentOS 6.5 work fine, it work what I want...

Re: "none" name device in mount shared folder

Posted: 25. Sep 2015, 12:41
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.

Re: "none" name device in mount shared folder

Posted: 25. Sep 2015, 14:20
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)

Re: "none" name device in mount shared folder

Posted: 27. Sep 2015, 13:34
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/

Re: "none" name device in mount shared folder

Posted: 27. Sep 2015, 13:36
by loukingjr
Glad you found a fix. Hopefully anyone that has the same problem speaks Italian. :)

Re: "none" name device in mount shared folder

Posted: 5. Oct 2015, 17:00
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):

Re: "none" name device in mount shared folder

Posted: 5. Oct 2015, 18:53
by socratis
It's not good etiquette to cross-post...