Restart USB in Ubuntu Jaunty/Karmic

January 15, 2010 by
Filed under: command line, HowTo, linux, Ubuntu 

I've written a few posts about restarting USB service in Ubuntu before. This is an update to that process for Ubuntu 9.04 (Jaunty) and Ubuntu 9.10 (Karmic).

As of Ubuntu Jaunty, the usb kernel module is called usb_storage. To restart USB you need to remove this module and add it back in. This can be achieved with the following command line one-liner.

sudo modprobe -w -r usb_storage; sudo modprobe usb_storage

This is useful if you've been having trouble getting a USB drive or digital audio player to mount.


10 Responses to “Restart USB in Ubuntu Jaunty/Karmic”

  1. Daniel says:

    Yeah; I tried it and got:

    modprobe: invalid option -- 'w'
    Usage: modprobe [-v] [-V] [-C config-file] [-d ] [-n] [-i] [-q] [-b] [-o ] [ --dump-modversions ] [parameters...]
    modprobe -r [-n] [-i] [-v] ...
    modprobe -l -t [ -a ...]

    11.04 Natty.

    • Linerd says:

      The -w option must have been eliminated. It caused the shell to wait until the command was done before executing the next command. Perhaps this slightly modified command will work for Natty:

      sudo modprobe -r usb_storage; wait; sudo modprobe usb_storage
  2. peter says:

    not working on xubuntu 10.10

  3. [...] This post suggests running: [...]

  4. Ollie says:

    Anyway to get this to work on 10.04 LTS? Would be really useful.

  5. Story added...

    This story has been submitted to! If you think this story should be read by the free software community, come vote it up and discuss it here:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>