This site is currently on indefinite hiatus. For fresh, new Linux & productivity content, head on over to nathanrhale.com/linux/ and subscribe to the Linux-only feed.

Crossplatform Computing, Tutorials

How to Get USB Working in Virtual Box on Ubuntu Intrepid Ibex

November 9th, 2008 | 12 Comments

Just a quick post for those of you settling into the latest version of Ubuntu! Enabling USB in Sun VirtualBox is a little different in Intrepid Ibex than other versions. Remember, you’ll have to have the closed source, Personal Use and Evaluation version of VirtualBox for this one. The Open Source Edition (VirtualBox OSE) doesn’t have usb support!

First, fire up a terminal and open your fstab file:

sudo gedit /etc/fstab

Then, add the following lines at the end:

#Make USB Work in Sun VirtualBox
none /proc/bus/usb usbfs devgid=46,devmode=664 0 0

Save and exit.

Issue this command:

sudo mount -a

Open up VirtualBox, and you should be able to set up USB for your virtual machine! More info can be found at this Ubuntu Forums thread.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Furl
  • NewsVine
  • Slashdot
  • StumbleUpon
  • Technorati
  • Facebook
  • TwitThis
  • YahooMyWeb

12 Responses to “How to Get USB Working in Virtual Box on Ubuntu Intrepid Ibex”

  1. Thank you,
    highly appreciated! :)

  2. Why devgid=46. This is system specific.
    >grep vboxusers /etc/group
    Will give you the gid, mine was 128….

    Thanks
    http://ubuntuforums.org/showthread.php?t=962726&highlight=virtualbox+fstab

  3. Thanks it was a huge help, one of the best explained ways I’ve read so far.

  4. Thank you, thank you! awesome and clearly explained and to the point it works as showed unlike others that are too wordy and worse yet they don’t work like this one. You are great! thanks again.

  5. Thank you, that worked like a charm.

  6. Works a treat, many thanks!

  7. Nice one!

  8. zcat:

    I believe it’s supposed to be devgid=46 (at least it works for me). If you do ‘grep 46 /etc/group’, you’ll see that it corresponds to the plugdev group, which is probably true for all Ubuntu distributions.

    A little bit of searching brought up the following description of the plugdev group:

    ————
    From http://lists.debian.org/debian-devel/2004/11/msg00201.html

    …’plugdev’…
    Every user who is a member of this group can access hotpluggable devices (digital cameras, USB drives etc.). pmount can only be executed by members of this group (it is root:plugdev 750), hal runs in this group to be able to detect file systems (but it does not run in ‘disk’), and udev assigns the ‘plugdev’ group to removable devices (static drives remain in group ‘disk’).
    ————–

    Since removable devices are to be assigned to the plugdev group, it makes sense that we use devgid=46 when we make this usb-related device. :) I hope this clairifies.

  9. Thanks a lot!!

    it worked perfectly on Ubuntu 9.04 - the Jaunty Jackalope

  10. [...] How to Get USB Working in Virtual Box on Ubuntu Intrepid Ibex ] Share and [...]

  11. [...] How to Get USB Working in Virtual Box on Ubuntu Intrepid Ibex [...]

  12. Thank you very much! It works on PCLinuxOS too. Much obliged!

    M. Alonso

Leave a Reply