Page 1 of 1

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

Posted: 5. Jan 2009, 13:43
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.

Posted: 5. Jan 2009, 14:52
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.

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

Posted: 4. Jul 2013, 13:53
by knobo
mount -t vboxFS winhome /mnt/winhome
But
mount -t vboxSF winhome /mnt/winhome

I uppercased the typo..