Mount Windows share on Linux boot

5,542

Solution 1

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

Solution 2

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:
5,542
Luc
Author by

Luc

Updated on September 17, 2022

Comments

  • Luc
    Luc over 1 year

    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?

    SOLUTION:

    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:

      vboxvfs
      vboxadd
      
    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
      
  • Luc
    Luc almost 14 years
    Thanks, took a bit of reading, and a little more googling, but got it sorted. I'm updating my question with my steps. Cheers!