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.
#
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.
#
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:
#
not working on xubuntu 10.10
#
#
Anyway to get this to work on 10.04 LTS? Would be really useful.
#
The same command also works for me in Lucid (10.04).
#
#
#
#