I’m trying to set up my Virtual Machine at work to play nicely.
I’m trying to mount a shared folder on the host (Windows XP) to the VM (Ubuntu 10.04) on boot. Now I’ve mounted it fine normally using the command
sudo mount -t vboxsf Share /home/chris/folder/
and I’ve been told that putting in
Share /home/chris/folder/ vboxsf defaults 0 0
into /etc/fstab works.
However my home partition is encrypted and so when I restarted the machine, Linux moaned on reboot that it couldn’t mount it.
I then tried to mount it via a script that would startup on boot (via the startup applications menu) as it was my belief that this runs on user login and thus will run AFTER the home directory is unencrypted.
However I cant get it to work. I did add myself to the sudoers file with the line
chris ALL = NOPASSWD: /home/chris/Script/Startup.sh
and running the script seemed to work until I rebooted.
The script is
#!/bin/sh sudo mount /home/chris/folder/ SpiderOak
with the line still in /etc/fstab/
Anyone got any ideas how I can sort this out? The folder needs to be mounted where I’ve specified so I cant change that.