Automounting shared folders openSUSE (Solved)

Discussions about using Linux guests in VirtualBox.
Post Reply
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

Automounting shared folders openSUSE (Solved)

Post 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
Last edited by loukingjr on 10. Oct 2010, 04:44, 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.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Automounting shared folders openSUSE

Post 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.
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.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Automounting shared folders openSUSE

Post 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.
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: Automounting shared folders openSUSE

Post 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?
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Automounting shared folders openSUSE

Post 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.
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: Automounting shared folders openSUSE

Post 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
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
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: Automounting shared folders openSUSE

Post by loukingjr »

p.s. openSUSE isn't debian based is it?
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Automounting shared folders openSUSE

Post 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
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: Automounting shared folders openSUSE

Post 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
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
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: Automounting shared folders openSUSE (Solved)

Post 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
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Post Reply