Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 have been using the following script to mount virtual box shared drives in my guest Ubuntu (with host Windows)

    # Mounts all known drives shared via virtual box

    # configuration
    MOUNT_DIRS="foo bar baz"
    USERID=$( id -u )
    GROUPID=$( id -g )

    for DIR in ${MOUNT_DIRS} ;  do
        mkdir -p ${MOUNT_POINT}/${DIR}
        sudo mount -t vboxsf -o rw,uid=${USERID},gid=${GROUPID} ${DIR} ${MOUNT_POINT}/${DIR}

This has served me well until a recent upgrade of the Linux kernel, to 3.11.0-24, after which this occurred.

Now this script succeed when run, mounting occurs without hitch. However any form of access to the folder results in an indefinitely long wait.

ls ~/media works fine, but ls ~/media/foo hangs indefinitely, doing nothing.

What can I try or further diagnose to fix this problem?

System details:

$ uname -a && lsb_release -a
Linux brendang-linux 3.11.0-24-generic #41-Ubuntu SMP Mon Jun 9 20:36:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.10
Release:    13.10
Codename:   saucy
share|improve this question
@Takkat nope - I was not aware that I need to do that (or even how)! – bguiz Jul 2 '14 at 7:29

As @Takkat suggests, reinstall guest addtions after the kernel update

sudo /etc/init.d/vboxadd setup
sudo shutdown -r now

.. then restart the VM.

Now after running the script, the mount point succeeds.

Ensure that you have dkms installed.

sudo apt-get install dkms
share|improve this answer
@ Takkat I see your edit, unfortunately, however, I do not think it is accurate. Having dkms installed is indeed a pre-requisite for reinstallation of virtualbox guest additions to work. However, having it installed does not avoid having to reinstall guest additions after each kernel update. In fact I already had dkms installed and up to date, and I still needed to run this command manually. – bguiz Jul 2 '14 at 12:17

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.