"mount -t vboxsf" vs "/sbin/mount.vboxsf"
Posted: 5. Jan 2009, 13:43
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.
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
everything works.
Could someone please explain this behaviour?
Thanks, E.
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/winhomeNow comes the interesting point: if in rc.local I replace the standard mount command with
Code: Select all
/sbin/mount.vboxsf winhome /mnt/winhomeCould someone please explain this behaviour?
Thanks, E.