"mount -t vboxsf" vs "/sbin/mount.vboxsf"

Discussions about using Linux guests in VirtualBox.
Post Reply
leonardi
Posts: 1
Joined: 19. Dec 2008, 15:37

"mount -t vboxsf" vs "/sbin/mount.vboxsf"

Post by leonardi »

This issue was discussed in other topics but I could not find an answer to this specific question.

I run a Scientific Linux 5 guest on a WinXP host.

When my Linux guest boots, I want to automatically mount a shared folder from the host.

I understand that inserting a line in /etc/fstab does not work as the VirtualBox Guest Additions modules have not been loaded yet.

I then tried to insert an explicit mount command in /etc/rc.d/rc.local, i.e.

Code: Select all

mount -t vboxfs winhome /mnt/winhome
but this does not work, which is strange because at this point the vboxadd init script has already been executed and the very same command does work when I issue it interactively from the root account.

Now comes the interesting point: if in rc.local I replace the standard mount command with

Code: Select all

/sbin/mount.vboxsf winhome /mnt/winhome
everything works.

Could someone please explain this behaviour?

Thanks, E.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Post by baf »

I have seen something similar and my solution was to make the names for directory and share differ.
So rename your share (in the gui) to:
Winhome
and in fstab use:
Winhome /mnt/winhome vboxfs defaults 0 0
I think that should work.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
knobo
Posts: 1
Joined: 4. Jul 2013, 13:50

Re: "mount -t vboxsf" vs "/sbin/mount.vboxsf"

Post by knobo »

mount -t vboxFS winhome /mnt/winhome
But
mount -t vboxSF winhome /mnt/winhome

I uppercased the typo..
Post Reply