Guest OS: Ubuntu 10.10
After spending many hours trying to fix this, i'm still not able to mount shared folder on Ubuntu 10.10, both 64 and 32 bit systems, clean install.
all required packages (dkms, build-essential, linux-headers-generic) are installed, guest additions are installed as well and verified as working.
After trying couple of times to mount using fstab with no luck, i found out that sometimes fstab doesn't work due to the guest additions not being loaded when fstab is being executed, so i created a shell script to auto mount the share folder. Here are the contents of the shell script:
Code: Select all
#!/bin/bash
echo "Running Script"
mount -t vboxsf -o uid=1000,gid=1000 Share /home/brain/dd >& /home/brain/aerr.txt
echo "test" > /home/brain/test.txt
So my script runs ( test.txt gets created along with aerr.text ), when the script tries to mount the shared folder, it produces this error: /sbin/mount.vboxsf: mounting failed with the error: Invalid argument
i get the same error if i execute the shell script manually (sudo bash /etc/init.d/vboxmount) or try to mount it directly ( mount -t .... ) it gives the same error.
I can mount the shared folder if i disable the script from executing upon startup, or change the share name and mount after the guest has already booted. For some strange reason, it doesn't mount correctly if the auto mount script tried to mount during boot.
after booting up the guest OS, the shared folder appears to be mounted:
Code: Select all
Share on /home/brain/dd type vboxsf (uid=1000,gid=1000,rw)I have tried using mount.vboxsf and mount -t defaults and they're both giving me the same results
At this point, i'm out of ideas. Any help is appreciated.
P.S: Just to show that my script is being executed after guest additions are loaded, here is my boot.log:
Code: Select all
brain@brain-linux:~/dd$ cat /var/log/boot.log
fsck from util-linux-ng 2.17.2
/dev/sda1: clean, 161232/1884160 files, 911804/7528448 blocks (check in 4
mounts)
* Starting AppArmor profiles
Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox
[
OK ]
* Setting sensors limits [
OK ]
speech-dispatcher disabled; edit /etc/default/speech-dispatcher
Starting the VirtualBox Guest Additions ...done.
Starting VirtualBox Guest Addition service ...done.
Running Script
* PulseAudio configured for per-user sessions
saned disabled; edit /etc/default/saned
* Enabling additional executable binary formats binfmt-support [
OK ]
* Checking battery state...