Help us understand the problem. What is going on with this article?

USB抜き差しせずコマンドで再認識

More than 3 years have passed since last update.

USBデバイスが認識おかしくなり抜き差しをやむ得ないことはたまにある。
USBメモリやUSBHDDなどではしょっちゅう。

参考

コマンドでusb再認識

# udevadm info --query=path --name=/dev/video0
/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.2/2-1.2:1.0/video4linux/video0

usb2/2-1

この2-1が該当のパスとなるので以下投入。

# echo -n "2-1" > /sys/bus/usb/drivers/usb/unbind
# echo -n "2-1" > /sys/bus/usb/drivers/usb/bind

usb-hdd

sudo udevadm info --query=path --name=/dev/sdc
/devices/pci0000:00/0000:00:04.1/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0/block/sdc
echo -n "1-1" > /sys/bus/usb/drivers/usb/unbind
echo -n "1-1" > /sys/bus/usb/drivers/usb/bind
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away