USB rescan to force device detection
Description
Sometimes (usually after a hot reboot/upgrade), the USB-HDD disk is not properly detected (although are the rest of devices).
Solution
Identify the USB controller device where the disk is attached thru lspci
:
lspci [...] 03:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03) [...]
Unbind and bind again that PCI id:
root@idoru:# echo 0000:03:00.0 > /sys/bus/pci/drivers/xhci_hcd/unbind root@idoru:# echo 0000:03:00.0 > /sys/bus/pci/drivers/xhci_hcd/bind
The device should now be listed thru lsusb
:
Bus 004 Device 002: ID 0480:a202 Toshiba America Inc Canvio Basics HDD