Page 1 of 1

Automounting shared folders openSUSE (Solved)

Posted: 7. Oct 2010, 04:36
by loukingjr
I'm having a problem getting a shared folder to auto mount in openSUSE. I can use the terminal to mount it fine. When I try the code from the manual however in /etc/fstab, it fails to mount on boot, unlike all the other Linux guests I have. Does openSUSE require "extra" code?

thanks

Re: Automounting shared folders openSUSE

Posted: 8. Oct 2010, 20:30
by Sasquatch
No, the problem is that the SF modules aren't loaded when fstab is parsed. You put the mount command in /etc/rc.local (or similar) and that's it. See Howto: Use Shared Folders.

Re: Automounting shared folders openSUSE

Posted: 8. Oct 2010, 21:23
by Perryg
http://forums.opensuse.org/archives/sf- ... local.html
Read to the end and you will see how to make this happen.

SAS, you might want to update you share howto with the new information.

Re: Automounting shared folders openSUSE

Posted: 10. Oct 2010, 03:43
by loukingjr
thanks, I will try that. but are you saying I should change how I have all my guests auto-mount a shared folder? Because they all work in /etc/fstab except for openSUSE. And since I got the info stright from the manual, think maybe they should change it there?

Re: Automounting shared folders openSUSE

Posted: 10. Oct 2010, 03:54
by Perryg
If they work then leave them. Usually you will have problems with fstab since the vbox drivers load after fstab. Some OSes run the load twice. I prefer rc.local myself as it keeps the syslog cleaner. Just a matter of taste. Oh and they way everyone keeps changing things keep an eye on it. If you find you are having problems them move them.

Re: Automounting shared folders openSUSE

Posted: 10. Oct 2010, 04:09
by loukingjr
Perryg wrote:If they work then leave them. Usually you will have problems with fstab since the vbox drivers load after fstab. Some OSes run the load twice. I prefer rc.local myself as it keeps the syslog cleaner. Just a matter of taste. Oh and they way everyone keeps changing things keep an eye on it. If you find you are having problems them move them.
thanks...

openSUSE is being a pain though. I read the post on how to create an rc.local file and what to put in it. of course on that page they said two different things, one was create your own, the other said copy the /etc/init.d/skeleton file and use that. the latter has code in it that I don't know whether to leave or not. The former was easy enough to create but when I tried to run the chmod command it said I was missing an argument at the end.

this is why I've owned Macs for 25 years lol

Re: Automounting shared folders openSUSE

Posted: 10. Oct 2010, 04:17
by loukingjr
p.s. openSUSE isn't debian based is it?

Re: Automounting shared folders openSUSE

Posted: 10. Oct 2010, 04:20
by Perryg
No it is not debian based but it is Linux

It should be just
su <enter> password <enter> then type the line below
chmod 755 /etc/rc.local

Re: Automounting shared folders openSUSE

Posted: 10. Oct 2010, 04:39
by loukingjr
Perryg wrote:No it is not debian based but it is Linux

It should be just
su <enter> password <enter> then type the line below
chmod 755 /etc/rc.local
okay, I'm getting this error...
insserv: warning: current start runlevel(s) (3 5) of script `vboxadd-x11' overwrites defaults (empty).
rclocal 0:off 1:off 2:off 3:on 4:off 5:on 6:off

but I am going to just try and reboot
wish me luck :lol

Re: Automounting shared folders openSUSE (Solved)

Posted: 10. Oct 2010, 04:46
by loukingjr
ok, I did have to change it from rc.local to rclocal. and it goes in /etc/init.d/ but it works...

thanks much