7
1
I have a USB device (a modem) that is really finicky. Sometimes it works fine, but other times it refuses to connect. The only solution I have found to fix it once it gets into a bad state is to physically unplug the device and plug it back in. However, I don't always have physical access to the machine it is plugged in on, so I'm looking for a way to do this through the command line.
This post suggests running:
$ sudo modprobe -w -r usb_storage; sudo modprobe usb_storage
However I get an "unknown option -w" output. This slightly modified command:
$ sudo modprobe -r usb_storage
Fails with the message FATAL: Module usb_storage is in use. If I try to kill -9 the processes marked [usb-storage] before running they refuse to die (I think because they are deeply tied to the kernel).
Anyone know of a way to do this?
NOTE: I cross-posted this on serverfault as I didn't know which was more appropriate. I will delete and/or link whichever one is answered first.
i guess, if you don't have physical access to a machine i'll classify it as a server of some sort. there is little point keeping failing hardware on a server. – bubu – 2010-12-23T09:35:30.110
bubu, it depends on what you mean by "failing". It sounds to me like the device is working fine, but has poor Linux support. – nitro2k01 – 2013-11-25T13:08:56.507
@nitro2k01 This question is 3 years old... Anyways the device is failing as it can connect sometimes but not always... The asker is trying to reset the wrong device so it can't work and has nothing to do with linux support... – laurent – 2013-11-25T13:55:46.777