Mounting of shared folder fails

Discussions about using Linux guests in VirtualBox.
Post Reply
lombego
Posts: 3
Joined: 31. Aug 2007, 10:56

Mounting of shared folder fails

Post by lombego »

Hi,

I´m new to virtualbox and installed a linux guest (openSuse 10.2.) on a WIN XP SP2 Host for the first time. The installation worked out quite good and I installed the Guest Addditions as described here:
http://forums.virtualbox.org/viewtopic.php?t=461

My Problem is now, that I can´t mount the shared folder.
I made a folder under Windows at E:\pcshare and added this as shared folder at the virtualbox admin.

I use the following command in the linux shell
mount -t vboxsf pcshare /mnt/pcshare

and this is the result:
/sbin/mount.vboxsf: mounting failed with the error: No such file or directory

Why is there an error? How can I solve the problem?

Thanks for any advice!
aeichner
Oracle Corporation
Posts: 193
Joined: 31. Aug 2007, 19:12

Post by aeichner »

Hi,

be shure that the directory pcshare exists in /mnt.
If it does not exist create it as root with 'mkdir /mnt/pcshare'.
lombego
Posts: 3
Joined: 31. Aug 2007, 10:56

Post by lombego »

Wonderfull, it works!!!
Thank you very much for this simple solution ;-)

I thought, that the shared folder "pcshare" is available like a normal device and the "mount" command creates automatically the mounting point (folder). But in this case it is vice versa and the mounting folder must be created first.

Maybe this procedure should be added to the manual???

My next step will be to access the apache server running at the linux guest via browser at the Windows Host. Let´s see how this will work out.

Thanks again!
lombego
Posts: 3
Joined: 31. Aug 2007, 10:56

Post by lombego »

As mentioned earlier, the temporary mounting in the shell works fine. But this mount is unfortunatelly not persistent on reboot.

I searched the forum how to mount the shared folder while booting, but didn´t suceed.

I wrote the mount stuff to fstab, but the share was not mounted on startup.
(http://forums.virtualbox.org/viewtopic. ... ight=mount)

Maybe this fails because fstab is processed before vboxsf is loaded.

What else can I do to make this mount persistent on reboot?
(openSUSE 10.2)

Thanks a lot in advance.
yorgabr
Posts: 1
Joined: 18. Sep 2007, 19:31

Post by yorgabr »

Hi!

You could put the mounting command inside your ~/.profile (or .bash_profile, if it exists).

Cheers!
Post Reply