Forum Navigation
You need to log in to create posts and topics.

Reset USB Device – External Disk

Problem

User disconnected USB External drive, drive is not umounted properly and when connecting back the disk is not readable

Solution

run the following command to reset USB PORTS 1,2,3

for i in /sys/bus/pci/drivers/[uoex]hci_hcd/*:*; do
[ -e “$i” ] || continue
echo “${i##*/}” > “${i%/*}/unbind”
echo “${i##*/}” > “${i%/*}/bind”
done

Uploaded files:
If you have found my website, guides, articles or videos useful, please buy me a coffee