Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running VirtualBox in Windows. I have Ubuntu Linux 10.04 installed as a VM.

Whenever I log in I have to run to following command to mount my shared Windows web dev folder:

sudo mount.vboxsf web_apps /mnt/web_apps

Where can I put this line (minus the sudo) so that it will run once when Linux boots up? I'm guessing there must be a root .profile or .login script that runs at some point?


Thanks to The Operator I figured it out, for future superusers, here's what I did:

  1. From Terminal:

    sudo nano /etc/modules
  2. Added the following to the bottom of the file:

  3. Save and exit. Then:

    sudo nano /etc/fstab
  4. Then, at the bottom of this file added:

    web_apps /mnt/web_apps vboxsf defaults 0 0
share|improve this question
up vote 5 down vote accepted

You can add the share to your /etc/fstab for it to be mounted automatically at boot. See Here

share|improve this answer
Thanks, took a bit of reading, and a little more googling, but got it sorted. I'm updating my question with my steps. Cheers! – Delameko May 8 '10 at 8:04

This worked for me except I had to add a / before the "web_apps" in step 4. The new line for me was:

/web_apps /mnt/web_apps vboxsf defaults 0 0

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.