Děkuju za pomoc, návod pochopitelně vyzkouším, ale na netu jsem našel asi pět jiných, ale s těmi jsem se bohužel nechytal.
Zařízení - kartu vždy Bezpečně odeberu protože se obávám ztráty dat. Když jsem to v minulosti nedělal bylo mi to vyčteno a poukázovalo se právě na to, že nahodilé ztráty dat jsou zaviněny právě tímto.
Například tyto:
......................................................................................
$ sudo -s
# modprobe -vr ehci_hcd
# modprobe -v ehci_hcd
.....................................................................
# Stop USB
modprobe-r ehci_hcd modprobe -r ehci_hcd
wait
# Start USBmodprobe ehci_hcd modprobe ehci_hcd
exit 0
.....................................................................
Restart USB Sub-System on Ubuntu
If for some reason you want to restart your USB sub-system, there is no need to reboot.
Just type the following in terminal :
sudo /etc/init.d/udev restart
and you are done
......................................................................
To by mě taky zajímalo. Zkusil bych ale vyhodit příslušné moduly z jádra a pak je tam znova naloadovat.
sudo rmmod ehci_hcd
sudo rmmod uhci_hcd
První je tuším na funkcionalitu USB 1, druhý na USB 2. Když uděláte obojí, tak se dokonce i vypne napájení portů. Pak se to vrátí zpátky takhle:
sudo modprobe ehci_usb
sudo modprobe uhci_usb
Pokud to potřebujete často, bude to chtít asi skript...
.......................................................................
sudo modprobe -w -r usb_storage; sudo modprobe usb_storage
.......................................................................
Hard Reset USB in Ubuntu 10.04
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 answere